close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

No default text in HTML editor instance on Update Page

Thread began 3/26/2013 10:32 am by Andrew Read | Last modified 3/26/2013 12:21 pm by Andrew Read | 471 views | 2 replies |

Andrew Read

No default text in HTML editor instance on Update Page

:: Win7 x64, DW CS5.5, WADB 1.1.3 ::

I have a HTML editor instance created by WADB on my update form and it contains no default data. There is data in the database, but I don't see it on the page. Any ideas?

<div class="lineGroup"> <label for="activ_pgContent" class="sublabel" > Page Body:<span class="requiredIndicator">&nbsp;*</span></label>
<div class="errorGroup">
<span><?php
// The initial value to be displayed in the editor.
$CKEditor_initialValue = "".((isset($_GET["invalid"])?ValidatedField("formUpd","table_pgContent",false):"".$row_WADArecordset["table_pgContent"]."")) ."";
$CKEditor = new CKEditor();
$CKEditor->basePath = "../../webassist/ckeditor/";
$CKEditor_config = array();
$CKEditor_config["wa_preset_name"] = "Full";
$CKEditor_config["wa_preset_file"] = "Full.xml";
$CKEditor_config["width"] = "514px";
$CKEditor_config["height"] = "350px";
$CKEditor_config["skin"] = "kama";
$CKEditor_config["dialog_startupFocusTab"] = false;
$CKEditor_config["fullPage"] = false;
$CKEditor_config["tabSpaces"] = 4;
$CKEditor_config["toolbar"] = array(
array( 'Cut','Copy','Paste','SpellCheck'),
array( 'Undo','Redo'),
array( 'Bold','Italic','Underline','Subscript','Superscript'),
array( 'NumberedList','BulletedList','-','Outdent','Indent'),
array( 'JustifyLeft','JustifyCenter','JustifyRight','JustifyBlock'),
array( 'Link','Unlink','Anchor'),
array( 'Table','Rule','SpecialChar'),
array( 'FontName','FontSize'),
array( 'TextColor','BGColor'));
$CKEditor_config["contentsLangDirection"] = "ltr";
$CKEditor_config["entities"] = false;
$CKEditor_config["pasteFromWordRemoveFontStyles"] = false;
$CKEditor_config["pasteFromWordRemoveStyles"] = false;
$CKEditor->editor("activ_pgContent", $CKEditor_initialValue, $CKEditor_config);
?>
<?php
if (ValidatedField('formUpd','formUpd')) {
if ((strpos((",".ValidatedField("formUpd","formUpd").","), "," . "7" . ",") !== false || "7" == "")) {
if (!(false)) {
?><span class="serverInvalidState" id="Update_group_ServerError_8">Please enter a value.</span><?php //WAFV_Conditional formUpd.php formUpd(7:)
}
}
}?>
</span>
</div>
Sign in to reply to this post

Jason ByrnesWebAssist

the code looks correct, I'll need to see it on the server.

I have created a support ticket so we can look into this issue further.

To view and edit your support ticket, please log into your support history:
supporthistory.php

If anyone else is experiencing this same issue, please append to this thread.

Sign in to reply to this post

Andrew Read

Just reporting back..

This was an encoding issue DB vs web page.

Solved by adding a charset to the database connections file.

php:
<?php
# FileName="Connection_php_mysql.htm"
# Type="MYSQL"
# HTTP="true"
$hostname_connection_name "localhost";
$database_connection_name"DatabaseNAME";
$username_connection_name"UserNAME";
$password_connection_name"Password";
$connection_namemysql_pconnect($hostname_wtse_adm$username_connection_name$password_connection_name) or trigger_error(mysql_error(),E_USER_ERROR);
?>



Simply add this with your charset to the end:

php:
mysql_set_charset('utf8',$connection_name);



So it will look like this:

php:
<?php
# FileName="Connection_php_mysql.htm"
# Type="MYSQL"
# HTTP="true"
$hostname_connection_name "localhost";
$database_connection_name"DatabaseNAME";
$username_connection_name"UserNAME";
$password_connection_name"Password";
$connection_name=  mysql_pconnect($hostname_wtse_adm$username_connection_name,  $password_connection_name) or trigger_error(mysql_error(),E_USER_ERROR);
mysql_set_charset('utf8',$connection_name); 
?>



Or you can use a DA Dynamic Connection which allows you to set the charset.

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