How To Simulate A Popup In A Web Application (OpenInsight)
At 26 SEP 2000 03:54:15PM Nick Daniels wrote:
Is there a ready-made sample INET routine somewhere that I could download or review in order to find out how to simulate:
a popup (reeading record keys off a data file)???
How does a dropdown box get its selections from a database?
At 26 SEP 2000 09:10PM Paul Simonsen wrote:
Hello Nick,
As far as creating Popups in a web page, I'm not aware if html can handle this by itself. You will probably need to use java/javascript/perl to create the effect you are looking for.
As for dropdown boxes, I can help you there. If you use OI's utility to generate an html web page from a form, it will automatically create a dropdown menu in html from any dropdowns that already exist.
However, if this is suppose to be a dynamic list appearing in the dropdown menu, you will need to generate the option list prior to creating the html form and then swap it into the html code. For example-
Select "MEMBERS" by "@ID" using 0 then
Save_Select("", "MEMBER_LIST", "", "")end
Open "SYSLISTS" to hLT then
Read ListRec from hLT, "MEMBER_LIST" then
Now change the @FM to tags.
First FM is header infoListRec=Delete(ListRec, 1, 0, 0)MemberList=':ListRecSwap @FM with '' in MemberList
Now make the requested name selected.Swap '':FullName with '':FullName in MemberListendend
And then if you are generating your html code programatically you would add this in the html code:
:MemberList:
With the help of javascript you can simulate an automatic read if the above dropdown is your @ID.
function readrecord() {
var i=document.FORM.NAME.selectedIndexlocation=INET_READ_MEMBERS?EDL_FULL_NAME=+document.FORM.NAME.optionsi.text+"&CHECK=+document.FORM.CHECK.value;}
There are probably other ways to skin this cat, however.
At 27 SEP 2000 07:46PM [url=http://www.sprezzatura.com]The Sprezzatura Group[/url] wrote:
[notag]Again, we have something that does just this, unfortunately it's part of our S/WEB product and we're not publishing the source for it, at least not yet.
What you'll need to do is generate an HTML page with the information you want placed into a table. The first column should be a button for a single option or a check box for multiple options.
When you click the button or OK, you should be able to take the information from those lines and fill in the edittable.
If there's more information that can fit on one page, you'll need to save the information somewhere until the pages are complete.
[<A HREF="http://www.sprezzatura.com" onMouseOver="window.status='Click here to visit our web site?';return(true)">The Sprezzatura Group</A>]
[<I>World Leaders in all things RevSoft</I>]
[<img src="http://www.sprezzatura.com/zz.gif">]
[<script language="javascript">function openNewPage () {window.location.href=(document.TOCNavigator.pageToGoTo.options[document.TOCNavigator.pageToGoTo.selectedIndex].value);document.TOCNavigator.pageToGoTo.selectedIndex="0"}end hiding from non-JS browsers –></script>] [<FORM ACTION "" METHOD=GET NAME="TOCNavigator" <SELECT NAME="pageToGoTo" SIZE=1 onChange="openNewPage()"> <OPTION>Pull down this menu to choose whereabouts on the Sprezz site to go <OPTION VALUE="http://www.sprezzatura.com">Home Page <OPTION VALUE="http://www.sprezzatura.com/whatsnew.htm">What's New <OPTION VALUE="http://www.sprezzatura.com/senl.htm">SENL <OPTION VALUE="http://www.sprezzatura.com/patches.htm">Download S/LIST <OPTION VALUE="mailto:[email protected]">Send mail to support at Sprezzatura <OPTION VALUE="mailto:[email protected]">Send mail to sales at Sprezzatura </SELECT> </FORM>][/notag] </QUOTE> View this thread on the Works forum...