You can try something like this
1. Use a Frame Set frSetMain with two frames - frNAV and frWS;
frNAV has pgNav with ComboBoxPages
2. Set ExtraHtml property of ComboBoxPages : onChange=submit()
3. Inside this_OnBeforeDisplay(...) of pgNav:
{
String pageName =
getDisplayFieldValue("ComboBoxPages").stringValue();
if ( (pageName.equals("")) // first time
return(PROCEED);
load(pageName,"frSetMain","frWS");
return(STOP);
}
You should be all set.
Aby
> -----Original Message-----
> From: [EMAIL PROTECTED] [SMTP:[EMAIL PROTECTED]]
> Sent: Tuesday, April 13, 1999 4:34 PM
> To: [EMAIL PROTECTED]
> Subject: [ND] Using JavaScript to load a ND page into a frame
>
> We are moving a project from Perl/CGI to NedDynamics 4.1.3.
>
> In this project, we have two frames on the screen at all times.
> The top frame, called NAV, contains a combo box whose labels
> and values are populated from an Oracle 8 database. These values
> are the names of the pages which an operator can load into the
> bottom frame called WORKSPACE. In this way, the opertor can
> jump instantly to any page without the need of a hierarchical menu
> structure
>
> In the original Perl/CGI program, this was accomplisged through
> the use of onClick events attached to the <OPTION> tag where
> the URL of the desired page was passed to a JavaScript function
> via onClick='loadPage(URL)'.
>
> function loadPage(URL) {
> url=URL;
> parent.WORKSPACE.location = url;
> }
>
> We want to be able to perform this same function in
> NetDynamics. Does anyone know if NetDynamics
> pages can be called from JavaScript and still retain their
> links. If not, are there other ways to load NetDynamics pages
> without having to refresh the entire screen from the server.
> (We have considered using a ava applet, but would like
> to avoid it if possible).
>
> If it is possible, please give me some sample code examples
> along with any explanations.
>
> Thank You
>
> David A. Wimsett
> Hewlett-Packard Company
>
>
> _________________________________________________________________________
>
> For help in using, subscribing, and unsubscribing to the discussion
> forums, please go to: http://www.netdynamics.com/support/visitdevfor.html
>
> For dire need help, email: [EMAIL PROTECTED]
_________________________________________________________________________
For help in using, subscribing, and unsubscribing to the discussion
forums, please go to: http://www.netdynamics.com/support/visitdevfor.html
For dire need help, email: [EMAIL PROTECTED]