- This topic has 18 replies, 2 voices, and was last updated 12 years, 2 months ago by Yann.
-
AuthorPosts
-
YannMemberHello
in a text loaded by ajax (remote page) , how i can do a word wrap (<br>)
because my text continue under the border of screen.thanks
Yann
support-michaelKeymasterCheck out this recent discussion and let me know if this technique that I sometimes use works for you:
http://www.genuitec.com/support-genuitec/viewtopic.php?p=5301#p5301
YannMemberHello Wayne
i’m sorry i don’t understand your method, my english is not enought good.
i have a “transparent panel” in this panel i put a empty text named ResultActu with resize allowed
i need to add another text widget? i tried to place spaces in my “ResultActu ” text but i have the same result
Thanks
Yann
support-michaelKeymasterI will try to dev a small example that demo’s this technique I have used for dynamically introducing long wrapping text.
YannMemberThanks Wayne
support-michaelKeymasterI posted this example that hopefully meets your needs:
http://www.genuitec.com/support-genuitec/viewtopic.php?f=14&t=2459
YannMemberThanks a lot Wayne
i go to see them
Yann
YannMember@Wayne
can i send you my project by email because when i tried to post on forum screen capture i encountered an error “Bad Request” from Apache.
thanks
Yann
support-michaelKeymaster@Yann
Yes. Send to
support at genuitec dot com
title: yann’s mobione data for wayne
support-michaelKeymaster@Yann
Yes, received your project files but have not had a chance to investigate. Is there a specific screen that I should look at that has the text problem?
support-michaelKeymaster@Yann
Yes I received the files and unpacked them yesterday. I have not had a chance to fire up the UI yet. What design file contains the text layout issue?
YannMemberHello Wayne
the file is menus.mobi
Widget text named “resultmenus” call a remote page and display it.i made a test this morning , i made a vb function who cleaned remote page of any tag,if the page is cleaned of html tags, the text wrap correctly, the remote page contains :
<p></p> and <li>
Thanks
Yann
YannMember@ Wayne
i found the problem but i don’t know how resolve it.
if my page contain htm tag between a div white-space: pre-wrap don’t run
This run as well (remote page)<div id="m1-menus-contenu" class="m1-text" > Vous trouverez sur notre ardoise un choix d'entrées, de plats et de desserts changés tous les jours. Midi et soir Formule Guillemet à partir de 21,00 € (3 plats hors boisson) Formule à partir de 17,50 € € (2 plats hors boisson) Entrée ou dessert à partir de 5,00 € </div>
but this don’t run as well
<div id="m1-menus-contenu" class="m1-text" > <p> Vous trouverez sur notre ardoise un choix d'entrées, de plats et de desserts changés tous les jours.</p> <h3> Midi et soir</h3> <ul> <li> Formule Guillemet à partir de 21,00 € (3 plats hors boisson)</li> <li> Formule à partir de 17,50 € € (2 plats hors boisson)</li> <li> Entrée ou dessert à partir de 5,00 €</li></div>
any idea?
Thanks
Yann
support-michaelKeymasterYour last comment confuses me. Let me step back and see if I still understand the situation. I thought you wanted to dynamically change the content of a Text widget. From your snippet of code it appears you are attempting to exchange the widget’s text with HTML. Is this correct? If yes, that is a different problem than exchanging simple text. Set me straight!
-
AuthorPosts