asp classic - Put TAB in selectbox's option list -


how can put tab inside itens in selectbox's option itens?

i have:

<select>     <option>tese - teste de descrição</option>     <option>mais um - de desc.</option>     <option>tabulação - item de tabulação com info</option> </select> 

i wanna:

<select>     <option>tese        teste de descrição</option>     <option>mais um     de desc.</option>     <option>tabulação   item de tabulação com info</option> </select> 

update: ok, vbtab or chr(9) it:

<select>     <option>tese<% response.write chr(9) & chr(9) & chr(9) %>teste de descrição</option>     <option>mais um<% response.write chr(9) %>de desc.</option>     <option>tabulação<% response.write chr(9) & chr(9) %>item de tabulação com info</option> </select> 

but see in source code. browser isn't rendering it.

unfortunately in html not specified tab character.

in order achieve result looking can generate options in selection box padding non breaking spaces (&nbsp;) string adding vbtab. can try this:

<%     function rpad (svalue, spadchar, ilength)       dim result=""       i=0 i=ilength - len(svalue)           result = result & spadchar       next       rpad=result     end function %>  <select>     <option><% response.write rpad("tese","&nbsp;",10)  %>teste de descriзгo</option>     <option><% response.write rpad("mais um","&nbsp;",10)  %>de desc.</option>     <option><% response.write rpad("tabulaзгo","&nbsp;",10)  %>item de tabulaзгo com  info</option> </select> 

sorry can't try if code works maybe have thweak little. hope sense of it.


Comments

Popular posts from this blog

linux - xterm copying to CLIPBOARD using copy-selection causes automatic updating of CLIPBOARD upon mouse selection -

c++ - qgraphicsview horizontal scrolling always has a vertical delta -