JIM Control Usage Manual : Re-Populating A Predefined Inline Window (images, text/html, iframes)
[ To Table Of Contents ]

It is a simple task to populate a predefined inline window with different content than what it originally had. In fact, this task is accomplished by using one of several functions in the JIM Control:

wtxtpopulate(wtargetid, toptab, toptitle, typetab, deftab, defmax, defclose, stream, topclass, windresize)
-> Use this function to populate an inline window with text or html.

Hyper-Link Example (you could also call the function in your own javascript):
<a href="#" onmousedown="javascript:wtxtpopulate('number_one', 1, 'A Title', 0, 1, 1, 1, '<span class=wcaption><strong>Window #1:</strong><br />Dynamically populated content.</span>','css_title_class','yes');" class="tablinkahref">POPULATE TEXT IN PREDEFINED DIV</a>

What The Fields Mean:
wtargetid ID of window to effect (this is the ID of the <DIV> holding the inline window)
toptab Use tab at top of window? 0 = no, 1 = yes. The header tab holds the title of the inline window as well as other options, if used.
toptitle Window Title
typetab Window Option Display Type. 0 = text, 1 = images. If you use one or more inline window options (such as close), you can indicate here whether to use text representations or images that you have created.
deftab Add default window size option? 0 = no, 1 = yes
defmax Add maximize window size option? 0 = no, 1 = yes
defclose Add close window option? 0 = no, 1 = yes
stream Data to put into window (such as text or html code)
topclass CSS class associated to title area. If nothing is specified, the tabtitle css class is referenced.
windresize Equals yes if window can be resized, otherwise set it to no.


wimgpopulate(wtargetid, toptab, toptitle, typetab, deftab, defmax, defclose, imagepath, caption, link, btarget, topclass, windresize)
-> Use this function to populate an inline window with an image that can link to another location with optional footer text.

Hyper-Link Example (you could also call the function in your own javascript):
<a href="#" onmousedown="javascript:wimgpopulate('number_one', 1, 'A Title', 0, 1, 1, 1, 'someimage.jpg','Click Me','http://www.commerceweaverpro.com/','_blank','css_title_class','yes');" class="tablinkahref">POPULATE IMAGE IN PREDEFINED DIV</a>

What The Fields Mean:
wtargetid ID of window to effect (this is the ID of the <DIV> holding the inline window)
toptab Use tab at top of window? 0 = no, 1 = yes. The header tab holds the title of the inline window as well as other options, if used.
toptitle Window Title
typetab Window Option Display Type. 0 = text, 1 = images. If you use one or more inline window options (such as close), you can indicate here whether to use text representations or images that you have created.
deftab Add default window size option? 0 = no, 1 = yes
defmax Add maximize window size option? 0 = no, 1 = yes
defclose Add close window option? 0 = no, 1 = yes
imagepath URL to the image that you wish to place into the inline window
caption Text caption to show below image
link Hyperlink for image / caption
btarget Window target (such as _blank to open a new web browser window when the user clicks on the image or text caption)
topclass CSS class associated to title area. If nothing is specified, the tabtitle css class is referenced.
windresize Equals yes if window can be resized, otherwise set it to no.


wfrmpopulate(wtargetid, toptab, toptitle, typetab, deftab, defmax, defclose, frmid, frmscale, frmscroll, frmwidth, frmheight, frmborder, frmclass, frmsrc, topclass, windresize)
-> Use this function to populate an inline window with an iframe holding a web page within it.

Hyper-Link Example (you could also call the function in your own javascript):
<a href="#" onmousedown="javascript:wfrmpopulate('number_one', 1, 'A Title', 0, 1, 1, 1, 'theid', 1, 'yes', 300, 300, 0, '', 'http://www.google.com', 'css_title_class', 'yes');" class="tablinkahref">POPULATE IFRAME IN PREDEFINED DIV</a>

What The Fields Mean:
wtargetid ID of window to effect (this is the ID of the <DIV> holding the inline window)
toptab Use tab at top of window? 0 = no, 1 = yes. The header tab holds the title of the inline window as well as other options, if used.
toptitle Window Title
typetab Window Option Display Type. 0 = text, 1 = images. If you use one or more inline window options (such as close), you can indicate here whether to use text representations or images that you have created.
deftab Add default window size option? 0 = no, 1 = yes
defmax Add maximize window size option? 0 = no, 1 = yes
defclose Add close window option? 0 = no, 1 = yes
frmid ID of the IFRAME
frmscale Scale inline window to size of IFRAME? 0 = no, 1 = yes
frmscroll Allow IFRAME content to be scrollable? yes, no
frmwidth Width of the IFRAME
frmheight Height of the IFRAME
frmborder Whether or not the IFRAME has a visible border. 0 = no border, 1 = border
frmclass CSS class associated with the IFRAME
frmsrc URL src path loaded into IFRAME
topclass CSS class associated to title area. If nothing is specified, the tabtitle css class is referenced.
windresize Equals yes if window can be resized, otherwise set it to no.