Input Object not showing URL in AMS 7

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts
  • sidd
    Forum Member
    • Apr 2004
    • 5

    Input Object not showing URL in AMS 7

    This used to show urls in AMS 6, when a "Go" button is clicked. Now
    > in AMS 7 the input feild shows blank
    >
    > Input object On Load
    >
    > -- Was the Enter key pressed?
    > if e_Key == 13 then
    > -- Make sure the Web object is visible
    > if not Web.IsVisible("Web1") then
    > Web.SetVisible("Web1", true);
    > end
    > --Load the specified URL
    > Web.LoadURL("Web1", Input.GetText("Input1"));
    > end
    >
    > In Web object On Load
    > Input.SetText("Input1", Web.GetURL("Web1"));
    >
    >
    > Can you say what it should be for AMS 7
    >
    > Thanks
  • Ulrich
    Indigo Rose Staff Member
    • Apr 2005
    • 5130

    #2
    If Web.GetURL() returns a blank string, probably it wasn't possible to load the text you typed in the input field. You might want to use Application.GetLastError() and display the corresponding error message to get a hint why and what isn't working as you expect, placing these calls after the Web.LoadURL and Web.GetURL actions.

    Comment

    Working...
    X