facebook

text called by ajax

  1. MobiOne Archive
  2.  > 
  3. Getting Help – General
Viewing 15 posts - 1 through 15 (of 19 total)
  • Author
    Posts
  • #323146 Reply

    Yann
    Member

    Hello
    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

    #323154 Reply

    support-michael
    Keymaster

    @Yann

    Check 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

    #323170 Reply

    Yann
    Member

    Hello 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

    #323179 Reply

    support-michael
    Keymaster

    @Yann

    I will try to dev a small example that demo’s this technique I have used for dynamically introducing long wrapping text.

    #323196 Reply

    Yann
    Member

    Thanks Wayne

    #323265 Reply

    support-michael
    Keymaster

    @Yann

    I posted this example that hopefully meets your needs:
    http://www.genuitec.com/support-genuitec/viewtopic.php?f=14&t=2459

    #323363 Reply

    Yann
    Member

    Thanks a lot Wayne
    i go to see them
    Yann

    #323532 Reply

    Yann
    Member

    @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

    #323534 Reply

    support-michael
    Keymaster

    @Yann
    Yes. Send to
    support at genuitec dot com
    title: yann’s mobione data for wayne

    #323567 Reply

    Yann
    Member

    @Wayne
    hello Wayne,
    I sent you my project have you received?
    thanks
    Yann

    #323572 Reply

    support-michael
    Keymaster

    @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?

    #323577 Reply

    support-michael
    Keymaster

    @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?

    #323581 Reply

    Yann
    Member

    Hello 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

    #323586 Reply

    Yann
    Member

    @ 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

    #323587 Reply

    support-michael
    Keymaster

    @Yann

    Your 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!

Viewing 15 posts - 1 through 15 (of 19 total)
Reply To: text called by ajax

You must be logged in to post in the forum log in