The UK Home Automation Archive

Archive Home
Group Home
Search Archive


Advanced Search

The UKHA-ARCHIVE IS CEASING OPERATIONS 31 DEC 2024


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

Re: ot:Javascript question



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

I'll i've added is a single quote before the double quote and after.
----- Original Message -----
From: "James,Daniel" <Daniel.James@xxxxxxx>
To: "Ukha_D (E-mail)" <ukha_d@xxxxxxx>
Sent: Wednesday, January 22, 2003 2:55 PM
Subject: [ukha_d] ot:Javascript question


> Hi all
>
> I'm trying to pass a url to a javascript function, to allow a popup window
> from an ASP database driven asp page.
>
> The Javascript I have is:
>
> <script>
>
> //Popup Window Script
> function openpopup(url1){
> var popurl=url1
>
winpops=window.open(popurl,"","width=600,height=400,scrollbars,resizable,")
> }
>
> </script>
>
> And in the ASP I have the code:
> url = "http:\\www.automatedhome.co.uk"
> ' I had to get a HA link in here somewhere :-)
>
> 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?
>
> Cheers
>
> Daniel
>
>
>
>
>
> _____________________________________________________________________
> This e-mail has been scanned for viruses by the WorldCom Internet Managed
Scanning Service - powered by MessageLabs. For further information visit
http://www.worldcom.com
>
> [Non-text portions of this message have been removed]
>
>
> 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 http://docs.yahoo.com/info/terms/
>
>



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.