|
First
|
Prev |
Next
|
Last
Pages: 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580
How would I enumerate all the scripts available to a web page? Hello I have a web page which uses a js file on the server. I cannot see all the javascript functions available to me in the html. I would like to have a function which could print eg to a DIV section, all the available functions. Just the function names is fine. Is there any way to do this in javascript? ... 16 Apr 2007 18:06
Ajax Hi :) I wonder how to modify two div with only one click. for example, there's a <div id="a">text</div> and a <div id="b">. I've made a link that call a function which modify the content of div with id a using : if(xhr.readyState == 4){ document.getElementById('a').innerHTML = xhr.responseText; } but ... 15 Apr 2007 17:00
Perferred way to embed javascript into xhtml 1. <script type="text/javascript"> alert("test"); </script> 2. <script type="text/javascript"> <!--// alert("test"); //--> </script> 3. <script type= "text/javascript">/*<![CDATA[*/ alert("test"); /*]]>*/</script> which one you prefer? (assume xhtml transitional) thanks. ... 15 Apr 2007 18:02
Can't get form action to execute with onsubmit Hello. I created a form using JS validation with the form tag as follows: <form name="form1" action="dynaform.php" method="post" onsubmit="return pvg_sub();"> The js validation script sends alerts when fields are not entered properly and it seems to work, except...when there are no errors, instead executi... 16 Apr 2007 00:14
onclick function works in IE6, not in FF1.5 I use this function to detect an iframe button click. It works in IE6 but not in FF 1.5. function setupbutton(){ var myiframe=document.getElementById('ifrmEditCategory'); var mybutton=myiframe.contentWindow.document.getElementById('btnClose') //alert('myiframe '+myiframe+' mybutton '+mybutton); my... 15 Apr 2007 02:19
shorthand syntax reference? Usually I write something like ... if (x==1) { doSomething() } .... and that's how I see it in all the JS references I've found so far. But I have seen shorthand (?) for the same thing (?), like this ... (x==1) ? doSomething() .... and several other "alternate" methods. Are they documented some... 15 Apr 2007 19:04
FAQ Topic - Why does 5 * 1.015 != 5.075 or 0.06+0.01 != 0.07? ----------------------------------------------------------------------- FAQ Topic - Why does 5 * 1.015 != 5.075 or 0.06+0.01 != 0.07? ----------------------------------------------------------------------- Javascript numbers are represented in binary as IEEE-754 (IEC 559) Doubles, with a resolution of 53 bits, g... 15 Apr 2007 19:04
last modified script question Hi, I use a script that shows when the page was last modified. It works fine for just one html file. The thing I would like to do is that the script shows me of last modified file in root directory. For example if I change something in gallery.html or feed.xml, I would like to see that date of change in inde... 20 Apr 2007 20:52
Rotate Random Div Layers on Page Refresh? Does anyone know of a scipt that will rotate random div layers on page refresh? I have a primary content area front and center on my site homepage, and I'd like to rotate various chunks of html (in div layers) each time a user reloads the page. Right now I'm resorting to a random image rotation (those scripts are... 19 Apr 2007 21:17
Respond to keypresses on top of a paragraph I am having trouble responding writing a Javascript Program respond to keypresses on top of a paragraph. Here is the code I tried: <HTML> <SCRIPT Language="JavaScript"> document.write("TEeve"); function QQ(event){ alert("Key Pressed " + event.charCode()); } </SCRIPT> <P onkeypress="QQ(event)">Testing... 14 Apr 2007 12:55 |