270 Posted Topics
Re: [QUOTE=kaylors;1204743]couldn't figure this one out. [/QUOTE] Syntax errors. [CODE]<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <title>Test JavaScript</title> </head> <body> <script type="text/javascript"> var frst = true; function first() { if (frst == true) { alert('Don't forget to Capitalize.'); } frst = false; } </script> <form> <input type="button" value="Derke" onclick="first();" … | |
Re: [QUOTE=silentbob671123;1204501] Does anyone know why my javascript shuts down when I use more than on script? [/QUOTE] Conflicts are possible between event handlers that are not registered correctly [especially for 'onload'], var names [including array/scalar or local/global differences], elem ids, and so on. Adding a script that uses browser-specific properties … | |
Re: [QUOTE=Froger93;1204197]Hello again, [icode]--.style.display='block'[/icode] not a function. [/QUOTE] Please show a few lines of the actual code. | |
Re: [QUOTE=Agent Cosmic;1203373]I need some help detecting the escape character ''. [/QUOTE] Please provide an example of the input string and the desired output. | |
Re: [QUOTE=lak123;1202392] [CODE] document.forms.style.cursor = 'wait'; [/CODE] change to hour glass when I click the button? [/QUOTE] There are two problems: the cursor needs to be changed for the body (not the element) and it may need to be changed back. [CODE]<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <meta … | |
Re: [QUOTE=hknight;1201562]I want to place all opening tags in an array. [/QUOTE] document.getElementsByTagName('*') | |
Re: [QUOTE=malavaraja;1201444]Some JavaScript Functions Are not Working in FireFox Browser. I want to Know what is the reason why it is not working ?[/QUOTE] One common reason is that the script is using a property which is not available in that browser. For example: innerText vs. textContent. | |
Re: [QUOTE=RisTar;1199550] It's an external file but it's embedded properly, and im sure of that because the alert function is working.... [/QUOTE] Well, since you have provided nothing whatever to examine, I reckon I'm free to make a few guesses: you misspelled "getElementById" you misspelled "errorBox" "errorBox" is not an element … | |
Re: [QUOTE=jtkiv;1200137] i have two separate cells which need to pull parallel information [/QUOTE] This[CODE]<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN"> <html> <head> <meta name="generator" content= "HTML Tidy for Windows (vers 25 March 2009), see www.w3.org"> <title></title> <script type="text/javascript"> var books = ["t0","t1","t2","t3","t4","t5","t6","t7","t8","t9","s0","s1","s2","s3","s4","s5","s6","s7","s8","s9"]; var choice = 7; </script> </head> <body> <table border="1"> … | |
Re: [QUOTE=vinamar82;1200152]Hi, I need to get 320459852842 from the above url. [/QUOTE] [CODE]var url = "http://cgi.ebay.com/BRAND-NEW-UNLOCKED-32-GB-Apple-iPhone-3GS-3G-S-Any-Sim-/320459852842?cmd=ViewItem&pt=Cell_Phones&hash=item4a9ce54c2a"; var item = url.match(/\/([^/]+)\?/); alert(item[1]); [/CODE] This isolates the item string even if the length varies or it isn't always digits. | |
Re: [QUOTE=rori;1194264]Hi, I don't want the horizontal scroll to appear and at the same time I want the iframe to show the whole width of the external website. [/QUOTE] These attributes[CODE]width="1000px" style="overflow-x: hidden; overflow-y: auto;"[/CODE]come fairly close to what you want (in all current browsers AFAICT). You may be able to … | |
Re: [QUOTE=Graphix;1197350]You can not and will not be able to open files on the computer of your visitor [/QUOTE] Javascript is perfectly capable of opening files on the client side and displaying or printing them on the client side. | |
Re: Would javascript getDay() document.getElementById('id').focus() be any help? | |
Re: [QUOTE=the_mia_team;1195977] how to start ... not sure for java [/QUOTE] Why not look up the javascript commands and functions that match each python command and function? BTW: javascript != java. | |
Re: The numbers you want are in the odd elements of cookiearray. If that's not the problem, are you expecting someone to do the math for you? | |
Re: It is not working in Chrome or Firefox: the first line does not display. Also, you are using a class which is not defined [blocktext]. | |
Re: It is relatively easy to detect a <tagx> which is followed by <tagy> before </tagx> is encountered, but that may not be an error. Trivial counter-examples include [ICODE]<b>xxx<br></b>[/ICODE] and [ICODE]<b>xxx<br /></b>[/ICODE] and there is an endless supply of not so trivial cases. It would be possible to test certain tags; … | |
Re: I'm a complete newbie at this, but for this approach to work it appears to me that - in addition to having Excel - all users would have to enable "Initialize and script ActiveX controls not marked as safe for scripting" for the Internet zone. Clearly not acceptable. Finer control … | |
Re: Without the "global" flag, replace stops at the first instance. | |
This method invocation txt.match(/\[.*\]/g) works exactly as intended - it returns an array of matches [anytext1],[anytext2],[anytext3] I don't need the brackets, so out of curiosity I tried this tweak txt.match(/\[.*(?=\])/g) which - somewhat to my surprise I must admit - does exactly what I was hoping it would do and … |
The End.