 |
Page 1 of 1
|
Author |
Message |
Quel13
Newbie - Two Blades
Joined: 23 Feb 2006
Posts: 31
|
 Product Pop-up windows
Hello again,
I'm trying to create a link to a "View Details" pop up window for each product and read a post on the subject that said to do the following:
Place the popup file in the 'html/pages' directory of the store and then use this link in the description area of each product:
<a href="agora.cgi?page=mypopupimg.html" onClick="MyWindow=window.open('agora.cgi?page=mypopupimg.html','MyWindow','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,width=450,height=450'); return false;" target="new">more info</a>
I tried this and kept getting my index page coming up in the pop up.
Once in the store, click on Alp Yarns on the left hand column and look at Alp #002.
Thanks for your help (and all previous help)
|
Tue Feb 28, 06 8:32 pm |
|
 |
Quel13
Newbie - Two Blades
Joined: 23 Feb 2006
Posts: 31
|
I tried using javascript to do the pop up windows which has been working great on Macs. For some reason, I'm getting a different effect on PCs (IE & Netscape). Once the pop up window launches, the store front in back of it vanishes and leaves a window that says either [object] or [Window Object] on it. You then have to go to this blank page and hit the back button to get back into the store.
I went back and tried using the agora pages method and still get my index page coming up in the pop up. But on the bright side it does work in IE & Netscape. I restored the agora popup version on Alp 004 in the Alp Yarns category. The rest of the View Details links are in javascript.
Store Url: http://buzix1.domainnameservers.net/~custo8/shop/agora.cgi
Can anyone take a peak and see what I'm doing wrong? I to do about 200 of these and don't want to have to keep re-doing them all.
Thanks!
Rachel
|
Wed Mar 01, 06 1:17 pm |
|
 |
scottcrew
Moderator
Joined: 13 Feb 2004
Posts: 7516
Location: The West Side of MI USA
|
Rachel,
Use a full URL to call the popup...
HTH!
_________________ God Bless!
Bonnie - AgoraCart Moderator
Get a Gold Membership
|
Wed Mar 01, 06 1:43 pm |
 |
 |
Quel13
Newbie - Two Blades
Joined: 23 Feb 2006
Posts: 31
|
I'm learning html now so I'm not as familiar with the scripting languages. This is what I've tried so far:
1. <a href="JavaScript:window.open ( 'html/popups/alp004color.html', 'popup', 'scrollbars=auto,resizable=yes,width=470,height=530' )"><font color="#FF00FF"><b>View Details</b></font></a>
This is giving the blank browser window after launching the popup on IE & Netscapte on PCs.
2. <a href="agora.cgi?page="http://buzix1.domainnameservers.net/~custo8/shop/html/pages/popups/alp004color.html" onClick="MyWindow=window.open('agora.cgi?page=http://buzix1.domainnameservers.net/~custo8/shop/html/pages/popups/alp004color.html','MyWindow','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,width=450,height=450'); return false;" target="new">more info</a>
This is giving me a pop up that says "I am sorry, but you may only use this program to view HTML pages."
3. <a href="agora.cgi?page="http://buzix1.domainnameservers.net/~custo8/shop/html/popups/alp004color.html" onClick="MyWindow=window.open('agora.cgi?page=http://buzix1.domainnameservers.net/~custo8/shop/html/popups/alp004color.html','MyWindow','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,width=450,height=450'); return false;" target="new">more info</a>
Same result as in #2.
Is there anything else I should be filling out/replacing in this code?
|
Wed Mar 01, 06 2:05 pm |
|
 |
scottcrew
Moderator
Joined: 13 Feb 2004
Posts: 7516
Location: The West Side of MI USA
|
Don't bother with the javascript thingy...
When you do that, people who have javascript disabled
in their browser will not be able to use the pop-up.
For the Full URL, use:
http://buzix1.domainnameservers.net/~custo8/shop/agora.cgi?page=popups/alp004color.html
Make sure your file is placed in the 'html/pages/popups' directory of the store.
If you don't need to really use or create a directory called popups,
then just put the file in the 'html/pages' directory of the store and adjust the URL accordingly.
There are usually more than 1 way to do things, if one way doesn't work try another...
HTH!
_________________ God Bless!
Bonnie - AgoraCart Moderator
Get a Gold Membership
|
Wed Mar 01, 06 3:01 pm |
 |
 |
Quel13
Newbie - Two Blades
Joined: 23 Feb 2006
Posts: 31
|
I typed this into the description box for Alp 004 and am still coming up with the pop up that says "I am sorry, but you may only use this program to view HTML pages"
<a href="agora.cgi?page="http://buzix1.domainnameservers.net/~custo8/shop/agora.cgi?page=popups/alp004color.html" onClick="MyWindow=window.open('agora.cgi?page=http://buzix1.domainnameservers.net/~custo8/shop/agora.cgi?page=popups/alp004color.html','MyWindow','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,width=450,height=450'); return false;" target="new">View Colors & Details</a>
I will try it by just having the popup files in the category now. Let's see if that works.
|
Wed Mar 01, 06 3:56 pm |
|
 |
