Snitz Forums 2000
Snitz Forums 2000
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Community Forums
 Code Support: ASP (Non-Forum Related)
 response.write javascript ok in FF not ok in IE
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

ILLHILL
Junior Member

Netherlands
341 Posts

Posted - 07 August 2007 :  11:38:04  Show Profile

Response.write "<script type=""text/javascript"">"
Response.write "AJS.AEV(window, 'load', function() {"
Response.write "GB_showCenter(""Add To Social Bookmarking Sites"",""http://www.link.com/page.asp?_link_=" & cu & "&_title_=" & ct & """,""400px"",""600px"");Launch();"
Response.write "});"
Response.write "</script>"


works like a charm in FF, but gives an invalid argument in IE.
I tried to replace the ? and & in the link by % encoding, but that doesn't work at all.

Any ideas why it doesn't work in IE?

Greets & thanks, Dominic


CLPPR.com - All The News Only Seconds Away

Shaggy
Support Moderator

Ireland
6780 Posts

Posted - 07 August 2007 :  11:44:09  Show Profile
Got linkage?


Search is your friend
“I was having a mildly paranoid day, mostly due to the
fact that the mad priest lady from over the river had
taken to nailing weasels to my front door again.”
Go to Top of Page

ILLHILL
Junior Member

Netherlands
341 Posts

Posted - 07 August 2007 :  11:58:10  Show Profile
Yes, of course (you will have to copy & paste though):

http://www.clppr.com/indextest9.asp?cu=http://www.snitz.com/&ct=snitz

Greets, Dominic



CLPPR.com - All The News Only Seconds Away
Go to Top of Page

Shaggy
Support Moderator

Ireland
6780 Posts

Posted - 07 August 2007 :  12:11:54  Show Profile
Rab the page through Microsoft Script Editor and it's line 38 in AJS.js that's throwing the error on loading the page:

_e.style[_d]=AJS.getCssDim(_c);

Not familiar with the Greybox script, so can't be of much help debugging for you but I would guess that the problem is with the _c varaible that's getting passed through to the getCssDim function.


Search is your friend
“I was having a mildly paranoid day, mostly due to the
fact that the mad priest lady from over the river had
taken to nailing weasels to my front door again.”
Go to Top of Page

ILLHILL
Junior Member

Netherlands
341 Posts

Posted - 07 August 2007 :  12:17:44  Show Profile
Thanks! I will get to work with that.
Greets & thanks!

Dominic

CLPPR.com - All The News Only Seconds Away
Go to Top of Page

ILLHILL
Junior Member

Netherlands
341 Posts

Posted - 11 August 2007 :  21:14:11  Show Profile
well, tried with the original greybox script, since I did some modifications of it, which I suspected to cause this behavior, but found out that even that did not help, so I went with a more secure option through asp, to get the desired result:

http://www.clppr.com/indextest11.asp?cu=http://www.snitz.com&ct=Snitz%20Snitz%20Snitz

Thanks for looking and trying though, Shaggy!

Greets, Dominic

CLPPR.com - All The News Only Seconds Away
Go to Top of Page

Shaggy
Support Moderator

Ireland
6780 Posts

Posted - 13 August 2007 :  05:27:02  Show Profile
You're welcome, Dom' Glad you found some way to get it working.


Search is your friend
“I was having a mildly paranoid day, mostly due to the
fact that the mad priest lady from over the river had
taken to nailing weasels to my front door again.”
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Topic Locked
 Printer Friendly
Jump To:
Snitz Forums 2000 © 2000-2021 Snitz™ Communications Go To Top Of Page
This page was generated in 0.23 seconds. Powered By: Snitz Forums 2000 Version 3.4.07