270 Posted Topics

Member Avatar for kaylors

[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();" …

Member Avatar for kaylors
0
88
Member Avatar for silentbob671123

[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 …

Member Avatar for fxm
0
121
Member Avatar for Froger93

[QUOTE=Froger93;1204197]Hello again, [icode]--.style.display='block'[/icode] not a function. [/QUOTE] Please show a few lines of the actual code.

Member Avatar for almostbob
0
106
Member Avatar for Agent Cosmic

[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.

Member Avatar for Agent Cosmic
0
290
Member Avatar for lak123

[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 …

Member Avatar for fxm
0
202
Member Avatar for hknight

[QUOTE=hknight;1201562]I want to place all opening tags in an array. [/QUOTE] document.getElementsByTagName('*')

Member Avatar for hknight
0
330
Member Avatar for Kayoss

[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.

Member Avatar for fxm
0
424
Member Avatar for RisTar

[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 …

Member Avatar for almostbob
0
171
Member Avatar for jtkiv

[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"> …

Member Avatar for jtkiv
0
118
Member Avatar for vinamar82

[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.

Member Avatar for fxm
0
57
Member Avatar for rori

[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 …

Member Avatar for fxm
0
813
Member Avatar for tsachin1

[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.

Member Avatar for vitana
0
168
Member Avatar for TheVendor
Member Avatar for fxm
0
206
Member Avatar for the_mia_team

[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.

Member Avatar for fxm
0
133
Member Avatar for Atomika3000

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?

Member Avatar for fxm
0
84
Member Avatar for sainiweb

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].

Member Avatar for fxm
0
259
Member Avatar for mohanrajit.88

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; …

Member Avatar for fxm
0
277
Member Avatar for ms_sws

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 …

Member Avatar for fxm
0
556
Member Avatar for benqus
Member Avatar for benqus
0
165
Member Avatar for fxm

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 …

Member Avatar for fxm
0
94

The End.