Last post Nov 06, 2009 01:52 AM by nimish_soft
Nov 06, 2009 12:46 AM|ashok.k|LINK
when i open my site in IE and launch the JS calender its shows fine. but in Firefox its not displaying correctly.
in my script i'm finding top and left possition of the control where we need to display the calender as follows.
offsetTop +=parseInt(scwEle.offsetTop, 10);
while (scwEle.tagName != 'BODY' && scwEle.tagName != 'HTML');
when i run this script from IE its displaying correct top and left posstion of the object. But in Firefox, the object "scwEle.offsetParent" returns as null.
here scwEle is the textbox object present in the page.
Can any one suggest me why this is happening only in firefox.
Thanks in advance
jscript calender in firefox
Nov 06, 2009 01:40 AM|oidldb|LINK
firefox for the offsetParent property of the textbox.
Here's where you can download firebug:
Hope this helps!
Nov 06, 2009 01:52 AM|nimish_soft|LINK
every browser support js in different way, and hv different property/objects for sme purpose.
u hv to debug ur code for each browser u goona use ur site