Wrox Home  
Search P2P Archive for: Go

  Return to Index  

asp_web_howto thread: Re: Write Javascript in ASP


Message #1 by "Joe Murphy" <bacster@o...> on Thu, 3 Oct 2002 19:33:20
> Try this:

response.write ("<a href=""here.htm""
onmouseover=""return overlib('Popup with link.');""
onmouseout=""return nd();"">Popup with link</a><p>
<a onmouseover=""return overlib('Popup no link.');""
onmouseout=""return nd();"">
Popup no link</a>")

Mark.
--- Joe Murphy <bacster@o...> wrote:
> Hi Folks
> 
> I have been trying and trying and I can't write this
> code inside ASP 
> delimiters.  Can someone show me the secret to
> getting javascript working 
> inside ASP.  I have the js file loaded in the head
> of the document.
> 
> <a href="here.htm" onmouseover="return
> overlib('Popup with link.');" 
> onmouseout="return nd();">Popup with link</a><p>
> <a onmouseover="return overlib('Popup no link.');"
> onmouseout="return nd
> ();">Popup no link</a>
> 
> Thanks
> 
> Joe
> 
> ---
> 
> Improve your web design skills with these new books
> from Glasshaus.
> 
> Usable Web Menus
>
http://www.amazon.com/exec/obidos/ASIN/1904151027/ref=nosim/theprogramme
> r-20
> Constructing Accessible Web Sites
>
http://www.amazon.com/exec/obidos/ASIN/1904151000/ref=nosim/theprogramme
> r-20
> Practical JavaScript for the Usable Web
>
http://www.amazon.com/exec/obidos/ASIN/1904151051/ref=nosim/theprogramme
> r-20


__________________________________________________
Do you Yahoo!?
New DSL Internet Access from SBC & Yahoo!
http://sbc.yahoo.com
Message #2 by "Joe Murphy" <bacster@o...> on Thu, 3 Oct 2002 19:36:33
> > Try this:

> response.write ("<a href=""here.htm""
o> nmouseover=""return overlib('Popup with link.');""
o> nmouseout=""return nd();"">Popup with link</a><p>
<> a onmouseover=""return overlib('Popup no link.');""
o> nmouseout=""return nd();"">
P> opup no link</a>")

> Mark.
-> -- Joe Murphy <bacster@o...> wrote:
>>  Hi Folks
>>  
>>  I have been trying and trying and I can't write this
>>  code inside ASP 
>>  delimiters.  Can someone show me the secret to
>>  getting javascript working 
>>  inside ASP.  I have the js file loaded in the head
>>  of the document.
>>  
>>  <a href="here.htm" onmouseover="return
>>  overlib('Popup with link.');" 
>>  onmouseout="return nd();">Popup with link</a><p>
>>  <a onmouseover="return overlib('Popup no link.');"
>>  onmouseout="return nd
>>  ();">Popup no link</a>
>>  
>>  Thanks
>>  
>>  Joe
>>  
>>  ---
>>  
>>  Improve your web design skills with these new books
>>  from Glasshaus.
>>  
>>  Usable Web Menus
>> 
h> ttp://www.amazon.com/exec/obidos/ASIN/1904151027/ref=nosim/theprogramme
>>  r-20
>>  Constructing Accessible Web Sites
>> 
h> ttp://www.amazon.com/exec/obidos/ASIN/1904151000/ref=nosim/theprogramme
>>  r-20
>>  Practical JavaScript for the Usable Web
>> 
h> ttp://www.amazon.com/exec/obidos/ASIN/1904151051/ref=nosim/theprogramme
>>  r-20
%> %email.unsub%%.

> 
_> _________________________________________________
D> o you Yahoo!?
N> ew DSL Internet Access from SBC & Yahoo!
h> ttp://sbc.yahoo.com

Thanks Mark

Works a treat.
If you get this can you answer me 1 question.  Why does double double 
quotes make this work?

  Return to Index