JavaScript Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
User Name:
Password:
Remember me
 
Go Back   Dev Articles Community ForumsProgrammingJavaScript Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Display Modes
 
Unread Dev Articles Community Forums Sponsor:
Stay one step ahead of the competition. Evaluate and give feedback on some of the hottest web development tools on the market today. Make your opinion heard! Click Here
  #1  
Old January 5th, 2004, 02:25 PM
NewTune NewTune is offline
Junior Member
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Dec 2003
Posts: 6 NewTune User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Add HTML Tags to a form

Hey guys, I want to create a form with buttons that when u click them they add <b>*bold text*</b> to the form
I tried some stuff, but it didn't work..

like;

PHP Code:
<script type="text/javascript"
function 
getStyle;
var 
News document.myform.Style
if( 
'bold' == when )

toNews.value b
}
</script> 


en for the for button;

PHP Code:
<input type="button" value="Bold" onclick="getStyle( 'bold' );" /> 


But that didn't work
So please help me out

GrtZ

Reply With Quote
  #2  
Old January 5th, 2004, 03:41 PM
dhouston's Avatar
dhouston dhouston is offline
Contributing User
Dev Articles Beginner (1000 - 1499 posts)
 
Join Date: May 2003
Location: Tennessee
Posts: 1,355 dhouston User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 7
Send a message via ICQ to dhouston
You've got all kinds of weird stuff going on there. Functions should have parentheses and brackets rather than semi-colons. Additionally, you've got no way of specifying which pieces of text within the form to bold. Maybe if you'd send a better description of what you want to happen (maybe a link to the page containing the form), somebody can provide some help.

Reply With Quote
  #3  
Old January 5th, 2004, 04:58 PM
NewTune NewTune is offline
Junior Member
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Dec 2003
Posts: 6 NewTune User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Yeah sorry about that I was messed up with a different project :/
I will figure this out later

Thanks for your respons

Grtz

Reply With Quote
Reply

Viewing: Dev Articles Community ForumsProgrammingJavaScript Development > Add HTML Tags to a form


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 4 hosted by Hostway