Old 11-17-2005   #1 (permalink)
ParaSnake
Guest
 

Posts: n/a

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, 175 views)

Last edited by ParaSnake; 11-18-2005 at 02:35 AM.
 
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Old 11-17-2005   #2 (permalink)
Tech Support
 
Man1c M0g's Avatar
 
Tournaments Won: 1

Join Date: Sep 2003
Location: Portsmouth, UK.
Posts: 4,202
Blog Entries: 21
Images: 3

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)
ParaSnake
Guest
 

Posts: n/a

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
 
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Old 11-22-2005   #4 (permalink)
ParaSnake
Guest
 

Posts: n/a

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
 
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Old 11-23-2005   #5 (permalink)
Registered User
 
scrowler's Avatar
 
Snake Champion!
Join Date: Feb 2004
Location: New Zealand
Posts: 590
Images: 7

Send a message via MSN 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)
ParaSnake
Guest
 

Posts: n/a

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....
 
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Old 11-24-2005   #7 (permalink)
Registered User
 
Order's Avatar
 

Join Date: Oct 2003
Location: San Diego, CA, USA
Posts: 2,254
Images: 2

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)
ParaSnake
Guest
 

Posts: n/a

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
 
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


Similar Threads
Thread Thread Starter Forum Replies Last Post
MP3 Editor Needed notjustgraphics Flash & Dynamic Media 9 12-13-2008 05:40 PM
Vbulletin v3.7 Beta 2 Man1c M0g BioRUST Specific Threads 9 01-07-2008 11:17 PM
seamless texture editor Snubs Adobe Photoshop 2 06-24-2007 05:51 PM
Free Alternative To DreamWeaver! HTML Web Editor notjustgraphics HTML / PHP / ASP / JS 10 05-13-2007 12:02 AM
FCKeditor WYSIWYG scrowler General Discussions 3 04-21-2005 12:36 AM


All times are GMT +1. The time now is 03:34 AM.

Powered by vBulletin Version 3.8.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.3.2

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