Register Members List Search Today's Posts Mark Forums Read

Reply
 
Thread Tools
  #1  
Old 24 Mar 2014, 20:13
mathforum mathforum is offline
 
Join Date: Nov 2005
Reference textbox in newthread/newreply

I am trying to use javascript to render something within the newthread or newreply textbook if it fits certain conditions. The latter part is already coded and isn't the problem (not yet at least). What I need to do is be able to give an element for the javascript function to check and then act on. How can I reference all text within these textboxes?

If that's too vague, what I need to do is label the textarea with this line:


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

That id and update loop are both needed for the javascript to input text to work with. Any ideas?
Reply With Quote
  #2  
Old 24 Mar 2014, 20:25
kh99 kh99 is offline
 
Join Date: Aug 2009
Real name: Kevin
Are you talking about the editor text area?
Reply With Quote
  #3  
Old 24 Mar 2014, 20:40
mathforum mathforum is offline
 
Join Date: Nov 2005
Yep, exactly.
Reply With Quote
  #4  
Old 24 Mar 2014, 21:03
kh99 kh99 is offline
 
Join Date: Aug 2009
Real name: Kevin
Well, the text area is created by the ckeditor that's integrated with vb4, so you could probably do what you want using a ckeditor plugin. I don't know enough to tell you how to do it, but the web site is here: http://ckeditor.com/. I don't know if you could just add your own onChange listener.

Also, I think there's a normal text area that's used if the browser doesn't support the ckeditor, and that's in a template somewhere.
Reply With Quote
  #5  
Old 24 Mar 2014, 22:02
mathforum mathforum is offline
 
Join Date: Nov 2005
Thank you. I've decided to settle for a slightly uglier layout and just make a new textbox below that one for testing what I want. It's working but it needs a makeover.

Reply With Quote
Reply



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

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


New To Site? Need Help?

All times are GMT. The time now is 14:20.

Layout Options | Width: Wide Color: