Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

htmlbox JQuery based wysiwyg editor help

Posted on 2011-03-16
4
Medium Priority
?
1,124 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 2000 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

Ask an Anonymous Question!

Don't feel intimidated by what you don't know. Ask your question anonymously. It's easy! Learn more and upgrade.

Question has a verified solution.

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

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.
Learn the basics of lists in Python. Lists, as their name suggests, are a means for ordering and storing values. : Lists are declared using brackets; for example: t = [1, 2, 3]: Lists may contain a mix of data types; for example: t = ['string', 1, T…
Learn the basics of modules and packages in Python. Every Python file is a module, ending in the suffix: .py: Modules are a collection of functions and variables.: Packages are a collection of modules.: Module functions and variables are accessed us…
Suggested Courses

783 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