iSeller Commerce
iSeller POS Retail
iSeller POS F&B
iSeller POS Express
Crosslight
WebUI
ClientUI
What's New
Download Trial
Web Solution
Mobile Solution
Enterprise Solution
Custom Development
Blog
Community
Latest Development Blogs
ForumPostTopic
Browse By Tag
Hello,
How can I format text displayed in CallOut. I need to insert line breaks. Ea Mark Dragom\n1234 Street W.\nNew York. To display inside the CallOut as follows?
Mark Dragom
1234 Street
New York
‘\n’ and </br> are not working with </br > I’m getting script errors.
Thank you for your help.
Hi,
For temporary workaround, you can use SetInnerHTMLText.
<html xmlns="http://www.w3.org/1999/xhtml"> <head runat="server"> <title></title> <script language="javascript"> function OnInitialize(controlId) { WebCallOut1 = ISGetObject(controlId); WebCallOut1.SetInnerHTMLText("Mark Dragom<br>New York"); } </script> </head> <body> <form id="form1" runat="server"> <asp:TextBox ID="TextBox1" runat="server"></asp:TextBox> <ISWebDesktop:WebCallOut ID="WebCallOut1" runat="server" TargetControlId="TextBox1" Height="55px" Width="220px"> <ClientSideEvents OnInitialize="OnInitialize" /> </ISWebDesktop:WebCallOut> </form> </body> </html>
Regards,Handy
Please try to input the text with below value.
Text="Ea Mark Dragom <br> 1234 Street W. <br> New York"
Hi Handy, whenever i try to do that I'm getting the following error. This is not the first time i see this. I have function which removes '<' from the string used by my WebCallout controls.
Do we still talk the same issue or this is another issue? Please create a new thread/topic if it is about a different issue for next time. Regarding this issue, I am not sure why you need to removes '<'. Is it possible for you to send us a simple sample that replicates this issue?
Yes, this is the same issue. As you suggested to insert <br> inside the web callout text i got the error message posted on the previous post. I suspect the webcallout is not avccepting '<' char . I'm attaching sample to ilustrate that. Note: The text is set on the server side .
Hello Mark,
At the first, your sample cause some error javascripts. It happens because you placed WebCallOut before textbox control. When I placed after textbox, it works fine as expected. I don't see any problem when it is set on server side.
As you said before that you have a function which removes '<'. Why didn't you provide this in your sample?
Hi Handy,
I have placed the WebCallout after the textbox and i'm still getting error as seen in the WebCallout_ERROR.rtf . If you do not mind to run the sample in the VS2010 and framework 4.0 that is my current environment. WebDesktop ver is 3.0.7200.310.
BTW running the same sample in VS2008 and framework 3.5 with the same WebDesktop version does not give the error.
Thank you
Hi Mark,
Yes, I also tested with VS2010 and works well. Please ensure you are using also the latest of WebUI Framework instead just WebDesktop.
Handy,
I have confirmed, reinstalled and confirmed again all of the components. Still getting the same error whenever WebCallout Text or Title contains '<' . Error message is poining to XML violation. Not sure what else can be wrong with my environment. Other that that everyting is perfect!
Yes, but we need to replicate the issue first to analyze the issue. Please try to create a simple runable project include the assemblies that replicates this issue. Hope we can figure out what is the differences.
I think i found the culprit....
try to insert the following line into the web.config and run page with web callout Text containing '<'
</appSettings>
In my case the XmlCompressionEnabled is causing the error.....Does not matter if is set to true or false. Try it....
Ok, I confirmed your report. I am able to replicate it here. Please do not use the compression until the fix. I will forward this to our developer teams.
or
Choose this if you're already a member of Intersoft Community Forum. You can link your OpenID account to your existing Intersoft Social ID.
Choose this if you don't have an Intersoft account yet. Your authenticated OpenID will be automatically linked to your new Intersoft account.
Enter your Wordpress Blogname