Jump to content

kilp-web@sbcglobal.net

Members
  • Content Count

    12
  • Joined

  • Last visited

Community Reputation

0 Neutral

About kilp-web@sbcglobal.net

  • Rank
    Newbie
  1. Thanks for the help. Once again, you have provided a clear and thoughtful response.Jerry
  2. I have been experimenting with the following code: <html><head><title>List the Tags</title><script type="text/javascript">function listTags(n, i) { ++i; // Loop through all the children of n for(var m = n.firstChild; m !== null; m = m.nextSibling) { alert(i); if (m.nodeType === 3) { // Text Node if (m.nodeValue === "\n") { alert(m.parentNode.nodeName + " " + m.nodeName + " " + m.firstChild + "\n" + " nodeValue is 'linefeed'"); } else { alert(m.parentNode.nodeName + " " + m.
  3. I read in the tutorial that the "selectedIndex" property of the Select Object will only return the first selected index when multiple selections are enabled.I have tried setting multiple selections with the "selectedIndex" property and find that only the last one is selected.Is there some way to set and get multiple selections?Thanks,Jerry
  4. I derived the following from an example in "java script: The Definitive Guide". var j = {x:1, y:2, z:3};for(var prop in j) { document.write("name: " + prop + "; value: " + j[prop], "<br>");} When I noticed the comma after j[prop] in the "document.write()" call, I assumed that it must be a mistake and that a "+" was intended.It turns out that the code works with either a "," or a "+". Given that I changed it to read: document.write("name: " + prop + "; value: " + (j[prop], "<br>"); This time, as I expected, the "," returned the "<br>" and not the j[prop]. What was i
  5. I volunteer with a non-profit that maintains a database of all of its classes,workshops, etc. I have written a number of AppleScripts that take advantage of the"do JavaScript" function in Safari to post data about the events to sites that advertise events. The purpose of this is to avoid rekeying the data in the database.I review all posts before they are submitted and I do all of the Captchas manually.I am now working on a web page with the following html.<h3>Select your Event date</h3><ul class="z-tabs"><li class="z-current"><a href="#">Calendar View</a>
  6. Thanks for all of the help. In this particular case the <a> tag is part of the following code sequence:<li class="class1"><h3>Select your item</h3><ul class="class2"><li class="class3"><a href="#">First Item</a></li><li><a href="#">Second Item</a></li></ul>.....</li>The effect of selecting one of these links it to make one of two divs appear, each of which is effectively a menu.Since there seems to be no JavaSript associated with either tag, I am trying to figure out how the switch between divs occurs.Th
  7. I have been looking at a web page that has links of the form "<a href="#">Title</a>".I would appreciate an explanation of what this does.Thanks,Jerry
  8. Thanks for the reply. This is not my code but some I was looking at on the Web. When I read that the id had to be unique, I was assuming that someone was enforcing this. I believe what you are telling me is that this is the convention that you should follow if you want to use JavaScript with in a web page, but that nobody enforces this rule.Jerry
  9. </div><b>Location:</b><table style='width:100%; position:relative; '><tr><th style='width:50%'><a href='java script:;' id='field_location' class='addnode_select_link'>Select</a> Location already available</th><th style='width:50%'>or <a href='java script:;' class='addnode_item field_location' id='location'><span id='field_location' class='addnode_links'>create a new Location</span></a></span></th></tr><tr><td style='vertical-align:top;'><div class="form-item"><select name=
×
×
  • Create New...