Search the archives!
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Javascript] Quick question on passing reference to url
- From: nvp at noopy.org (Nathan V. Patwardhan)
- Subject: [Javascript] Quick question on passing reference to url
- Date: Wed Nov 29 12:38:11 2006
On Thu, Nov 30, 2006 at 05:30:41AM +1100, David Chance wrote:
:
: What I'm looking to do is basically just have an image
: displayed, then when clicking on it a new window opens that I
: can size and include a close link in it.
[snip]
: generator.document.write('<A HREF="javascript:ImageWindow(ImgUrl)"><IMG SRC='ImgUrl' width="300">');
Maybe what you'd meant was (untested):
generator.document.write('<A HREF="javascript:ImageWindow(ImgUrl)"><IMG SRC="' + ImgUrl + '" width="300">');
Make sure that ImgUrl is in the scope that you'd expect, too.
--
Nathan V. Patwardhan
nvp@xxxxxxxxx
- Follow-Ups:
- [Javascript] Quick question on passing reference to url
- From: Aaron Bassett
- [Javascript] Quick question on passing reference to url
- References:
- [Javascript] Quick question on passing reference to url
- From: Flávio Gomes
- [Javascript] Quick question on passing reference to url
- From: David Chance
- [Javascript] Quick question on passing reference to url
- Prev by Date: [Javascript] Quick question on passing reference to url
- Next by Date: [Javascript] dynamically hide an element
- Previous by thread: [Javascript] Quick question on passing reference to url
- Next by thread: [Javascript] Quick question on passing reference to url
- Index(es):