close ad
Install the LAtest Updates to Work with CC 2017 and CC 2018
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Insert / Update behaviour and the pipe (|)

Thread began 6/17/2010 10:05 am by Ian | Last modified 6/18/2010 5:23 pm by Eric Mittman | 629 views | 3 replies |

Ian

Insert / Update behaviour and the pipe (|)

Hi WA,

I have a standard text area, nothing special. No HTML Editor applied to it.

I have developed a CMS solution and want my client to be able to add their Google Analytics code to the CMS via the back end. I have created the page and applied the Insert / Update behavior as applicable, but there is a problem.

The GA code contains two pipe characters - || - and this breaks up the insert into the database.

Am I missing something here? Do I need to use a specific character set to be able to insert this characters?

Thanks!
Ian

Sign in to reply to this post

Eric Mittman

This is a limitation of DataAssist currently. Here is a thread with a code example you can use to work around the issue.

showthread.php?t=13884

Sign in to reply to this post

Ian

Thanks Eric, seems to have done the trick.

The only thing I noticed, and I don't know if this is the expected behaviour, is that I have to re-encode it on the web page where it is delivered.

For example:

<?php echo str_replace("|", "&#38;#124;",$row_rsconfig['analyticscode']); ?>

Also, if this problem is addressed in Data Assist will I have to readdress all of this (i.e remove the code that fixed it?)

Cheers
Ian

Sign in to reply to this post

Eric Mittman

When you see this on the page you will not notice the difference between the character and the encoded character, the browser will interpret it for you as the same character. So this should not be necessary, it is only done when inserting the values so that the character does not match the separator in the server behavior.

This issue is logged as a bug but I have no ETA on a fix release. If you have this code on your page after an update is released and applied it should not make a difference.

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