Contact Us Forum Rules Search Archive
WebProWorld Part of WebProNews.com
Page One Link To Us Edit Profile Private Messages Archives FAQ RSS Feeds  
 

Go Back   WebProWorld > Site Design > Graphics & Design Discussion Forum
Subscribe to the Newsletter FREE!


Register FAQ Members List Calendar Arcade Chatbox Mark Forums Read

Graphics & Design Discussion Forum Post your graphics design questions/comments/ideas in here. Ask questions, post tutorials, discuss trends and best practices. Sub-forum for website accessibility and usability.

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 01-21-2004, 06:52 PM
ajpaulus's Avatar
WebProWorld Member
 

Join Date: Aug 2003
Location: South Bay, California
Posts: 87
ajpaulus RepRank 0
Default Pop Up Window

Can a small pop up window have a link to another pop up window? I can't seem to get it to work. Please help!
Reply With Quote
  #2 (permalink)  
Old 01-21-2004, 07:58 PM
httpman's Avatar
WebProWorld Pro
 

Join Date: Aug 2003
Location: France
Posts: 196
httpman RepRank 0
Default

Of course yes, but I don't fully understand what you want to do ?

To open a popup window, you have to use a JavaScript line. Just put it on a link in your 1st popup, and you will open a new popup.

Just one remark : when JavaScript opens a popup windows, it gives it a name. If you open a new popup with that same name, il will open the URL in the previous popup. Check that name !..

Here is the JavaScript code :


window.open(URL,Name,features);

where :
* URl is the page URL
* Name is that damned popup name
* features is an optional string specifying many parameters : is there a scrollbar, do it display menus, what is the pop up size, is it resizable, & so on...


If you want your popup to *automatically* open a new popup, that's very easy to do too. Just use the "onload" event.

Ok, if that's not the right answer, please give us more information..


JP
__________________
www.net-createurs.com [ french only website sorry ! ]
Reply With Quote
  #3 (permalink)  
Old 01-21-2004, 08:02 PM
ajpaulus's Avatar
WebProWorld Member
 

Join Date: Aug 2003
Location: South Bay, California
Posts: 87
ajpaulus RepRank 0
Default pop up

Thanks so much...I think that is the reason why it didn't work cuz it had the same name. In my products page, I want a pop up for the product's specifications but the information doesn't fit in the size window I want so I have to create another pop up for the additional specs. I will try it now....thanks
Reply With Quote
  #4 (permalink)  
Old 01-21-2004, 08:08 PM
httpman's Avatar
WebProWorld Pro
 

Join Date: Aug 2003
Location: France
Posts: 196
httpman RepRank 0
Default

I'm pleased if it could help.
If not, just tell why and the solution should come on. Unfortunately, there's no magic in the web (not yet) !!

As I can't sleep yet - it's only 1.30 A.M here in France - I checked you website. Really fine. PageRank = 5, nice images, nice logo, nice texts : you're on top.

Just one thing that hurts me : that (ugly) menu bar !
This is what I think could kill your visitors !..
Really, I've made a few dozen websites, and this website one is 100% what a good website should be --- excepted that incredible menu bar, which is sometimes on top of pages, and sometimes both on top and bottom. Should you spend a few bucks on that site, change that !!

Jp
__________________
www.net-createurs.com [ french only website sorry ! ]
Reply With Quote
  #5 (permalink)  
Old 01-21-2004, 08:19 PM
ajpaulus's Avatar
WebProWorld Member
 

Join Date: Aug 2003
Location: South Bay, California
Posts: 87
ajpaulus RepRank 0
Default pop up

It worked JP! Thanks! Another question... I am using the code:

<a href="javascript:void(0);" onClick="javascript:window.open('secfeat.html','pr oductview','width=472,height=472')" title="Features &amp; Benefits">

Can I replace the "javascript:void(0);" with the name of the current file? I don't like how it says javascript void in the scroll bar; it sounds so negative like it is an error or something.
Reply With Quote
  #6 (permalink)  
Old 01-21-2004, 08:37 PM
httpman's Avatar
WebProWorld Pro
 

