vBulletin Modifications

grabble textarea content js function

Welcome to vBHackers.com! - vBHackers Updates:

Go Back   vBulletin Modifications > General vBulletin Section > General vBulletin Support

Reply
 
LinkBack Thread Tools
Old 10-12-2006, 12:51 PM   #1
vB Newbie
Join Date: Feb 2005
testebr is on a distinguished road

Unhappy grabble textarea content js function

Hi people,

I am try make an option to preview post using ajax and work fine for the time being. But I have a little problem..

I use in my javascript for get textarea the content:

You must first be a registered member to view any code.
And send to ajax function.

If the user click on switchmode button and use the wysiwyg mode and change the content then submit, the var form_message dont get this change.. still with old content from no-wysiwyg editor.

How to get the change correctly in all editor modes?

My english is poor, but you guys understand my problem? If no, I can try explain more.

Thank you




Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Sponsored Links
Old 10-13-2006, 07:38 AM   #2
vB Newbie
Join Date: Feb 2005
testebr is on a distinguished road

Default

Ok.. I will try simplify the question.

How to get the editor content by javascript var?

Example <a href="#" onclick="alert(VAR_TO_EDITOR_CONTENT)">show editor content in alert test</a>

Understand? I need know it to use in my function.

Thanks




Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 10-14-2006, 11:32 AM   #3
vB Newbie
Join Date: Feb 2005
testebr is on a distinguished road

Default

Any expert vb coder in this board?




Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 10-15-2006, 12:02 PM   #4
vB Newbie
Join Date: Feb 2005
testebr is on a distinguished road

Default

This example:

You must first be a registered member to view any code.
Work fine for no wysiwyg mode.

But, I need to wysiwyg mode.

How to?




Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 10-15-2006, 12:29 PM   #5
vB Newbie
Join Date: Feb 2005
testebr is on a distinguished road

Default

Another try:

You must first be a registered member to view any code.
Same problem, work only with no wysiwyg mode.




Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 10-15-2006, 01:22 PM   #6
vB Newbie
Join Date: Feb 2005
testebr is on a distinguished road

Default

More one try :/

You must first be a registered member to view any code.
Same problem.

I need much it.




Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 10-15-2006, 01:45 PM   #7
vB Newbie
Join Date: Feb 2005
testebr is on a distinguished road

Default

Well guys I find a interesting page:

http://forums.biorust.com/html-php-a...-question.html

Quote:
Thx Order,its my fault that i havent read through the given javascript in VBB editor,they have a function that do exactly what did you do above....sorry to annoy you guys
That function it is?




Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 10-15-2006, 04:04 PM   #8
vBulletin Guru
Nick R's Avatar
Join Date: May 2006
Real Name: Nick
Location: Cyberspace, UK
Nick R is on a distinguished road

Default

Did you have any php/ajax coding experience?




Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 10-15-2006, 04:38 PM   #9
vB Newbie
Join Date: Feb 2005
testebr is on a distinguished road

Default

yes!

My page show the editor correctly, but I dont know how to get the editor content to insert in ajax function.

Well, wait.. see my latest code:

You must first be a registered member to view any code.
Work fine! But, wysiwyg editor it is html content, right? Then my preview show anything like this:

Quote:
<P>my test message, <STRONG>bold</STRONG>, <EM>italic</EM> and <U>underline</U>?</P>
How to convert to bbcode before send the form? I believe that vulletin have any default function to this action.

Thanks

Last edited by testebr; 10-15-2006 at 04:41 PM.




Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 10-20-2006, 05:08 PM   #10
vB Newbie
Join Date: Feb 2005
testebr is on a distinguished road

Default

Hello anyone can help me?

I need the function to parse code before sent




Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
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
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Are you adding content daily? Rex Growing Your vB Forum 3 06-05-2006 02:33 PM
I have a few people posting but I need fresher content... Rex Growing Your vB Forum 3 05-24-2006 11:54 AM
Duplicate Content and vBulletin Forums joeychgo General vBulletin Discussion 2 03-31-2006 04:35 PM
creating Function in SA fxppack MaTtIaSkE General vBulletin Support 5 08-28-2005 07:35 PM


All times are GMT -3. The time now is 07:41 PM.


SEO by vBSEO 3.2.0 ©2008, Crawlability, Inc. (Patent Pending)