Jump to content

mloseke

Members
  • Posts

    6
  • Joined

  • Last visited

mloseke's Achievements

Newbie

Newbie (1/7)

0

Reputation

  1. thanks hacknsack, this helps tremendously.
  2. I used the following script to dynamically display the date on a page recently. function showDate(){ var d = new Date() var n = (d.getMonth() + 1); switch(n){ case 1: document.write("January ") break; case 2: document.write("February ") break; case 3: document.write("March ") break; case 4: document.write("April ") break; case 5: document.write("May ") break; case 6: document.write("June ") break; case 7: document.write("July ") break; case 8: document.write("August ") break; case 9: document.write("September ") break; case 10: document.write("October ") break; case 11: document.write("November ") break; case 12: document.write("December ") break; } document.write(d.getDate()) document.write(", ") document.write(d.getFullYear())} employing the switch statement offers an alternative to arrays if for some reason you're against using them. You have to add a 1 to d.getMonth() because by default January is stored at 0.check http://www.lasallebank.com to see it in action
  3. I have a page where there's an event called from an html element like so:onmouseover="java script: report(this.something,this.something_else);"so the function report() only fires onmouseover. my problem is that i want to be able to return information from this function to be used in other functions. I've been able to do so successfully with functions that are not based on events, or at least non continuous events, but now I am stumped because even if this function returns what I want it's accessibility is dependant upon the event. What's unique about this situation is that while this event is occurring I need to independantly monitor it. I find this difficult to explain. Is there a way to store this information somewhere, a sort of static non event dependant repository and have access during the event occurrence? I tried declaring a global in my script outside the function, and then setting that to the information inside the function and then accessing in a different function but with no success.
  4. This can be taken down - i posted similar topic in the javascript section and found what i was looking for, thanks
  5. The code below is given on the w3 site as an example of how to use javascript to apply a client side transformation using IE. How is this accomplished with FF/Mozilla browsers? <html><body><script type="text/javascript">// Load XMLvar xml = new ActiveXObject("Microsoft.XMLDOM")xml.async = falsexml.load("cdcatalog.xml")// Load XSLvar xsl = new ActiveXObject("Microsoft.XMLDOM")xsl.async = falsexsl.load("cdcatalog.xsl")// Transformdocument.write(xml.transformNode(xsl))</script></body></html> I have searched the mozilla site for help as well and came up with this url: http://www.mozilla.org/projects/xslt/js-interface.html but I can't tell if it's doing the same thing
  6. The code below is given on the w3 site as an example of how to use javascript to apply a client side transformation using IE. How is this accomplished with FF/Mozilla browsers? <html><body><script type="text/javascript">// Load XML var xml = new ActiveXObject("Microsoft.XMLDOM")xml.async = falsexml.load("cdcatalog.xml")// Load XSLvar xsl = new ActiveXObject("Microsoft.XMLDOM")xsl.async = falsexsl.load("cdcatalog.xsl")// Transformdocument.write(xml.transformNode(xsl))</script></body></html> I have searched the mozilla site for help as well and came up with this url: http://www.mozilla.org/projects/xslt/js-interface.html but I can't tell if it's doing the same thing
×
×
  • Create New...