[thelist] Apparent problem with NS on Mac: new window launch

Eric Langlitz feed at chicken3.com
Tue Aug 28 02:15:12 CDT 2001


You're welcome, Tony, glad I could help!  

A more elegant way that in the future will save you TONS of time, is to
employ your script as a relative linked file, like the following example:

<script language="JavaScript" src="popwindow.js">
</script>

popwindow.js is the script that holds the function.

This is a file that would reside on your server with all your other html
pages.  You do not need any html on this page, only the Script itself.  You
must however add the ".js" extension to the file.  Then add the above code
in your between your <head></head> tags on each page you want to employ your
function, and leave your event handlers as they are.

This is neat because now, when there is a problem with the script, you only
have to fix it once - of course in your case the issue was with event
handlers, so this whole thing I just wrote maybe doesn't even apply to
anything, but hey, maybe it will help someone out there, eh?

You could of course build the page with the pictures in ASP, PHP, Cold
Fusion or your favorite language, pass variables to the page for each new
picture, and have this whole thing solved with ONE page of HTML/Backend
language...but now I'm rambling...


--
Eric Langlitz
Principal
Chicken3
3409 NE 62nd Ave #164
Vancouver, WA 98661
360.906.7195
feed at chicken3.com

----------
>From: "Tony Page" <zamba at zamba.com>
>To: <thelist at lists.evolt.org>
>Subject: RE: [thelist] Apparent problem with NS on Mac: new window launch
>Date: Tue, Aug 28, 2001, 12:21 AM
>

> Thanks, Eric, I've just tried this and it works OK on a Mac running NS 4.5,
> so as Frank's 4.7 works OK with the current setup it must be just the older
> browsers. As a matter of interest, does anyone who is up on this know why
> this should be so?
> Anyway, thank god for search and replace...
>
> Tony
>
> PS anyone know a more elegant way to do this?
>
>       [ZambaGrafix]
>    <websites that work>
> tel: +61 2 9953 4425
> fax: +61 2 9909 8534
> email: ajp at zambagrafix.com
> http://www.zambagrafix.com
>
>> -----Original Message-----
>> From: thelist-admin at lists.evolt.org
>> [mailto:thelist-admin at lists.evolt.org]On Behalf Of Eric Langlitz
>> Sent: Tuesday, August 28, 2001 3:49 PM
>> To: thelist at lists.evolt.org
>> Subject: Re: [thelist] Apparent problem with NS on Mac: new window
>> launch
>>
>>
>> It no work-ey for me either.
>>
>> I know that you may have to accommodate for older browsers here, but you
>> might try "onClick" rather than "OnMouseDown" as your event
>> handler.  I have
>> found that as a viable solution with "Net-Scrape" in the past.
>>
>> Good luck!
>>
>>
>> --
>> Eric Langlitz
>> Principal
>> Chicken3
>> 3409 NE 62nd Ave #164
>> Vancouver, WA 98661
>> 360.906.7195
>> feed at chicken3.com
>><snip>
>
>
> ---------------------------------------
> For unsubscribe and other options, including
> the Tip Harvester and archive of TheList go to:
> http://lists.evolt.org Workers of the Web, evolt !
> 




More information about the thelist mailing list