Jump to content

Betty_S

Members
  • Posts

    21
  • Joined

  • Last visited

Everything posted by Betty_S

  1. Hi,Believe you me, I triad to find the answer myself because its really shouldn’t be a big deal but I just couldn’t clean the text of the my textarea tag.I triad document.formName.textareaName.value=’’;document.getElementById(“textareaId”).value=””; But it failedWhat to do?Thanks.
  2. Hi,How can retrive all of the tags or elemnts within a divI have this: <div name="myDiv"><input type="text" value="txt1" name="txt1" /><input type="text" value="txt2" name="txt2" /><input type="text" value="txt3" name="txt3" /></div> And that’s the script that didn't work: var e=document.myDiv.elements; for (var i=0;i<e.length;i++) {alert(e[i].name);} What am I doing worng?
  3. how set selection in select element when the name has ”[]”Hi folks,I wrote: <form name=" formname "><select name=" dropdownboxname[]" class="inputbox" size="0" mosreq="0" moslabel="השכלה"> <option value=""> </option> <option value="x" id="228">תיכון</option> <option value="y" id="228">על-תיכוני</option> <option value="z" id="228">תעודה</option></select><input type="text" name="txt" size="20px" value="aaaaaaaa" /></form><script>...for (var i=0; i < document.formname.dropdownboxname.length; i++) {if (document.formname.dropdownboxname[i].value == “value”) {document.formname.dropdownboxname[i].selected = true;}}… It doesn’t set the selection because the name of the dropdown: If it was without the “[]” then there is no problem, but I must use the “[]”So how can I selection in a dropdownboxname[]Thanks.
  4. I have an interesting question:Can I insert this <h1><a href=”blablabla”> blablabla </a></h1> directly on the begging/top/first line of the <body>,Is that possible via JS?Thanks.
  5. Hi to every one!How can I change the title of the page (the window) after it has been loaded?thanks.
  6. Hi to you all,How can I save the date in the form’s fields?Currently, I’m using cookies. I wonder if there is a better way.Thanks.
  7. Hi folks!My JS function takes the (text) value of a drop-down list and dynamecliy create a link which looks something like that:…?name=%D7%97%D7%99%D7%A4%D7%95%D7%A9+%D7%91…It works fine.Whoever if the passed text contains apostrophe, commas or hyphen it doesn't work because it will 'copy' the string until it hits those spcial chars.What to do!
  8. Hi everyone,I can't use html forms so I can't use[ 'method=post'].Instead, I use [window location="…";]. I'm using the url to pass parameters, how can I hide them or hide the whole link?Thanks in advance.
  9. How can I check if users allow cookies in php?Thanks.How to hide link's url?Hi everyone,I can't use html forms so I can't use[ 'method=post'].Instead, I use [window location="…";]. I'm using the url to pass parameters, how can I hide them or hide the whole link?TKS in advance!
  10. Hi folks! Surely you know how frustrating one missing comma can be!Currently, I'm using FrontPage or Dreamweaver but there are not the answer! I'm looking for a good and well known JS Editor which will alert me in case something is wrong with the code. Thanks.
  11. Hi!I want to move a div whenever the user scrolls the browse elsewhere.How is that possible?
  12. Hi folks!I want to move a div according to client's mouse X,Y so I wrote that: <script>function mouseXY(){var X = event.clientX;var Y = event.clientY;document.getElementById("movingDiv").style.top=X;document.getElementById("movingDiv").style.left=Y;}window.onload=mouseXY;</script></head><body onmousemove="java script:mouseXY();"> <div id="movingDiv" style="top=0;left=0;position:absolute;border-color:#000000;border:groove;width:250px;height:96px;background-color:#CCCCCC" onClick="java script:this.style.display='none';"></body> Well, the div moves but its not attached to the mouse X and Y.What can I do? Thanks.
  13. Hi folks!I have a div with a Flash object in. when you click the div it supposes to disappear but it doesn't because the Flash object.The Flash object filling all of the div and not allowing the onClick of the div to fireHow can I go around it (without making the div bigger then the Flash object)Have an idea?Thanks.
  14. Hallo,I'm using window.open() in order to pop-up a window. How can I strip the window of all the bars so it may look like a "floating <div>?Thanks.
  15. Hallo,I have a <div> with a table and I would like to be posed exactly in the center of the window. Different user have different screen configuration. How can I know where exactly the center of the window is, and pose the div there?Thanks.
  16. I'm using a php based CMS called 'mambo'.When I click the 'submit' in that page –http://208.109.106.11/index.php?option=com...rs&Itemid=7 I get error massage: stack overflow at line: 0.What to do?
×
×
  • Create New...