Indigo Rose Software

Professional Software Development Tools

 
Results 1 to 4 of 4

Thread: Web object

  1. #1
    Join Date
    Jun 2006
    Posts
    3

    Lightbulb Web object

    Sorry for stupid question... it`s my first project..

    I created project with menu bar and two pages:
    page1
    page2

    every page contains 1 web object - web1 with default url:
    http://myproject.com/index.php

    also i created script for function keys in page1/properties/script/On Key:
    Code:
    if e_Key == 112 then 
    Page.Jump("page1");
    elseif e_Key == 113 then
    Page.Jump("page2");
    --
    elseif e_Key == 114 then
    Page.Jump("page1");
    Web.LoadURL("Web1", "http://myproject.com/index.php?s=888");
    elseif e_Key == 115 then
    Page.Jump("page2");
    Web.LoadURL("Web1", "http://myproject.com/index.php?s=999");
    end
    and same script on page2/properties/script/On Key

    Next i`m created script for main menu project/actions/On Menu:
    Code:
    if e_ID == 999 then
    Application.Exit(0);
    elseif e_ID == 101 then
    Page.Jump("page1");
    elseif e_ID == 102 then
    Page.Jump("page2");
    --
    elseif e_ID == 103 then
    Page.Jump("page1");
    Web.LoadURL("Web1", "http://myproject.com/index.php?s=666");
    elseif e_ID == 104 then
    Page.Jump("page2");
    Web.LoadURL("Web1", "http://myproject.com/index.php?s=999");
    end
    ------------------------------------------
    When (in compiled and running project) i`m pressing F3, page1 loads with default (http://myproject.com/index.php) url in Web1 window.
    Also when i`m select this pages ( http://myproject.com/index.php?s=999 or http://myproject.com/index.php?s=666 ) from main menu - nothing happened.. pages always opened with default (http://myproject.com/index.php) url in Web1 window

    Where i`m missing ? Help please a.s.a.p
    Thanks in advance..

  2. #2
    Join Date
    May 2005
    Posts
    1,115
    Your script stops processing after a Page.Jump action.

    To overcome this, you could try inserting this code before any other in your project:

    Code:
    _NoExitScriptOnPageJump=true;
    _NoExitScriptOnPageJump
    If set to true, action script in an event will continue to be executed after a Page.Jump or Page.Navigate action is called. If set to false, the execution of the action script in the event will halt after a Page.Jump or Page.Navigate is called. This variable is set to false by default.
    Last edited by bule; 06-08-2006 at 02:06 PM.
    Never know what life is gonna throw at you.
    (Based on a true story.)

  3. #3
    Join Date
    Jun 2006
    Posts
    3

    Peekaboo!

    Quote Originally Posted by bule
    Your script stops processing after a Page.Jump action.

    To overcome this, you could try inserting this code before any other in your project:

    Code:
    _NoExitScriptOnPageJump=true;
    Thanks bule, but (i`m so confused ) where i can insert this script?
    in Global Function ?

  4. #4
    Join Date
    May 2005
    Posts
    1,115
    Add it in Project Actions > On Startup
    Never know what life is gonna throw at you.
    (Based on a true story.)

Similar Threads

  1. A couple of Web Object questions...
    By DomPredacom in forum AutoPlay Media Studio 5.0
    Replies: 10
    Last Post: 04-04-2005, 08:03 AM
  2. HOW TO: Return a Web Browser Object to the Original URL after a Page Jump
    By Support in forum AutoPlay Media Studio 4.0 Examples
    Replies: 0
    Last Post: 02-03-2003, 09:18 AM
  3. INFO: Difference between the Media Player Object and the AVI Object
    By Support in forum AutoPlay Media Studio 4.0 Examples
    Replies: 0
    Last Post: 10-29-2002, 02:15 PM
  4. HOWTO: Make a Media Player Object Go Full Screen
    By Support in forum AutoPlay Media Studio 4.0 Examples
    Replies: 0
    Last Post: 10-23-2002, 11:23 AM
  5. Replies: 0
    Last Post: 10-04-2002, 10:09 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts