Results 1 to 2 of 2

Thread: name of activePage

  1. #1

    name of activePage

    hi,

    How do I get the "name" of the currently active page in javascript?

    Code:
    var pgname = Lianja.activePage.id;
    alert(pgname);
    doesn't seem to work. I just want the name as a string, and not a reference to the currently active page.

    Thanks,
    Murali

  2. #2
    well, found a way. Wrote a simple VFP procedure to get the value of "Lianja.activePage.id" into a global VFP variable.

    PROCEDURE get_active_page_name()
    gcactivepgname = Lianja.activePage.id
    ENDPROC

    So what I do is first execute the VFP procedure through javascript which is easy using
    Lianja.execute('get_active_page_name()');

    and then in javascript
    var curactivepage = Lianja.evaluate("gcactivepgname");

    Thanks anyway...

    Murali

Bookmarks

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Journey into the Cloud
Join us