Code Newbie
News     Forums     Search     Members     Sign Up    

My Code Newbie
Username

Password

Articles/Snippets
ASP Classic
ASP.NET
C
C#
C++
HTML / CSS
Java
Javascript
Linux / BSD
Perl
PHP
Python
Ruby
SQL
VB 6
VB.NET

C.N. Friends
  Planet Rome

Link to Us!
Code Newbie
  Code Newbie
    forums
Old 11-07-2002, 10:09 PM   #1 (permalink)
abc123
bloomberg
 
abc123's Avatar
 
Join Date: Jun 2002
Location: bloomberg
Posts: 263
abc123 is on a distinguished road
Send a message via AIM to abc123 Send a message via Yahoo to abc123
what the hell is up with this?

javascript seems to have gone a little silly..

im trying to put a nested script statement in my asp page code, i.e.

Code:
<%
response.write("this is an asp page")
%>

<script language="javascript">

x = window.open("about:blank", etc);
x.document.write("<html><body> ..etc");
x.document.write("<script language=javascript>");
x.document.write("function y(){ return x; } ");
x.document.write("</script>");
</script>
now this crashed in asp caused it says "can't have nested script statements.."

so.. i trick it like this:
Code:
x.document.write("<scri");
x.document.write("pt language=javascript>");
//etc...
and this really messes things up
someone try it and tell me why
__________________
-- bloomberg.
abc123 is offline   Reply With Quote
Old 11-07-2002, 10:13 PM   #2 (permalink)
abc123
bloomberg
 
abc123's Avatar
 
Join Date: Jun 2002
Location: bloomberg
Posts: 263
abc123 is on a distinguished road
Send a message via AIM to abc123 Send a message via Yahoo to abc123
nevermind, i just doubley tricked it and that fixed it.
__________________
-- bloomberg.
abc123 is offline   Reply With Quote
Old 11-08-2002, 12:55 AM   #3 (permalink)
redhead
Newbie
 
redhead's Avatar
 
Join Date: Jun 2002
Location: Denmark
Posts: 1,726
redhead is on a distinguished road
Or it will be something like:
Code:
x.document.write("<\/script>");
__________________
Don't worry Ma'am, We're university students, We know what We're doing.
-----
If you pull the pin, Mr.Grenade would no longer be your friend.
-----
01000111 01101111 00100000 01000011 00100000 00100001
redhead is offline   Reply With Quote
Old 11-08-2002, 04:05 PM   #4 (permalink)
abc123
bloomberg
 
abc123's Avatar
 
Join Date: Jun 2002
Location: bloomberg
Posts: 263
abc123 is on a distinguished road
Send a message via AIM to abc123 Send a message via Yahoo to abc123
thatd give an error, "/" isn't a special character...
__________________
-- bloomberg.
abc123 is offline   Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
cgi-bin hell Skelly All Other Coding Languages 2 09-30-2004 07:39 AM
Hell, it's been found at last! sdeming Lounge 3 09-23-2002 07:28 AM
Binkys from Hell... MiLady Mirlyn Lounge 1 06-04-2002 12:33 PM


All times are GMT -8. The time now is 03:11 AM.


Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.0.0 RC8





Copyright © 2000-2008, Milano Interactive
Web Hosting provided by Portal 360 Web Hosting