Quel13
Newbie - Two Blades
Joined: 23 Feb 2006
Posts: 31
|
Nope, that doesn't work either. Don't know what else to try. Any more thoughts? I've tried just a simple target="blank" but then the pop up is so big it obscures the shop behind it.
|
Wed Mar 01, 06 4:00 pm |
|
 |
scottcrew
Moderator
Joined: 13 Feb 2004
Posts: 7516
Location: The West Side of MI USA
|
Here's the problem:
<a href="agora.cgi?page="http://buzix1.domainnameservers.net/~custo8/shop/agora.cgi?page=popups/alp004color.html" onClick="MyWindow=window.open('agora.cgi?page=http://buzix1.domainnameservers.net/~custo8/shop/agora.cgi?page=popups/alp004color.html','MyWindow','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,width=450,height=450'); return false;" target="new">View Colors & Details</a>
Should be more like:
<a href="agora.cgi?page=popups/alp004color.html" onClick="MyWindow=window.open('agora.cgi?page=popups/alp004color.html','MyWindow','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,width=450,height=450'); return false;" target="new">View Colors & Details</a>
HTH!
_________________ God Bless!
Bonnie - AgoraCart Moderator
Get a Gold Membership
|
Wed Mar 01, 06 4:19 pm |
 |
 |
hans_m
Newbie - One Blade
Joined: 01 Mar 2006
Posts: 11
|
hm try to get make it dynamic -
with java script
function openAnyWindow(url, name) {
var l = openAnyWindow.arguments.length;
var w = "";
var h = "";
var features = "";
for (i=2; i<l; i++) {
var param = openAnyWindow.arguments[i];
if ( (parseInt(param) == 0) ||
(isNaN(parseInt(param))) ) {
features += param + ',';
} else {
(w == "") ? w = "width=" + param + "," :
h = "height=" + param;
}
}
features += w + h;
var code = "popupWin = window.open(url, name";
if (l > 2) code += ", '" + features;
code += "')";
eval(code);
}
so now you have to make the part dynamic in the productPage.inc
a piece i have here -
<a href="javascript:openAnyWindow('here the dynamic stuff', 'remote',600,620,'toolbar=no,location=no,status=no,menubar=no,scrollbars=1,resizable=yes);"><more info</a>
'here the dynamic stuff' with that one may someone could help out?? It can not be too hard to write that piece.
I just have to get a bit deeper into it and when I have more time I will get the solution for that.
greetings
Hans
Hans
|
Wed Mar 01, 06 4:21 pm |
|
 |
hans_m
Newbie - One Blade
Joined: 01 Mar 2006
Posts: 11
|
forgot - of course you have to ask first - are there any more details - if yes show the link - more details..
btw - why cant I edit my postings?
|
Wed Mar 01, 06 4:38 pm |
|
 |
Quel13
Newbie - Two Blades
Joined: 23 Feb 2006
Posts: 31
|
I tried your last suggestion:
Code:<a href="agora.cgi?page=popups/alp004color.html" onClick="MyWindow=window.open('agora.cgi?page=popups/alp004color.html','MyWindow','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,width=450,height=450'); return false;" target="new">View Colors & Details</a>
Now I'm back at having my index page appear in the popup. Your suggestion makes sense, so I don't know where it's pulling my index page from.
Is it Ok to be putting these scripts in the description boxes for each product or should I be placing them elsewhere?
|
Thu Mar 02, 06 1:10 am |
|
 |
scottcrew
Moderator
Joined: 13 Feb 2004
Posts: 7516
Location: The West Side of MI USA
|
Use the full URL... I ddn't know you were putting it in the description field...
You can also do this dynamically by naming your more info pages the same as your productID.
Then in your ProductPage create the link with the %%ProductID%% token.
It would look a bit more like:
Code:
<a href="http://buzix1.domainnameservers.net/~custo8/shop/agora.cgi?page=popups/%%ProductID%%.html" onClick="MyWindow=window.open('http://buzix1.domainnameservers.net/~custo8/shop/agora.cgi?page=popups/%%ProductID%%.html','MyWindow','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no'); return false;" target="new">View Colors & Details</a>
HTH!
_________________ God Bless!
Bonnie - AgoraCart Moderator
Get a Gold Membership
|
Fri Mar 03, 06 11:29 am |
 |
 |
|
The time now is Sat Apr 26, 25 7:29 am | All times are GMT - 7 Hours
|
Page 1 of 1
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|
|