•
•
•
•
What is DaniWeb IT Discussion Community?
You're currently browsing the JavaScript / DHTML / AJAX section within the Web Development category of DaniWeb, a massive community of 456,530 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 2,779 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our JavaScript / DHTML / AJAX advertiser: Lunarpages Web Hosting
Views: 5255 | Replies: 4
![]() |
•
•
Join Date: Aug 2007
Location: Iloilo City Philippines
Posts: 17
Reputation:
Rep Power: 2
Solved Threads: 0
•
•
Join Date: Jul 2006
Location: Deptford, London
Posts: 971
Reputation:
Rep Power: 5
Solved Threads: 48
•
•
Join Date: Aug 2007
Location: Iloilo City Philippines
Posts: 17
Reputation:
Rep Power: 2
Solved Threads: 0
•
•
Join Date: Jul 2006
Location: Deptford, London
Posts: 971
Reputation:
Rep Power: 5
Solved Threads: 48
Yep. Change the code to:
or
If you don't escape the quotes within a string; the parser will think that the string ends early. i.e, it will get to
"<script type=" and then get confused. In this context, putting a \ character means 'ignore the next character', and using single quotes inside the string rather than double quotes stops the parser thinking that your inner-string quotes are end-of-string quotes..
PHP Syntax (Toggle Plain Text)
print "<script type=\"text/javascript\">window.opener.location.reload(); </script>";
PHP Syntax (Toggle Plain Text)
print "<script type='text/javascript'>window.opener.location.reload(); </script>";
"<script type=" and then get confused. In this context, putting a \ character means 'ignore the next character', and using single quotes inside the string rather than double quotes stops the parser thinking that your inner-string quotes are end-of-string quotes..
Plato forgot the nullahedron..
![]() |
•
•
•
•
•
•
•
•
DaniWeb JavaScript / DHTML / AJAX Marketplace
•
•
•
•
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
- Auto Refresh ! possible ? (Windows NT / 2000 / XP / 2003)
- How to pause webpage? (ASP.NET)
- Coding a PvP Arena - Help (PHP)
- How to Auto refresh a part of a page (JSP)
- refresh page one time only.. (PHP)
- Network Folder Refresh Problem (Windows NT / 2000 / XP / 2003)
- Discussion Board (JSP)
- Internet Explorer always on top (Web Browsers)
Other Threads in the JavaScript / DHTML / AJAX Forum
- Previous Thread: validation
- Next Thread: css file


Linear Mode