3 posts tagged with javascript by jasondigitized.
Displaying 1 through 3.
I would like to write a javascript function that takes the current time and adjusts it based on the timezone of any of our customers around the world. "Easy enough if I know the timezone" I thought......until I started to think about daylight savings time and all of its variations around the world. What is the best way to tackle this? Is there a handy script out there to do this, or should I be looking to call a webservice? I still don't know what time it is in Indiana.
posted on Jun 4, 2007 - 14 answers ![]()
I am inserting a large amount of links and text into a DIV tag using innerHTML after a page loads. For some reason, the HTML I am inserting is overflowing to the right of the DIV and not wrapping. I have a feeling, the browser cannot perform its normal text-wrapping because I am adding the HTML after the fact. Is there any technique via CSS or javascript to prevent this overflow from happening?
posted on Nov 29, 2006 - 6 answers
Javascript / HTML : Let's say I have a page called 'foo.html' that opens a new window using the command window.open('http://ask.metafilter.com','newWindow'). Now let's say I navigate AWAY from my original page 'foo.html' to a page call 'bar.html' still leaving 'newWindow' open. Is there anyway I can get a handle on 'newWindow' from 'bar.html' even though I have navigated away from its opener 'foo.html'? I basically want to be able to change the url of 'newWindow' at anytime from any page on my website. Alternate solutions accepted.
posted on Nov 21, 2006 - 4 answers