Solved

htmlbox JQuery based wysiwyg editor help

Posted on 2011-03-16
4
1,115 Views
Last Modified: 2012-05-11
ok so i have this html box wysiwyg editor that runs of of JQuery  

i am trying to add a button to get the content that the user has entered into it so i can update a table
you will see i have attempted to add a button :S but unsure. i have read the manual for it but still confused

 htmlbox.min.js jquery-1.3.2.min.js
<script language="Javascript" src="jquery-1.3.2.min.js" type="text/javascript"></script>
    
<script language="Javascript" src="htmlbox.min.js" type="text/javascript"></script>





<script language="Javascript" type="text/javascript">
var hb = $("#hb").htmlbox({
    buttons:[
	     ["separator_dots","bold","italic","underline"]
		 
		
	],
	icons:"default",
	skin:"green"
});
<button onclick="hb.get('save.php')">Save</button>
</script>

Open in new window

0
Comment
Question by:helpchrisplz
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
4 Comments
 
LVL 15

Expert Comment

by:dirknibleck
ID: 35152962
I'm not sure what you're trying to do with your code here.

I would suggest creating a form on the page with a textarea. Run htmlbox against the textarea. Ie...
$("textarea").htmlbox({});

Open in new window


Then when the form is submitted, htmlbox will already have placed the html from the richtext editor in the textarea and it will be submitted along with any other form data.

0
 
LVL 1

Author Comment

by:helpchrisplz
ID: 35153644
<textarea id='hb'></textarea>

i 4 got this when i was copy and pasting

is my button working?
0
 
LVL 15

Accepted Solution

by:
dirknibleck earned 500 total points
ID: 35159093
It looks like what you are doing should be working. Can you tell if when you click on the button it is issuing an AJAX call? If you're using Firebug in Firefox, you should see a GET statement in the console after you click the button.
0
 
LVL 1

Author Closing Comment

by:helpchrisplz
ID: 35228005
nice i have fire bug now
0

Featured Post

Business Impact of IT Communications

What are the business impacts of how well businesses communicate during an IT incident? Targeting, speed, and transparency all matter. Find out more in this infographic.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Developers of all skill levels should learn to use current best practices when developing websites. However many developers, new and old, fall into the trap of using deprecated features because this is what so many tutorials and books tell them to u…
3 proven steps to speed up Magento powered sites. The article focus is on optimizing time to first byte (TTFB), full page caching and configuring server for optimal performance.
In this fourth video of the Xpdf series, we discuss and demonstrate the PDFinfo utility, which retrieves the contents of a PDF's Info Dictionary, as well as some other information, including the page count. We show how to isolate the page count in a…
In this fifth video of the Xpdf series, we discuss and demonstrate the PDFdetach utility, which is able to list and, more importantly, extract attachments that are embedded in PDF files. It does this via a command line interface, making it suitable …

752 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question