facebook

RUN JAVASCRIPT IF NAVIGATE GOTO SCREEN MODE …

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

    softandarts
    Member

    Hi everybody,
    I’m Luca from SOFT & ARTS and I have this question:

    Example: I create 2 screen MyScreen1.mobi and MyScreen2.mobi

    in Myscreen1 I create one list : Actions > Go to screen > MyScreen2.mobi

    in phoneui.documentReadyHandler = function() (Called when document is loaded.) in MyScreen2_custom.js I add a simple alert(“Hello”);

    but javascript not run …

    if I change Goto Screen in Goto URL and I link the MyScreen2.html in my web server (http://www…..) , javascript run.

    Exist a syntax for link to local html file ?
    I have to use Goto Screen or Goto URL ?
    The Screen are the hidden div ?

    Thanks and sorry for my b ad english !

    Luca

    #329301 Reply

    Hi softhands,

    Please take a look at these posts with your same issue and the solution.

    http://www.genuitec.com/support-genuitec/viewtopic.php?p=7778#p7778
    http://www.genuitec.com/support-genuitec/viewtopic.php?p=6485#p6485

    #329321 Reply

    softandarts
    Member

    Hi Octavio,

    OK … all code in mainpage_custom.js ….

    but I want populate combo, list, ecc dinamicallly (with a SOAP XML CONNECTION … but this is another future post …)

    Example: 3 screen : in last screen I have two combo

    the main page is named intro.mobi

    in the loading first page I write the javascript code for populate the combo:

    ( // aggiunge il primo elemento vuoto
    var o = document.createElement(“OPTION”);
    document.m1_intro.cbComuni.options.add(o);
    o.value = “”;
    o.innerHTML = “Seleziona un COMUNE…”;)

    (m1_intro is the form name ????)

    this is for testing add only manually one element to combo cbComuni …

    but if the screen of combo is hidden div , where is the sintax for pick the name of combo and populate it ???

    Thanks and sorry for my bad english

    Luca

Viewing 3 posts - 1 through 3 (of 3 total)
Reply To: RUN JAVASCRIPT IF NAVIGATE GOTO SCREEN MODE …

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