• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Avoid space truncating , present in between words in a hyperlink

 
Ranch Hand
Posts: 66
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I want to show the wording "UNITED SEP      030 WORD" as a hyperlink. However , when I do that like this -
<a href="javascript:showSymbolMenu('4')>UNITED SEP      030 WORD</a>
, browser displays the value "UNITED SEP 030 WORD" with hyperlink. The spaces present in between "SEP" & "030" are truncated.

There are million of records so I can not substitute empty spaces by &nbsp;.
How should I stop browser from truncating the spaces?
[ November 02, 2008: Message edited by: prasad kulkarni ]
 
author
Posts: 15385
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Well you could a string replace when you are outputting the records to the page. Probably would be a good solution.

The other thing you can try is



eric
 
prasad kulkarni
Ranch Hand
Posts: 66
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks.
I used the solution of <pre> . That worked.
 
reply
    Bookmark Topic Watch Topic
  • New Topic