Solved

htmlbox JQuery based wysiwyg editor help

Posted on 2011-03-16
4
1,114 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
  • 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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
troubleshoot a python script 8 70
Change a button after e-mail 4 19
Echo'd values in dropdowns 6 27
Why can I INSERT a DATETIME record into mysql but I can't UPDATE it? 15 32
Nothing in an HTTP request can be trusted, including HTTP headers and form data.  A form token is a tool that can be used to guard against request forgeries (CSRF).  This article shows an improved approach to form tokens, making it more difficult to…
A quick Powershell script I wrote to find old program installations and check versions of a specific file across the network.
The viewer will learn how to create and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…
In a recent question (https://www.experts-exchange.com/questions/29004105/Run-AutoHotkey-script-directly-from-Notepad.html) here at Experts Exchange, a member asked how to run an AutoHotkey script (.AHK) directly from Notepad++ (aka NPP). This video…

685 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