hi lucid,
the way it works is i send the servers current time and the servers offset from GMT .. on the client side i get the clients current time and its offset from GMT..
i calculate the total offset between client and server and calculate the date and time of the client with respect...
hi caff,
the only way you can do what you want to do is to write out the table in a loop..
every time before you begin to write out the <tr> you would put a <DIV and give it an id of the loop counter
that way if you wanted the 5'th row you would be able to access it by accissing the div...
hi iza,
the date objects getTimeZoneOffset() never returns the same offset through out the year
eg:
if you are accessing from nj on the 5'th of march
it will return a value of 300 ( thats 5 hours from GMT)
on april 5 it retruns 240 ( thats 4 hours from GMT )
it takes care of daylight...
hi lucid,
any reason why you prefer not to use
var dt = new Date();
month = dt.getMonth();
day = dt.getDay() ;
etc......
why implement something that is already implemented for you by the underlying dom?
just curious..
hi lucid,
just an update..my problem was figuring out the clients time with respect to the servertime..i pass the server time and its offset from GMT to a javascript function and the function calculates the clients offset from GMT and displays the clients time irrespective of the...
hi lucid,
thanks for the code.....but i missed out something in the post..i need to be able to figure out if the client has daylight savings..if i understand correctly the above code calculates daylight savings based on the month and not on the client..
i have a problem diffrentiating...
i have a function which returns a clients time with respect to the server irrrespective of his system time. so if a client was accessing my page from new jersey and the server is hosted in arizona..with current time of 5.30 AM the client gets to see 7.30 AM irrrespective of what his system date...
i have been able to fix it by having each row in its own span and capturing the scroll bar offset..but its a tedious and non scalable approach..if anybody has any other ideas..would love to hear them..
i have not seen netscape 6 yet..does it have the same constraints?
man!!!! i am getting tired...
i have a floating navigation bar whose functionality is to float over the page whose content would consist of a form and form elemetns like radio buttons..
the radio buttons are punching through the layer space
has anybody seen this behaviour before..please advise
<!-- code begin -->
<html>...
i have a floating navigation bar in a page..its functionality is to float over the underlying form which contains form elements like radio buttons..it works fine in IE and functionally works in NS but the underlying form elements punch through the layer space..has anybody seen this behaviour...
eg url : http://somwurl?name=value
if you want to read the query strings off the url you use
String strValue = request.getParameter("name") ;
hi,
i have a page which has a navigation bar which occupies the width of the browser space and height ..equal to about that of the address bar..
functionality:
it simulates a frame and floats over page elements.. it works fine in IE and NS functionally but in netscape the page...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.