RSS Forums RSS
Please support our JavaScript / DHTML / AJAX advertiser: Lunarpages Web Hosting
Views: 1394 | Replies: 1
Reply
Join Date: Apr 2007
Posts: 1
Reputation: diresaint is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
diresaint diresaint is offline Offline
Newbie Poster

Help textarea problem with javascript

  #1  
Apr 28th, 2007
just a small thing i'd like this little bit of code to not need some selected text to function... in other words id like to be able to click on the insert button i have and have it just apear inline with where the cursor is in the text area it does a great job if i select a letter or group of letters but id like it not to need letters selected... does this make any sense?

function
xxhrxxThis(from) { 
strSelection = document.selection.createRange().text 
if (strSelection == "") { 
return false; 
} 
else document.selection.createRange().text = "<hr width=100% />" + strSelection 
+ "" 
return;
}

http://www.greatcakes2go.com/new_3.html

example page for what im tring to do...

thanks in advance for any help im so confused
AddThis Social Bookmark Button
Reply With Quote  
Join Date: Jan 2007
Posts: 14
Reputation: bosko is an unknown quantity at this point 
Rep Power: 2
Solved Threads: 0
bosko bosko is offline Offline
Newbie Poster

Re: textarea problem with javascript

  #2  
Apr 28th, 2007
Your code not working in Firefox. Maybe you could check this link:
http://www.massless.org/mozedit/

where you can find how to make it working in Firefox too.
Reply With Quote  
Reply

Only community members can participate in forum threads. You must register or log in to contribute.

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 

Thread Tools Display Modes
Forums | Blogs | Tutorials | Code Snippets | Whitepapers | RSS Feeds | Advertising
All times are GMT -4. The time now is 12:24 am.
Newsletter Archive - Sitemap - Privacy Statement - Acceptable Use Policy - Contact Us
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC