OZONE Asylum
Forums
Stupid Basic HTML
Generate html tag when hit enter question
This page's ID:
9703
Search
QuickChanges
Forums
FAQ
Archives
Register
Edit Post
Who can edit a post?
The poster and administrators may edit a post. The poster can only edit it for a short while after the initial post.
Your User Name:
Your Password:
Login Options:
Remember Me On This Computer
Your Text:
Insert Slimies »
Insert UBB Code »
Close
Last Tag
|
All Tags
UBB Help
Hiroki. Do I understand you correctly here: You have a textfield in a form, you type into it and press enter to change the line, then you press "save" and it goes to an ASP script that does something and then you see the result. Correct? In that case you don't do this with javascript or html. Do it in the ASP code by checking for linefeeds (vbCr, vbCrLf, Chr(13), Chr(10) ) and convert them to <br> using 'Replace(inputString,vbCr, "<br>")' if you want to the linefeeds to show up as <br> in the HTML. If you want to insert the HTML before you reload the page, you need to do it in JavaScript. I did this little semi-wysiwyg a bunch of years back. [url=http://www.dmsproject.com/test/wysiwygger/DmSWysiwyg.html]http://www.dmsproject.com/test/wysiwygger/DmSWysiwyg.html[/url] (GRANSKA means preview). /Dan /Dan [url=http://www.dmsproject.com/] [img]http://www.dmsproject.com/gif/newSiggie.gif[/img] [/url] [url=http://faq.ozoneasylum.com/FaqWiki/shownode.php?sortby=rating&id=260]{cell 260}[/url] -{ a vibration is a movement that doesn't know which way to go }- [This message has been edited by DmS (edited 11-30-2003).]
Loading...
Options:
Enable Slimies
Enable Linkwords
« Backwards
—
Onwards »