![]() |
Changing innerHTML for div
Hi,
Div innerHTMl not working in IE6. Code:
function toggleVisiblity()Code:
<div align=left><a id='chartlink' href=# onclick=\"toggleVisiblity()\"><img src=\"../images/chart.gif\" border=0></a></div><div id='chart' style='display:none;' align=center></div> |
Re: Changing innerHTML for div
I think you missed a pair of quotes here :
Code:
. |
Re: Changing innerHTML for div
Hi
Thanks for you reply.But I tried that also but is is also not working.The issue is not with the quotes.I think the issue is in the updation of the image.The new image is updated in the temp folder.But it is not updated even when the page is refreshed. Pls help........ |
Re: Changing innerHTML for div
Is the permission for the image file set correctly?
|
Re: Changing innerHTML for div
I have made little changes to your code and posted here the corrected one. The problem seems to be the '\' escape character that you used, which is not required in your case. The changes are marked with red colour.
Code:
<html> |
Re: Changing innerHTML for div
Hi venami,
I used the code inside php.So I used the escape symbol.Here I quoted just the code. And also the permission for the image is set right.It is working fine in firefox.In IE it is not working. |
Re: Changing innerHTML for div
Then it might be the Javascript compatibility issue with IE.
Since I wont be having access to the web server till Sunday, I could not help you immediately. :) Otherwise I could have done something now. |
Re: Changing innerHTML for div
Hi venami,
Its ok.Thanks for your replies.If I found the workaround I will put it here. |
Re: Changing innerHTML for div
Also, are your sure that it is going into the IF block of your javascript, did you verify that.
|
Re: Changing innerHTML for div
Hi,
Yes.It is going to the if block and tbl is not null only. |
| All times are GMT +5.5. The time now is 18:59. |