Page 4 of 6 FirstFirst ... 23456 LastLast
Results 31 to 40 of 52

Thread: Read ascii file

  1. #31
    Senior Member
    Join Date
    Feb 2012
    Location
    Rome - Italy
    Posts
    1,877
    Hi Yvonne, two /, thanks
    Fabio

  2. #32
    Senior Member
    Join Date
    Feb 2012
    Location
    Rome - Italy
    Posts
    1,877
    If you need, I can post my code without problem.

  3. #33
    Lianja Team yvonne.milne's Avatar
    Join Date
    Feb 2012
    Location
    Berkshire, UK
    Posts
    1,670
    Hi Fabio,

    Can you just double-check that the 'Enable services' is still checked in your App Settings - I'm seeing that reset when I restart the App Builder.

    Regards,

    Yvonne

  4. #34
    Senior Member
    Join Date
    Feb 2012
    Location
    Rome - Italy
    Posts
    1,877
    you're right, the flag had died ..
    I tried

    Lianja.ShowDialog("Search & Find", "http://localhost:8002/desktopwebservice/sup_search.rsp?table=vt_articoli_articoli&cursor=c ur_articoli&fields=cod_art|;catmercgam|;des_web|&t arget=cod_art&caption=Articolo,Cat. merc.,Descrizione")

    and

    Lianja.ShowDialog("Search & Find", "http://localhost:8002/sup_search.rsp?table=vt_articoli_articoli&cursor=c ur_articoli&fields=cod_art|;catmercgam|;des_web|&t arget=cod_art&caption=Articolo,Cat. merc.,Descrizione")

    but the page showed in empty

  5. #35
    Lianja Team yvonne.milne's Avatar
    Join Date
    Feb 2012
    Location
    Berkshire, UK
    Posts
    1,670
    Try it without the parameters first then add them back in.

    My cut-down test here is working fine with a couple of parameters.

    Regards,

    Yvonne

  6. #36
    Senior Member
    Join Date
    Feb 2012
    Location
    Rome - Italy
    Posts
    1,877
    no..
    also without parameter..
    I do not understand anything

  7. #37
    Lianja Team yvonne.milne's Avatar
    Join Date
    Feb 2012
    Location
    Berkshire, UK
    Posts
    1,670
    Package it up so I can run it and attach it to a ticket and I'll have a look.

    Regards,

    Yvonne

  8. #38
    Senior Member
    Join Date
    Feb 2012
    Location
    Rome - Italy
    Posts
    1,877
    Yvonne,
    can you post your sample?

    If your sample work, is more sample for me follow a sample, rather than another.

  9. #39
    Lianja Team yvonne.milne's Avatar
    Join Date
    Feb 2012
    Location
    Berkshire, UK
    Posts
    1,670
    fabtest.rsp:

    Code:
    <%@ Language=VFP %>
    <html>
    <head>
    <script type='text/javascript'>
    function readText()
    {
    	window.alert("ReadText");
    	document.getElementById("DivTabella").innerHTML ='<iframe id = "myframe" src="http:/localhost:8002/tabella.html?firstname=Yvonne&lastname=Milne" width="100%" height="100" scrolling="no" frameborder="0"></iframe>';
    };
    function filterComments(m_empty)
    {
    	window.alert("in parent filterComments");
    
    };
    
    if (typeof window.parent !== 'undefined' && typeof window.parent.Lianja !== 'undefined')
    {
    window.Lianja = window.parent.Lianja;
    };
    </script>
    </head>
    <body>
    <button id=test" type="button" onclick="readText()">Test</button>
    <div id="DivTabella">
    Click Test
    <%
    m_firstname = getparameter("firstname","Unknown")
    m_lastname = getparameter("lastname","Unknown")
    ? m_firstname + "<br>"
    ? m_lastname
    %>
    </div>
    </body>
    </html>
    tabella.html:

    Code:
    <script type="text/javascript">
    </script>
    <table width="100%" height="10%" cellpadding="5" cellspacing="2" bgcolor="white" border=2px id="tabella">
    <tr bgcolor="gray">
    <td align="center" colspan="3">
    </td>
    </tr>
    <tr bgcolor="#eaeaea">
    <tr bgcolor="&rowcolor" class="datacellgridline">
    <td valign=top align=left> <b>
    Articolo
    </td> </b>
    <td valign=top align=left> <b>
    Cat. merc.
    </td> </b>
    <td valign=top align=left> <b>
    Descrizione
    </td> </b>
    </tr>
    <td>
    <input width="100%" type="text" value="" id="cod_art" onchange="window.parent.filterComments('Z')" >
    </td>
    <td>
    <input width="100%" type="text" value="" id="catmercgam" onchange="parent.filterComments('Z')" >
    </td>
    <td>
    <input width="100%" type="text" value="" id="des_web" onchange="parent.filterComments('Z')" >
    </td>
    </tr>
    </table>
    Console command:

    Code:
    Lianja.ShowDialog("Search & Find", "http://localhost:8002/desktopwebservice/fabtest.rsp?firstname=Yvonne&lastname=Milne")
    Name:  showdialog.png
Views: 256
Size:  6.5 KB

    Name:  iframe.png
Views: 924
Size:  17.8 KB

    Regards,

    Yvonne

  10. #40
    Senior Member
    Join Date
    Feb 2012
    Location
    Rome - Italy
    Posts
    1,877
    Wip......

Bookmarks

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Journey into the Cloud
Join us