facebook

Calling javascript function

  1. MobiOne Archive
  2.  > 
  3. Feedback & Suggestions
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #324605 Reply

    Max87
    Member

    Hi all,
    I found a bug. When I create a page, let’s call it alert page, that contains a button, which calls function f.e alertwindow(), which contains alert(“hello”) in alertpage_custom.js file.
    If i run it in Test center, it works fine. But, if I create another page, f.e called main page, which has an item with link to the alert page, the button is not working. Function alertwindow is not called.
    Soluton for this is, that I insert code right in Design center into Javascript window. This is OK, if the code is simple and small, but if I have complicated function, the space for inserting code is too small.
    Is this common problem, or is it on my side?
    I can provide screens or mobi files if needed.

    Thanks for any help.

    #324698 Reply

    Max87
    Member

    Hello Octavio,
    I created simple design with example(not related to my project).
    When I click on Transfer item(exaple1.mobi), and then on the new screen I click on the Click me item, javascript function hello() should be called, but is not.
    When I run Hello.mobi in Test Center only, it works.
    Thanks for help.

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

    Max87
    Member

    Hi Octovio,
    if I understand, I should place function that will be called on another page to the main_page_custom.js?
    Thank you

    edit: Thank you Octavio, it’s working now 🙂

Viewing 3 posts - 1 through 3 (of 3 total)
Reply To: Calling javascript function

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