DMXzone Server Connect Support Product Page

Answered

Databindings that I've placed on my page showing HTML markup

Asked 14 Mar 2017 15:28:52
1
has this question
14 Mar 2017 15:28:52 Bruce Wilkie posted:
Hi there

I'm trying to display the content of a mediumtext field in my database on the page. But my mediumtext field contains HTML markup, in this case <p> tags that I'm using to set my text into paragraphs. When I insert the databinding onto the page however, it is showing these <p> tags rather than interpreting them as paragraphs. How do I stop this happening?

thanks in advance
Bruce

Replies

Replied 15 Mar 2017 06:51:07
15 Mar 2017 06:51:07 Teodor Kuduschiev replied:
Hello Bruce,
Are you using HTML5 Data Bindings to bind the data on your page, or a re you using the new App Connect?
Replied 15 Mar 2017 08:58:13
15 Mar 2017 08:58:13 Bruce Wilkie replied:
Hi Teodor. I'm just following the method in the first video in the manual for this extension (Server Connect Action Executors). So I'm guessing it's HTML5 Data Bindings?
Replied 15 Mar 2017 09:01:35
15 Mar 2017 09:01:35 Teodor Kuduschiev replied:
Well, do you bind the data from within the HTML5 Data Bindings Panel or from within the App Connect panel?
Replied 15 Mar 2017 09:09:07
15 Mar 2017 09:09:07 Bruce Wilkie replied:
I haven't bought the App Connect extension. There's nothing called HTML5 Data Bindings. I'm just using the panel called Data Bindings, exatcly as is done in the manual video
Replied 15 Mar 2017 09:14:31
15 Mar 2017 09:14:31 Teodor Kuduschiev replied:
App Connect is a free extension.
If your panel is called Data Bindings, then you are using HTML5 Data Bindings ....

In order to render HTML preformatted content on your page just do not bind the data as TEXT but instead select HTML, from the dropdown, on the bottom left side of the Data Bindings panel.
Replied 15 Mar 2017 09:49:57
15 Mar 2017 09:49:57 Bruce Wilkie replied:
Thanks Teodor. That's fixed it.

Much appreciated

Bruce
Replied 17 Mar 2017 15:12:33
17 Mar 2017 15:12:33 Bruce Wilkie replied:
Hi again. Given up on Server Connect as I can't get repeat areas to work since they're clashing with other javascript. I've switched to App Connect now and I'm having the same problem with HTML tags appearing on the page. Can you let me know how to fix this as well?

thanks
Replied 17 Mar 2017 15:40:02
17 Mar 2017 15:40:02 Teodor Kuduschiev replied:
Hello,
You can do this in App Connect also, the same as in HTML5 Data Bindings.
Select the parent container tags, where you want to render the HTML content. Click Add Dynamic Attribute > Display > Inner HTML.
Replied 17 Mar 2017 16:02:32
17 Mar 2017 16:02:32 Bruce Wilkie replied:
Thanks. That's worked great.

Going to switch to support for App Connector now as I've got a couple of other questions
Replied 18 Oct 2017 16:25:32
18 Oct 2017 16:25:32 rick rick replied:
I'm using app connect and when i set the div to inner html any special characters such as commas or apostrophes come out as stranger characters
Replied 19 Oct 2017 07:08:48
19 Oct 2017 07:08:48 Teodor Kuduschiev replied:
Hello Rick,
If any special characters such as commas or apostrophes come out as stranger characters then there is some encoding issue either with your page encoding or in your database table encoding. Both must be utf-8.

Reply to this topic