facebook

Refresh ONCLICK : CLOSED

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

    Nie Que
    Member

    Good Day, Im making a web app using mobione and i want to add a function to my image button that will refresh the content of my html widget ONCLICK. i tried it on a browser and it work but wen i put the function on my project.html it didn’t work anymore. Is there anyone who could help me with this?. i would really appreciate it. thank you.

    here’s my code

    <html>
    <head>

    <script>function refreshIframe() {
    var ifr = document.getElementsByName(‘Right’)[0];
    ifr.src = ifr.src;
    }
    </script>

    </head>
    <body>
    <iframe name=”Right” src=”http://www.dipolog.com”></iframe&gt;
    </body>
    </html>

    Attachments:
    You must be logged in to view attached files.
    #350388 Reply

    Hi,

    It’s hard to say what the problem is without seeing the code/project. A couple thoughts:

    a) There might be a sintax error in your code.
    b) Your app is not including your custom code. How this happen? If your custom code was included in screenA (screenA_custom.js), then you add a screen that become in mainScreen, when you build your app it takes the code from mainScreen_custom.js and your code from screenA_custom.js will not be included automatically.

    Also, you should consider using iframes due to apple limitations which means your mileage may vary upon your target platform. See my reply to your iframe question here.

    #350389 Reply

    Nie Que
    Member

    I already figure out how to make it work. and thank you for the replay i really appreciate it

Viewing 3 posts - 1 through 3 (of 3 total)
Reply To: Refresh ONCLICK : CLOSED

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