-
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
-
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