Join Date: Aug 2003
Location: France
Posts: 196
httpman RepRank 0
Default

No, you can't do that.
As long as you want to open a new popup window, the "href" link is useless. It just works when you want to open a new page in the same window.

Regarding popups, the usual way to use this HREF parameter is to put href="#" (means : target = same page as the current one). This will not make a clear status bar message, but it's better than void(xx). Void(xx) is coming from the C++ world, but it's useless in our web world. It just means "return anything, it is meaningless anyway". So why to return something ? Just a C++ developper's fantasy !

I don't kown your knowledge around JavaScript.
Could I give you my own feedback as an "old" (5 years old) website designer, I often use this <a> link with an "onclick" event.

To use it, you just have to understand that before jumping to the URL as told in the href="xxx" parameter, javascript will look to the "onclick" event, and if it returns a "false" argument then the browser will not jump to the target page.

Where can it be usefull ? Whithin forms !... Check the e-mail adress syntax, and if it doesn' look OK return a "false" value -- and the link will not work. Great !

Jean-Pierre
__________________
www.net-createurs.com [ french only website sorry ! ]
Reply With Quote
  #7 (permalink)  
Old 01-21-2004, 08:59 PM
ajpaulus's Avatar
WebProWorld Member
 

Join Date: Aug 2003
Location: South Bay, California
Posts: 87
ajpaulus RepRank 0
Default java

JP

I don't have too much experience with Javascript. I did what you said and replaced the javascript void wording with your "#", and it didn't open up the page I wanted but had an error message. What did I do wrong?
Reply With Quote
  #8 (permalink)  
Old 01-21-2004, 09:12 PM
httpman's Avatar
WebProWorld Pro
 

Join Date: Aug 2003
Location: France
Posts: 196
httpman RepRank 0
Default

OK, give me the URL of your page and I'll be pleased to take a look and tell you the reason why.

But allow me some time : it's 2h30 A.M here in France, and I have to go to sleep (got to wake up at 6h00, that's very few to sleep) !!

JP
__________________
www.net-createurs.com [ french only website sorry ! ]
Reply With Quote
  #9 (permalink)  
Old 01-22-2004, 01:26 PM
ajpaulus's Avatar
WebProWorld Member
 

Join Date: Aug 2003
Location: South Bay, California
Posts: 87
ajpaulus RepRank 0
Default pop up

Okay, here's the url for the first pop up and the link on the bottom of that page is the other pop up...can you look at the code and tell me what it should be? Thanks Jean Pierre
Reply With Quote
  #10 (permalink)  
Old 01-22-2004, 01:27 PM
ajpaulus's Avatar
WebProWorld Member
 

Join Date: Aug 2003
Location: South Bay, California
Posts: 87
ajpaulus RepRank 0
Default

oops...forgot to include it above.

http://www.hrosystems.com/text/secspec.html
Reply With Quote
  #11 (permalink)  
Old 01-22-2004, 03:55 PM
httpman's Avatar
WebProWorld Pro
 

Join Date: Aug 2003
Location: France
Posts: 196
httpman RepRank 0
Default

Hello.

Here is the right code :

<a href="#" onClick="window.open('secpower.html','specview','w idth=472,height=472');return false" title="Power Requirements">


If you want more explanations :

1- you don't need to put "javascript:" inside the onClick event, as the only thing that can be placed here is some javascript code.

2- the "return false" tells to the browser to ignore the href link (#), and to keep the current window unchanged. The new popup will open, but the current one will remain unchanged. This is commonly used to prevent the browser to scroll on top of the page when the link is clicked.

JP
__________________
www.net-createurs.com [ french only website sorry ! ]
Reply With Quote
  #12 (permalink)  
Old 01-22-2004, 05:06 PM
ajpaulus's Avatar
WebProWorld Member
 

Join Date: Aug 2003
Location: South Bay, California
Posts: 87
ajpaulus RepRank 0
Default

You are wonderful JP!!
Reply With Quote
Reply

  WebProWorld > Site Design > Graphics & Design Discussion Forum
Tags: ,



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

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


Search Engine Optimization by vBSEO 3.2.0