Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

getting multiple lines in anchor title 1

Status
Not open for further replies.

JackD4ME

Programmer
Jun 4, 2002
228
US
I am trying to get 3 lines into an anchor title but cannot get html to recognize the <br> when it is within the script tags. The output is this when hovering over the link:

your name<br>your address

Here is the code I have been trying:

title="<%=nnRst("Name 1") & "<br>" & nnRst("Address")%>"

Does anyone know how to get the multiple lines in an anchor title?

Thanks,
Jack :D
 
try this:

title= <%=nnRst("Name1")%>&"<br>"&<%=nnRst("Address")%>

-DNG
 
bad things happened. The address became the display and the name only became the title.
 
Did you try putting the quotes around?

title= "<%=nnRst("Name1")%>&"<br>"&<%=nnRst("Address")%>"

-DNG
 
yes, when the "<br>" is within the script tags it reads it as a string. This works with regular html to get a line break, but it is not working within the anchor tag. It is driving me nuts.
 
Try this:

Response.Write "nnRst("Name1") &"<br>"&"nnRst("Address")"

-DNG
 
Tweak it a little bit if needed...but i guess it should work...

-DNG
 
No luck. I have even tried running the params into a var and it still printed the same. I am thinking that this is not possible.
 
Sometimes I find it helpful to make what I want in plain HTML first. Once I get the HTML bugs worked out it is a lot easier to figure out the ASP code required to generate the desired HTML.
 
This worked for me:

title= "<%=nnRst("Name1") & Chr(13) & Chr(10) & nnRst("Address")%>"

Lee
 
Thanks Lee, it works great in IE. Can I throw another twist at ya? Because of security issues we have written the program to be functional with Firefox. I will probibly have to query them but the result I am getting is "name||adress" with FF. Any idea?

Jack :D

PS. Thank you all for the help.
 
Never mind. I have heard back from Mozilla and this is a bug.

 
You could try writing it on 2 lines, too:

title= "<%=nnRst("Name1")%>
<%=nnRst("Address")%>"

Lee
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top