close ad
Help us test the new Databridge BETA with MySQLi support
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Update for HTML Editor

Thread began 2/20/2012 6:30 am by officeinfocom362633 | Last modified 2/21/2012 12:53 pm by Jason Byrnes | 635 views | 3 replies |

officeinfocom362633

Update for HTML Editor

Dear Sir

I start to use HTML Editor and I am very pleased about this extension that you offered us, it is a great tool.
My probleme is the update.

I use the same page for insert also for update.
Where do I have to change the code so I can use this extension in this way ?


PS

The original code was :

<?php
// WebAssist iRite: Rich Text Editor for Dreamweaver
$WARichTextEditor_1 = CreateRichTextEditor ("EditorArticole", "webassist/html_editor/", "100%", "200px", "Custom", "../custom/test_EditorArticole1.js", "");
?>


I modify it in this way so he will act like "Sticky Note"

<?php
$WARichTextEditor_1 = CreateRichTextEditor ("EditorArticole", "../webassist/html_editor/", "740px", "400px", "Custom", "../custom/index_EditorArticole1.js", "".((isset($_POST["EditorArticole"]))?$_POST["EditorArticole"]:"") ."");
?>


Thank You Very Much

Sign in to reply to this post

Jason ByrnesWebAssist

it's really not a good idea to insert and update on the same page.


for an update page, you need to pass a querystring variable that contains the ID of the record to update, for example:
update.php?id=22

you use this id query string variable in a recordset to look up the record in the database, then use the record binding as the initial value in the HTML Editor instance.

when the update form is submitted, it needs to pass that ID variable again, to tell the update behavior which record to update.

Sign in to reply to this post

officeinfocom362633

Thank You

Where can I find a complete tutorial about how this job can be done step with step,
where to be describe all the process from insert to update ?

Sign in to reply to this post

Jason ByrnesWebAssist

DataAssist can help you create the pages for inserting or updating, or if you want to create them manually, see the Dreamweaver Help Documentation in the Building applications visually section:

WScbb6b82af5544594822510a94ae8d65-78d3a.html

Sign in to reply to this post

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question

Content

rating

Layout

rating

Ease of use

rating

security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...