Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Page not working using the same code

Status
Not open for further replies.

wilberforce2

IS-IT--Management
Jan 8, 2007
36
0
0
GB
Page not working using the same code

I wonder if someone could help me I have two pages that access databases. I have configured them both now to use the same database because I am getting javascript errors in IE 6.

Rushmoor (works fine in IE6)


Bracknell (Error in IE6 Pasted javascript from rushmoor and same database)


Please help I have no idea why this is messing up. It works fine in IE 7 and Firefox.

Many thanks

Sean
 
It's because your data is causing IE to go screwy. The line:

Code:
vsTableData[vsTableData.length] = "Restaurants/cafés"

is showing up in a "view source" as:

Code:
vsTableData[vsTableData.length] = "Restaurants/caf?

thus causing an "unterminated string constant" error.

Perhaps you should escape your data when delivering these sort of characters to the page?

Hope this helps,
Dan



Coedit Limited - Delivering standards compliant, accessible web solutions

[tt]Dan's Page [blue]@[/blue] Code Couch
[/tt]
 
Thanks for you time.

However I am not getting the same error. I am feeding the same data into both pages and Rushmoor works fine but the Bracknell one does not.

I checked the both bages in IE 6 page source view and I cannot see the
Code:
vsTableData[vsTableData.length] = "Restaurants/caf?

Error. Please help!!!!!!
 
I thank that I have solved it. I think that it was an error in the doctype?

Sean
 
You've done more than change the DOCTYPE - because I was definately getting an "unterminated string constant" when laoding the page the other day, and the source was incomplete. It is now working fine. A DOCTYPE wouldn't have changed that - it's more to do with character set / encoding.

Anyway - good to see it's working for you now.

Dan



Coedit Limited - Delivering standards compliant, accessible web solutions

[tt]Dan's Page [blue]@[/blue] Code Couch
[/tt]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top