[thelist] Advanced popup window

Sutherland, Paul Paul.Sutherland at ccc.govt.nz
Sun Nov 30 13:44:52 CST 2003


Hi this is my first post here and as you can see i am VERY behind in reading this (high volume) list...

How can you use this method when submitting a form (e.g. onSubmit will open a new window as per the example below - and will still work if JS is not there...)

<form action="/polls.asp" method="post">
<input type="radio" name="poll" value="R" />R
<input type="submit" name="WFM_Submit" value="Vote" />
</form>

I have fiddled with onSubmit and a few other things and gotten some nice errors but... didn;t work it out...

/paul

-----Original Message-----
From: rudy [mailto:r937 at interlog.com]
Sent: Saturday, 21 June 2003 10:27 a.m.
To: thelist at lists.evolt.org
Subject: Re: [thelist] Advanced popup window


> could i get a hand with opening a new page in a popup window...

check this article --

    Links & JavaScript Living Together in Harmony
    http://evolt.org/links_javascript

the piece of code you are looking for is

  <a
   href="somedoc.html"
   target="newWindow"
   onclick="window.open(this.href, this.target); return false"
  >click here</a>

except instead of "click here" you'd have <img src=... />

to size the window to fit your image, add a third parameter called
windowFeatures, defined in

Table 1.4 Optional features to specify for a new window
http://devedge.netscape.com/library/manuals/2000/javascript/1.3/reference/window.html#1202731


> ... and clicking an image should cause a new window to
> open with a template page that i have created.

so each thumbnail link might say --

  <a
   href="template.html?img=..." ...

and the template page displays the image for the name passed in the url

> is this a reasonable way of opening a new image in a  window?

soiteny

assuming you link harmoniously

;o)

-- 
* * Please support the community that supports you.  * *
http://evolt.org/help_support_evolt/

Evolt.org conference in London, July 25-27 2003.  Register today at http://evolt.org.uk

For unsubscribe and other options, including the Tip Harvester 
and archives of thelist go to: http://lists.evolt.org 
Workers of the Web, evolt ! 


**********************************************************************
This electronic email and any files transmitted with it are intended 
solely for the use of the individual or entity to whom they are addressed. 

The views expressed in this message are those of the individual 
sender and may not necessarily reflect the views of the Christchurch
City Council.

If you are not the correct recipient of this email please advise the
sender and delete.

Christchurch City Council
http://www.ccc.govt.nz
**********************************************************************



More information about the thelist mailing list