The UK Home Automation Archive

Archive Home
Group Home
Search Archive


Advanced Search

The UKHA-ARCHIVE IS CEASING OPERATIONS 31 DEC 2024

Latest message you have seen: RE: the Art of Electronics


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: ot:Javascript question



> url = "http:\\www.automatedhome.co.uk"

this should read:
url = "http://www.automatedhome.co.uk"

this should read:
> response.write ("<a href='javascript:openpopup(" & url & ")'>" & url &
> "</a>")

response.write ("<a href='javascript:openpopup(""" & url & """)'>" & url
&"</a>")

> When I click on the link on the webpage I get an error.. does anyone have
> any ideas?

The web address had the wrong kind of //'s and the response.write line needs to
emit quotes around your url.
Your code emitted:
<a href='javascript:openpopup
(http://www.automatedhome.co.uk)'>http://www.automatedhome.co.uk</a>

it needed to emit:
<a href='javascript:openpopup
("http://www.automatedhome.co.uk")'>http://www.automatedhome.co.uk</a>

HTH,

Tony.

Yahoo! Groups Sponsor
ADVERTISEMENT
HGTV Dream Home Giveaway

http://www.automatedhome.co.uk
Post message: ukha_d@xxxxxxx
Subscribe:  ukha_d-subscribe@xxxxxxx
Unsubscribe:  ukha_d-unsubscribe@xxxxxxx
List owner:  ukha_d-owner@xxxxxxx
List of UKHA Groups here - http://groups.yahoo.com/group/UKHA_Grouplists/


Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.

Home | Main Index | Thread Index

Comments to the Webmaster are always welcomed, please use this contact form . Note that as this site is a mailing list archive, the Webmaster has no control over the contents of the messages. Comments about message content should be directed to the relevant mailing list.