HTML, JavaScript And CSS Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
 
User Name:
Password:
Remember me
Go Back   ASP Free ForumsProgrammingHTML, JavaScript And CSS Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread ASP Free Forums Sponsor:
  #1  
Old October 15th, 2004, 07:17 AM
maxtrixx maxtrixx is offline
Contributing User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Jul 2004
Location: ASP Free Forums
Posts: 372 maxtrixx User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 21 h 35 m 13 sec
Reputation Power: 5
Angry javascript not working

I have no idea why this code is not working. It works perfect in a different page but when I tried to redo the same action in another page it won't work. Does anyone know why?

Here it goes:
<script language="javascript">
function NewWindow()
{
docWindow = window.open("test.asp", "Supporting Documents Form - 0.1", "width=100, height=100, left=0, top=0, menubar=no, status=no, location=no, toolbar=no, scrollbars=no, resizable=yes");
}
</script>

And here is my button:
<input type="button" name="btnDefine_1" value="Documents" onClick="NewWindow();">

The page doesn't go anywhere and it shows at the bottom that there's an error. I also checked if Javascript is enabled in my browser and it is. I only need this to work in IE.

Thanks!

Reply With Quote
  #2  
Old October 15th, 2004, 07:48 AM
Shadow Wizard's Avatar
Shadow Wizard Shadow Wizard is offline
Moderator From Beyond
Click here for more information.
 
Join Date: Sep 2004
Location: Israel
Posts: 26,969 Shadow Wizard User rank is General 8th Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 8th Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 8th Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 8th Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 8th Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 8th Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 8th Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 8th Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 8th Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 8th Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 8th Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 8th Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 8th Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 8th Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 8th Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 8th Grade (Above 100000 Reputation Level)  Folding Points: 342040 Folding Title: Super Ultimate Folder - Level 1Folding Points: 342040 Folding Title: Super Ultimate Folder - Level 1Folding Points: 342040 Folding Title: Super Ultimate Folder - Level 1Folding Points: 342040 Folding Title: Super Ultimate Folder - Level 1Folding Points: 342040 Folding Title: Super Ultimate Folder - Level 1Folding Points: 342040 Folding Title: Super Ultimate Folder - Level 1
Time spent in forums: 3 Months 1 Week 5 Days 15 h 9 m 16 sec
Reputation Power: 1556
double click the yellow error indicator - what is the full error message?

Reply With Quote
  #3  
Old October 15th, 2004, 08:09 AM
maxtrixx maxtrixx is offline
Contributing User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Jul 2004
Location: ASP Free Forums
Posts: 372 maxtrixx User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 21 h 35 m 13 sec
Reputation Power: 5
Quote:
Originally Posted by Shadow Wizard
double click the yellow error indicator - what is the full error message?
Here it goes:

Line: 6
Char: 2
Error: Invalid argument.
Code:0
Url:.../test_form.asp

Here's the code line by line:

<html>
<head>
<script type="text/javascript" language="javascript">
function NewWindow()
{
docWindow = window.open('supportingdocs.asp', 'Supporting Documents Form - 0.1', 'width=100, height=100, left=0, top=0, menubar=no, status=no, location=no, toolbar=no, scrollbars=no, resizable=yes');
}
</script>

Reply With Quote
  #4  
Old October 15th, 2004, 11:25 AM
maxtrixx maxtrixx is offline
Contributing User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Jul 2004
Location: ASP Free Forums
Posts: 372 maxtrixx User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 21 h 35 m 13 sec
Reputation Power: 5
Problem sovled. For those of you with the same problem, apparently when I copied the code from one page to another, there was a hidden character in the black space. I rewrote the exact same code a few lines before and it worked.

Reply With Quote
Reply

Viewing: ASP Free ForumsProgrammingHTML, JavaScript And CSS Help > javascript not working


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 1 hosted by Hostway