close ad
Databridge V2 with MySQLi support IS Now Available!
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

URL links breaking up on update

Thread began 12/09/2010 11:02 am by mrs | Last modified 12/10/2010 10:30 am by Jason Byrnes | 1069 views | 8 replies |

mrs

URL links breaking up on update

Hi, I have HTML editor working great, and it updates an existing record reasonably well apart from the fact that any links that are present from previous inserts/updates are breaking even though they worked after the initial insert.

What's happening is that the url's and the target info are getting two lots of double quotes appear around them when ever the record is called into the update page. These double quotes are then being written into the DB and as a consequence, are breaking any previously working links.

The following is happening:

www.website.com changes to ""http://www.website.com""

target="_blank" changes to ""target="_blank"""

Why is this happening?

The only way around it is to edit every link within the record to ensure the quotes are manually deleted, and my client has told me that's annoying him and the site has only been live for a few days!

Please help, thanks.

Sign in to reply to this post

neilo

I had this problem (a few times). From the advice I got, what worked for me was this:

Find the following code in your xxxxxxx_Update.php page for your HTMLEditor content update. It will look something like:

<?php
// WebAssist iRite: Rich Text Editor for Dreamweaver
$WARichTextEditor_1 = CreateRichTextEditor ("nl_content", "HTMLEditor/", "100%", "400px", "Custom", "../custom/newsletter_Update_nl_content1.js", "".(str_replace('"', '&quot;', $row_WADAnewsletter['nl_content'])) ."");
?>


Using your own equivalent recordset and row names, change:

"".(str_replace('"', '&quot;', $row_WADAnewsletter['nl_content']))  ."");


to:

"".$row_WADAnewsletter['nl_content']  ."");


Once the image paths have been corrected once, updates should work properly, and the image links should remain intact.

Sign in to reply to this post

mrs

That'll do pig! ;o)

Thanks neilo, that worked a treat. Very much appreciated.

Mat

Sign in to reply to this post

mrs

Actually, if this is a long standing problem, why hasn't it been updated?

I did have HTML Editor, however, I have had to remove it in order to install CSS Form Builder of which I have the latest version installed, which was released around mid 2010.

Is it possible to get an update please? That would prevent me from constantly having to amend the code produced.

Thanks

Mat

Sign in to reply to this post

Jason ByrnesWebAssist

This happens on adding html editor to an update page created using DataAssist.

When adding HTML Editor to an update page, you will need to go to the initial value section and reselect the corresponding recordset column to remove the formatting.

Sign in to reply to this post

mrs

Yes, it was a data assist page.

Could you explain what you mean by 'remove the formatting' please? Do you mean un-bind it from the recordset column that data assist bound it to?

Thanks.

Sign in to reply to this post

Jason ByrnesWebAssist

in HTML Editor, click on the lightning bolt next to Initial Value and reselect the coresponding recordset column.

Sign in to reply to this post

mrs

Oh OK, it's as simple as that. I've done all the amends to code by hand now, but I'll give it a go in a few weeks when I have to use it again.

Thanks both anyway.

Mat

Sign in to reply to this post

Jason ByrnesWebAssist

you're welcome.

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