Old 11-17-2005   #1 (permalink)
Invicible Snake
 
ParaSnake's Avatar
 
Join Date: Sep 2004
Location: Ho Chi Minh City,Vietnam
Posts: 668

Send a message via MSN to ParaSnake Send a message via Yahoo to ParaSnake
Angry Vbulletin WYSIWYG editor question :(

Hello,i hope bioRUST have members that known about VBB enoug to helps me out of this problem.

You guys may know the WYSIWYG editor from VBB,i use it in a simple form , but when i click submit,i notice it goes wrong,VBB`s editor use DIV tag instead of textarea to be HTML area ><

If its still unclear,heres the code for Internet Explorer : [ Check the file attached ]


See the "explorer text area" section(use find to find it pls) ?
I`ve put a tes on it :

if($_POST['submit_a']) {
print_r($_POST)."<BR>";
}

to output $_POST value,but i got nothing from the HTML area

pls help me........
Attached Files
File Type: zip editor.zip (3.7 KB, 133 views)
__________________

Last edited by ParaSnake; 11-18-2005 at 01:35 AM.
ParaSnake is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Old 11-17-2005   #2 (permalink)
Sheep Worrier
 
Man1c M0g's Avatar
 
Join Date: Sep 2003
Location: Portsmouth, UK.
Posts: 4,073
Blog Entries: 14

Send a message via ICQ to Man1c M0g Send a message via MSN to Man1c M0g Send a message via Skype™ to Man1c M0g
OMG! This is seriously complex and buggers up the CODE tags. Any chance you can just pop it in a HTML/PHP file as an attachment?
__________________
Man1c M0g is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Old 11-18-2005   #3 (permalink)
Invicible Snake
 
ParaSnake's Avatar
 
Join Date: Sep 2004
Location: Ho Chi Minh City,Vietnam
Posts: 668

Send a message via MSN to ParaSnake Send a message via Yahoo to ParaSnake
Yup,both the [php] and the [code] tag contains bug,i though it was my codes

I`ve attached the file,and if someone need the javascript included in the file to helps me solve this problem,just notice and i will upload them later
__________________
ParaSnake is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Old 11-22-2005   #4 (permalink)
Invicible Snake
 
ParaSnake's Avatar
 
Join Date: Sep 2004
Location: Ho Chi Minh City,Vietnam
Posts: 668

Send a message via MSN to ParaSnake Send a message via Yahoo to ParaSnake
To simplified the question,pls help me :
How can i get data from a Div tag like this :
<DIV CONTENTEDITABLE STYLE="height: 40%; width: 60%;" id="a"></DIV>

Example :
PHP Code:

<?
if($_POST[submit]) {
        echo 
$_POST[a];exit;
}
?>
<form method=post action=''>
<DIV CONTENTEDITABLE STYLE="height: 40%; width: 60%;" id="a">Heading 1 </DIV>
<input type=submit name=submit value="go">
</form>
when i cliced "Go",nothing happened,pls help me
__________________
ParaSnake is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Old 11-23-2005   #5 (permalink)
code anyone?
 
scrowler's Avatar
 
Join Date: Feb 2004
Location: New Zealand
Posts: 590

Send a message via MSN to scrowler Send a message via Skype™ to scrowler
action="" maybe?

is <div contenteditable> how the new vbulletin editor works? i've been wondering. that's pretty awesome!
__________________
BioRUST Tutorials - the birthplace
scrowler is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Old 11-23-2005   #6 (permalink)
Invicible Snake
 
ParaSnake's Avatar
 
Join Date: Sep 2004
Location: Ho Chi Minh City,Vietnam
Posts: 668

Send a message via MSN to ParaSnake Send a message via Yahoo to ParaSnake
action="" is the same as action='' for sure

<div contenteditable> <-- this is work,you could take a try by viewing bioRUST source,even tinyMCE and FCKeditor work with DIV.

Somebody has told me to use innerHTML,hope this work....
__________________
ParaSnake is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Old 11-23-2005   #7 (permalink)
Local Biorust Beast
 
Order's Avatar
 
Join Date: Oct 2003
Location: San Diego, CA, USA
Posts: 2,253

Send a message via AIM to Order Send a message via MSN to Order Send a message via Yahoo to Order
Div will not send as a form element, it is not a form tag at all. You will have to use javascript to get what is inside the div tag and save it to a form element..

Code:
function getDivContent()
{
   var divObj = document.getElement("a");
   alert("divObj.innerHTML");
}
Then

Code:
<input type="button" value="What is in Div" onClick="getDivContent();">
Messy, but usable. I cannot guarantee the code, but it should work, maybe a few small javascript errors, but simple enough to get how to do it, and read up on using DOM in javascript.
__________________
Order is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Old 11-24-2005   #8 (permalink)
Invicible Snake
 
ParaSnake's Avatar
 
Join Date: Sep 2004
Location: Ho Chi Minh City,Vietnam
Posts: 668

Send a message via MSN to ParaSnake Send a message via Yahoo to ParaSnake
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 :P

Ah,while searching for answer,i found this ,very interesting :
http://www.phpbuilder.com/columns/kassemi20050606.php3
__________________
ParaSnake is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Closed Thread

Thread Tools
Display Modes

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
FCKeditor WYSIWYG scrowler General Discussions 3 04-21-2005 12:36 AM
VBulletin Skins Renegade General Discussions 6 08-26-2004 08:26 PM
Vbulletin Skin Shortcut? Man1c M0g BioRUST Specific Threads 6 10-26-2003 01:28 AM


All times are GMT +1. The time now is 09:31 AM.
Content Relevant URLs by vBSEO 3.2.0

Design & Content © BioRUST 2008 :: PRIVACY STATEMENT :: LEGAL INFORMATION :: ADVERTISING MEDIA KIT