![]() |
Dynamic changing of div content using javascript issue
Hi,
Anyone pls tell me where is the issue? Code:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> |
Re: Dynamic changing of div content using javascript issue
Pls someone help me to solve this issue.
|
Re: Dynamic changing of div content using javascript issue
PHP Code:
I made two changes in your code. 1. I embedded Javascript inside PHP, instead of embedding PHP inside Javascript. 2. There were nested <script> tags, which modified as in the code now. Once again thanks to "Firebug" which helped me to debug the code. :) |
Re: Dynamic changing of div content using javascript issue
Hi venami,
Thanks for your reply.But it doesnt work for me.The following error occurs. Code:
Error: unterminated string literal |
Re: Dynamic changing of div content using javascript issue
Can you post here your modified code, for which you got the above errors?
|
Re: Dynamic changing of div content using javascript issue
Hi,
I just copied and pasted your code and executed and got the error. |
Re: Dynamic changing of div content using javascript issue
But the code which I posted works fine. Anyways, I will look into it and tell you the reason for the error.
How are you getting this error? I mean which application throws you this error? I hope PHP with apache2 will not throw errors like this. |
Re: Dynamic changing of div content using javascript issue
Hi venami,
My version details are below. PHP-5.2.8 Apache - 1.3.41 |
Re: Dynamic changing of div content using javascript issue
Hi venami,
Still I haven't solved the issue.Waiting for your reply. |
Re: Dynamic changing of div content using javascript issue
I could not understand why you are getting errors and I am executing the same code without errors. But I can guess the problem might be with the mismatching single and double quotes used in the code. But here everything looks fine.
Can you try executing the code by omitting the single-quotes around the variable $ss ? If you do like this, I think you will get a different output. Anyways, give a try and let me know what happens. |
| All times are GMT +5.5. The time now is 01:12. |