 |

01-21-2004, 06:52 PM
|
 |
WebProWorld Member
|
|
Join Date: Aug 2003
Location: South Bay, California
Posts: 87
|
|
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!
|

01-21-2004, 07:58 PM
|
 |
WebProWorld Pro
|
|
Join Date: Aug 2003
Location: France
Posts: 196
|
|
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
|

01-21-2004, 08:02 PM
|
 |
WebProWorld Member
|
|
Join Date: Aug 2003
Location: South Bay, California
Posts: 87
|
|
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
|

01-21-2004, 08:08 PM
|
 |
WebProWorld Pro
|
|
Join Date: Aug 2003
Location: France
Posts: 196
|
|
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
|

01-21-2004, 08:19 PM
|
 |
WebProWorld Member
|
|
Join Date: Aug 2003
Location: South Bay, California
Posts: 87
|
|
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 & 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.
|

01-21-2004, 08:37 PM
|
 |
WebProWorld Pro
|
|
Join Date: Aug 2003
Location: France
Posts: 196
|
|
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
|

01-21-2004, 08:59 PM
|
 |
WebProWorld Member
|
|
Join Date: Aug 2003
Location: South Bay, California
Posts: 87
|
|
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?
|

01-21-2004, 09:12 PM
|
 |
WebProWorld Pro
|
|
Join Date: Aug 2003
Location: France
Posts: 196
|
|
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
|

01-22-2004, 01:26 PM
|
 |
WebProWorld Member
|
|
Join Date: Aug 2003
Location: South Bay, California
Posts: 87
|
|
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
|

01-22-2004, 01:27 PM
|
 |
WebProWorld Member
|
|
Join Date: Aug 2003
Location: South Bay, California
Posts: 87
|
|
|

01-22-2004, 03:55 PM
|
 |
WebProWorld Pro
|
|
Join Date: Aug 2003
Location: France
Posts: 196
|
|
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
|

01-22-2004, 05:06 PM
|
 |
WebProWorld Member
|
|
Join Date: Aug 2003
Location: South Bay, California
Posts: 87
|
|
You are wonderful JP!!
|
| Thread Tools |
|
|
| Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
|