Custom Search : Technical Guides Sybase Oracle UNIX Javascript

Technical Guides

Of Interest

Business Intelligence and Analytics

Oracle Training

Javascript » Methods » Coding »

Passing variables to windows


Passing variables in javascript works very similar to the PowerBuilder method.
When a window is opened, a variable is assigned to it. Using dot notation, a
variable within the window can be assigned a value. Note that the variable does
not have to be declared within the calling window; it is created
at runtime, just like all other javascript variables. Here is an example:

  w_lookup ="tttlu.html","w_tttlu",
     "toolbar=0,menubar=0,location=0,status=0,height=470,width=630") ;
  w_lookup.w_tttnew = parent;  /* allow window to refer to this window */
  w_lookup.asset_id = 12345;   /* int value  */
  w_lookup.tnt_code = "NTRS";  /* char value */
These three variables can be accessed within the window w_lookup, as follows:
  newvar   = asset_id ;
Note how the calling window's function is called.

Javascript : Related Topics

Javascript : Methods : Incrementing a counter within an edit field
Javascript : Methods : Animation Example
Javascript : Methods : Image Mapping Example
Javascript : Methods : Redirecting Page Access
Javascript : Methods : Loading a new page dynamically
Javascript : Methods : Complex Application with Forms
Javascript : Methods : Image Viewer with Prev and Next Buttons
Javascript : Methods : Array Processing, Frameset Writes
Javascript : Methods : Javascript: Where it fits in HTML
Javascript : Methods : Accessing the cookie file
Javascript : Methods : Using include files
Javascript : Methods : Pure virtual call error
Javascript : Methods : Executing Dynamic Code
Javascript : Methods : Single line edit: Data entry issue
Javascript : Methods : Call CGI counter
Javascript : Methods : Dynamic Objects and Names
Javascript : Methods : Setting Focus to a Control During Load

Sybase Web Site
Sybase iAnywhere Mobile Web Site
Oracle Enterprise Web Site

Get the latest Rocket99 news and tech tips via

Site Index About this Guide to Sybase, Oracle, and UNIX Contact Us Advertise on this site

Copyright © 2016 Stoltenbar Inc All Rights Reserved.