Akopia Akopia Services

[Date Prev][Date Next][Thread Prev][Thread Next][Minivend by date ][Minivend by thread ]

Re: [mv] Need Popup window



******    message to minivend-users from Stephen Ricketts <steve@jellybeanmedia.co.uk>     ******

Fred 

Thanks for your help. This is a sample of the code which I've been using
that works:

<HEAD>
<script language="JavaScript"><!--
function popup(){ 
newwindow = window.open("", "newwin","location=no,width=223,height=223");
}
// -->
</script>
</HEAD>
<BODY>
<a href="javascript:popup(); newwindow.document.write('<TITLE>__COMPANY__ -
[item-field title]</TITLE> <center>text here</center>')"><img
src="gallery/items/[item-field image]"</a>
</BODY>

The problem is that when I change 'width=223,height=223' to
'width=[item-field width], height=[item-field height]' the MV tags don't
work. However, I can use the MiniVend tags within the <BODY> of the page
without any problems.

I hope that makes it clearer.

Steve


> From: "Fred Harju" <fred.harju@sympatico.ca>
> Reply-To: minivend-users@minivend.com
> Date: Mon, 30 Oct 2000 07:34:46 -0500
> To: <minivend-users@minivend.com>
> Subject: Re: [mv] Need Popup window
> 
> ******    message to minivend-users from "Fred Harju"
> <fred.harju@sympatico.ca>     ******
> 
> Hi Stephen, I'm pretty good with javascript so I should be able to help you
> out :) Can you give me a code example for when you tried to put the tags in
> the head of your document? I'm not sure that I completely understand your
> problem but I am pretty sure that I can figure it out -- I just need to see
> the code. :)
> 
> Talk to you later!
> Fred.
> 
> ----- Original Message -----
> From: Stephen Ricketts <steve@jellybeanmedia.co.uk>
> To: <minivend-users@minivend.com>
> Sent: Friday, October 27, 2000 10:48 AM
> Subject: Re: [mv] Need Popup window
> 
> 
>> ******    message to minivend-users from Stephen Ricketts
> <steve@jellybeanmedia.co.uk>     ******
>> 
>> I also have had to use popup windows and use the very simple code at the
>> bottom of this message, I'm not sure whether you will be able to modify it
>> for your needs but please take a look.
>> 
>> On a very similar vein, I was wondering if anyone could help me with this
>> problem. I have a popup window that works very well but I now need the
>> window to be different sizes depending on what is in the product database.
> I
>> have set up two new database fields, [item-field weight] and [item-field
>> height], but when I try and use these tags in the head of my page it
> doesn't
>> work, so I presume that I need to have that part of the JavaScript in the
>> body of the pages. However, with my limited experience of JavaScript I can
>> not get it to work.
>> 
>> The code which works that I currently use is below. All that I need, is to
>> somehow have the info for width and height to be in the body part.
>> 
>> <HEAD>
>> <script language="JavaScript"><!--
>> function popup(){
>> newwindow = window.open("", "newwin","location=no,width=223,height=223");
>> }
>> // -->
>> </script>
>> </HEAD>
>> <BODY>
>> <a href="javascript:popup();
> newwindow.document.write('<TITLE>__COMPANY__ -
>> [item-field title]</TITLE> <center>text here</center>')"><img
>> src="gallery/items/[item-field image]"</a>
>> </BODY>
>> 
>> It's been driving me mad for a couple of days now so any help would be
> most
>> appreciated.
>> 
>> Steve
>> 
>> 
>>> From: "Walter J. Cheney" <writers@snowcrest.net>
>>> Organization: Writers Consortium (Seniors-Site.com
>>> Reply-To: minivend-users@minivend.com
>>> Date: Wed, 25 Oct 2000 12:15:06 -0700
>>> To: minivend-users@minivend.com
>>> Subject: Re: [mv] Need Popup window
>>> 
>>> ******    message to minivend-users from "Walter J. Cheney"
>>> <writers@snowcrest.net>     ******
>>> 
>>> Thanks Bob: Yet I need more help. I placed the script portion in the
> head of
>>> my index.html of my catalog. Then I have placed the following into the
>>> "comment" column in my products.asc file:
>>> 
>>> HREF="hassembly1e.html" onClick="newWindow('8269.html','Click HERE for
> song
>>> titles');return false">
>>> 
>>> As desired the "comment information" shows up on the pages with the
>>> appropriate product but it will not open up the window.
>>> 
>>> My file to show up in the new window is "8269.html" that has been placed
> in
>>> the catalog pages directory.. same as where the index.html is located.
> What
>>> is meant by hassembly1e.html?  I also tried the following:
>>> 
>>> HREF="8269.html" onClick="newWindow('<a
>>> href="seniors-site.com/cgi-bin/catalog40/pages/8269.html','Click HERE
> for song
>>> titles');return false">
>>> 
>>> I appreciate your help.
>>> 
>>> 
>>> 
>>> Bob Curtis wrote:
>>> 
>>>> ******    message to minivend-users from Bob Curtis
> <bob@circlesquared.com>
>>>> ******
>>>> 
>>>> I found that this worked better.
>>>> Put this in the head :-
>>>> <SCRIPT LANGUAGE="JavaScript"><!--
>>>> function newWindow(file,window) {
>>>> 
>>>> 
> msgWindow=open(file,window,'resizable=no,width=250,height=350','width=151,he
> i
>>>> 
> ght=251,directories=no,location=no,menubar=no,scrollbars=no,status=no,toolba
> r
>>>> =no,resizable=no,left=50%,top=50%,screenX=0,screenY=0');
>>>> 
>>>> if (msgWindow.opener == null) msgWindow.opener = self;
>>>> }
>>>> file://--></SCRIPT>
>>>> 
>>>> and in the body :-
>>>> HREF="hassembly1e.html" onClick="newWindow('**YOUR URL**','**NAME FOR
> YOUR
>>>> WINDOW**');return false">
>>>> 
>>>> this works well in both IE and Netscape, and I like it :-)
>>>> hope this helps
>>>> Rob Curtis
>>>> 
>>>> -
>>>> To unsubscribe from the list, DO NOT REPLY to this message.  Instead,
> send
>>>> email with 'UNSUBSCRIBE minivend-users' in the body to
>>>> Majordomo@minivend.com.
>>>> Archive of past messages:
> http://www.minivend.com/minivend/minivend-list
>>> 
>>> --
>>> 
>>> Webmaster - Walt Cheney
>>> http://seniors-site.com
>>> writers@seniors-site.com
>>> 
>>> 
>>> -
>>> To unsubscribe from the list, DO NOT REPLY to this message.  Instead,
> send
>>> email with 'UNSUBSCRIBE minivend-users' in the body to
> Majordomo@minivend.com.
>>> Archive of past messages: http://www.minivend.com/minivend/minivend-list
>>> 
>> 
>> -
>> To unsubscribe from the list, DO NOT REPLY to this message.  Instead, send
>> email with 'UNSUBSCRIBE minivend-users' in the body to
> Majordomo@minivend.com.
>> Archive of past messages: http://www.minivend.com/minivend/minivend-list
> 
> -
> To unsubscribe from the list, DO NOT REPLY to this message.  Instead, send
> email with 'UNSUBSCRIBE minivend-users' in the body to Majordomo@minivend.com.
> Archive of past messages: http://www.minivend.com/minivend/minivend-list
> 

-
To unsubscribe from the list, DO NOT REPLY to this message.  Instead, send
email with 'UNSUBSCRIBE minivend-users' in the body to Majordomo@minivend.com.
Archive of past messages: http://www.minivend.com/minivend/minivend-list


Search for: Match: Format: Sort by: