Current location: Hot Scripts Forums » General Web Coding » JavaScript » Popup script not working


Popup script not working

Reply
  #1 (permalink)  
Old 07-20-03, 12:31 PM
lorensr lorensr is offline
New Member
 
Join Date: Jul 2003
Location: Carlsbad, CA
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Popup script not working

I am helping my son with his web site. I use NetObjects Fusion to generate the code and as you suspect, I am code illiterate, both html and javascript.

When I place the code below on the page, I get the following error: javascript: void (0)

I then move the curser a little off of the link and it says: error on page

Would one of you guys (pros) please take a look and see what I have done incorrectly? Thanks much for your help.


onclick="window.open('http://www.vtviews.com/flashtours/7271swf/index.html','pavona','toolbar=yes,location=0,direc tories=yes,status=yes,menubar=yes,scrollbars=yes,r esizable=yes,copyhistory=yes,width=550,height=450' )"
__________________
LSandersSr
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
  #2 (permalink)  
Old 07-21-03, 05:29 AM
Henry's Avatar
Henry Henry is offline
Wannabe Coder
 
Join Date: Jul 2003
Location: Brisbane, Australia
Posts: 218
Thanks: 0
Thanked 0 Times in 0 Posts
Hey i have a similar but a little easier way try this place this code in between the <head>....</head> tags:

<script language="JavaScript">
<!--

function popWindow(url) {
sendPic = window.open(url,'','width=760,height=600,scrollbar s=yes,toolbars=no,menubars=no,location=no,resizabl e=yes');
}


//-->
</script>

and then any link you want to open a pop up window do come of do this:

<a href="javascript: popWindow(URL IN HERE)">Pop this window</a>

Of course this is alot less flexible but it is alot easier to modify a whole lot of links! and im sorry but im not a pro but i hope that helps
__________________
henerz
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
  #3 (permalink)  
Old 07-21-03, 03:29 PM
lorensr lorensr is offline
New Member
 
Join Date: Jul 2003
Location: Carlsbad, CA
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Thanks Henry, I almost have it working now with a script something like what you suggested. It is a little different because there are 2 popups coming from this script. I still have a problem with another window opening that says something like site not found. I don't know how to get rid of it. There are 2 buttons that I want to open virtual tours with on this site:
www.coastalhomefinder.com

Could you take a look at the source code to see if you can tell what is causing the problem. Please only if you have time. Thanks much.
__________________
LSandersSr
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
  #4 (permalink)  
Old 07-21-03, 04:06 PM
lorensr lorensr is offline
New Member
 
Join Date: Jul 2003
Location: Carlsbad, CA
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Hey Henry.... I have it fixed...Thanks for your help.
__________________
LSandersSr
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
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 Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Looking for a good review management script griz_fan Script Requests 10 07-29-07 06:08 AM
can some help me to get this script working cabj1981 ASP 5 09-26-03 11:50 AM
Subprofile Script Not Working macj1326 PHP 0 09-08-03 10:16 PM
$Mailserver script not working ccompola The Lounge 0 08-08-03 07:06 PM
Talkback script..help pls BC_ PHP 0 06-22-03 07:44 PM


All times are GMT -5. The time now is 06:59 AM.
vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.