|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
Stop making mediocre tutorials.The best tutorials are video! Camtasia Studio makes it easy to create engaging, buzz-building screen videos at any size, in any popular format. Download the free trial!
|
|
#1
|
|||
|
|||
|
rendering underline tags
I am writing some code and I want some words in a string to be underlined and others not to be.
In WMLScript I have created some a variable with a string in it and I want the browser to display it but without rendering the <u>...</u> tags. I was trying something like this: var tempStr = "<u>h</u>"; but it obviously doesn't work! Is there anyway I can do this in WML? Thanks for your help, Wallace |
|
#2
|
|||
|
|||
|
I think you have to use a server-side scripting language instead of WMLScript.
|
|
#3
|
||||
|
||||
|
wml is just a static language, you will need some kind of server side stuff like php or asp
If I understand this right, try this snippet of PHP to replace xxx with <u>xxx</u> from the variable $string $string= ereg_replace("xxx","<u>xxx</u>",$string); To remove the tags: $string= ereg_replace("<u>","",$string); $string= ereg_replace("</u>","",$string); If this is ot it's becuase I'm tired, apologies, spent hours on a train today to get back into work and my mind is fried.....
__________________
Andy Moore << oh no it's got a blog..... Word Press WAP Plugin with Ad Mob Advertising revenue PHP developer deploying ringtones, mp3 downloads and realtones I'm a geek who's obsessed with stats and gadgets |
![]() |
| Viewing: Dev Shed Forums > Programming Languages - More > WAP Programming > rendering underline tags |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|