Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

How can I pass this script through xml?

Posted on 2011-10-18
5
Medium Priority
?
318 Views
Last Modified: 2012-08-13
Hi!
I need to place a widget on a flash web page. How can I do this via xml?

Here is the script:

<script src="https://www.crossloop.com/widgetjs/pro_contact_widget.js?accountid=1183293" type="text/javascript" charset="utf-8"></script>

Here is the XML:

<pageText><![CDATA[
Get Computer Help Now!
]]></pageText>

<pageText><![CDATA[
<a href="#">
<font color="#7794a4">></font>  At pharetra augue nec augue am<br>
<font color="#7794a4">></font>  Tincidunt ac, viverra sed, nulla onec<br>
<font color="#7794a4">></font>  Quisque diam lorem nterdum<br>
<font color="#7794a4">></font>  Scelerisque vitae, pede onec eget tela<br>
<font color="#7794a4">></font>  Lacinia fermentum onec in velit vel<br>
<font color="#7794a4">></font>  Vestibulum iaculis lacinia est roin dictu<br>
<font color="#7794a4">></font>  Fusce euismod consequat ante
<br><br>
<font color="#ffffff"><a href="asfunction:_root.more_click_func,1">> more info</a></font>
]]></pageText>
0
Comment
Question by:DantechIT
  • 3
5 Comments
 

Author Comment

by:DantechIT
ID: 36994866
anyone?

should I use cdata?
0
 
LVL 28

Accepted Solution

by:
strickdd earned 2000 total points
ID: 36995360
If you are trying to pass something like that through XML, you need to HTML Encode it so that the XML characters are escaped properly:

> becomes &gt;
< becomes &lt;
etc.
0
 
LVL 83

Expert Comment

by:leakim971
ID: 36997086
0
 

Author Comment

by:DantechIT
ID: 36997731
Ok, so i changed the < and > tags but it still shows up weird.


<pageText><![CDATA[
&lt;script src="https://www.crossloop.com/widgetjs/pro_contact_widget.js?accountid=1183293" type="text/javascript" charset="utf-8"&gt;&lt;/script&gt;
<a href="#">
<font color="#7794a4">></font>  Ultrices posuere cubilia urae uspendis<br>
<font color="#7794a4">></font>  At pharetra augue nec augue am<br>
<font color="#7794a4">></font>  Tincidunt ac, viverra sed, nulla onec<br>
<font color="#7794a4">></font>  Quisque diam lorem nterdum<br>
<font color="#7794a4">></font>  Scelerisque vitae, pede onec eget tela<br>
<font color="#7794a4">></font>  Lacinia fermentum onec in velit vel<br>
<font color="#7794a4">></font>  Vestibulum iaculis lacinia est roin dictu<br>
<font color="#7794a4">></font>  Fusce euismod consequat ante
<br><br>
<font color="#ffffff"><a href="asfunction:_root.more_click_func,1">> more info</a></font>
]]></pageText>
0
 

Author Comment

by:DantechIT
ID: 36997802
leakim971:

I looked through the link that you provided but did not see anything that would help me. Could you please point it out for me? Maybe I overlooked the information.
0

Featured Post

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

The article shows the basic steps of integrating an HTML theme template into an ASP.NET MVC project
Q&A with Course Creator, Mark Lassoff, on the importance of HTML5 in the career of a modern-day developer.
In this tutorial viewers will learn how to style elements, such a divs, with a "drop shadow" effect using the CSS box-shadow property Start with a normal styled element, such as a div.: In the element's style, type the box shadow property: "box-shad…
This video shows how to quickly and easily deploy an email signature for all users in Office 365 and prevent it from being added to replies and forwards. (the resulting signature is applied on the server level in Exchange Online) The email signat…
Suggested Courses

810 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question