Welcome, Guest
  • Author Topic: Flash and Java Script  (Read 1706 times)

    Charles

    • Server what's that
    • *
    • Posts: 1
      • View Profile
      • Email
    Flash and Java Script
    « on: 10/07/03, 10:55 »
    I am having a problem sending input text from an input text field with flash.

    My action script for my submit button is this:

    on (release) {
    getURL ("javascript:GuestEntry('" + GUESTCODE + "')");
    }



    And I have assigned my input text field the variable name "GUESTCODE".


    And my javascript fuction is defined in my html:

    function GuestEntry() {

    if (window.varSubmit == false) {
    window.varSubmit = true;

    with (document.frmLogin) {

    MODULE.value = "LOGIN";
    ACTION.value = "GUEST";
    action=PgmPath+'gr_default.pgm'; submit();
    }
    }
    }


    Everything works great in html, but I am trying to replicate this in flash. The submit button is calling the javascipt fuction but not passing the text entered from the input text field.

    Any help very much appreciated !!!

    Thanks,
    Charles


    Jorge Solis

    • Global Moderator
    • Systems Administrator
    • *****
    • Posts: 14616
      • View Profile
    Re:Flash and Java Script
    « Reply #1 on: 10/08/03, 03:27 »
    Quote
    function GuestEntry()


    Doesn't seem to expect any parameter, but from Flash you're using

    GuestEntry('GUESTCODE');

    How do you expect to use this parameter if don't declare it as an expected parameter in the function?

    Jorge