You can use the window.open method in a JavaScript script to open the window and load it with your application. Here's an example:
<script language="javascript">
function openAppWindow(windowUrl, windowName) { var windowWidth = Math.min(screen.availWidth, 700).toString(); var windowHeight = screen.availHeight - 50; var wApp = window.open(windowUrl, windowName, 'left=0, top=0, width=' + windowWidth + ',height=' + windowHeight + ',resizable=1, status=1'); wApp.focus(); return false; }
</script>
<a href="http://www.foxweb.com" OnClick="return(openAppWindow('http://www.foxweb.com', 'FoxWeb'));">FoxWeb</a> |
FoxWeb Support Team support@foxweb.com email |
Sent by Jeff Grippe on 07/30/2004 06:58:02 AM:
How do you run the application in a new window that has no toolbar and menu bar (like this forum)?
Thanks,
Jeff
Sent by FoxWeb Support on 07/27/2004 11:10:45 PM:
This has been a problem ever since the first days of the Web. There's not much you can do about it. One possibility is to run your application in a new window that has no toolbar and menu bar (like this forum), but the user can still right-click on the page and select back from the context menu.
Another possibility to avoid data duplication is to add a hidden field to your form and populate it with a randomly generated string. You can then create a table that stores these strings whenever your script makes changes to your database as a result of a form submition, but only if the currently submitted random string is not already in the table. A safe way to create these random strings is to use SYS(2003) + LTRIM(STR(Request.CurrentChannel)).
FoxWeb Support Team support@foxweb.com email |
Sent by Jeff Grippe on 07/26/2004 08:22:46 AM:
What is the best technique for controlling the flow of the user through a FoxWeb application.
I am running into problems where users are using the Back Button when I only want to permit them to go forward through the pages in the sequence that I intend. The results are duplication of data.
How do you keep a user moving through a sequence of pages in order without the ability to go back?
Thanks