Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Size IE from ActiveDoc?
Message
General information
Forum:
Visual FoxPro
Category:
Internet applications
Miscellaneous
Thread ID:
00251332
Message ID:
00251847
Views:
7
>>>I have a decent ActiveDocument form going, but it is a tad bit larger than the existing IE session. How can I define the size of the browser before or after the form gets loaded?
>>>
>>>Is it possible to resize the current browser with JavaScript? If so, how would I call that from VFP?
>>
>>Hi Steve, I am not familar ActiveDocuments. Let me ask this before I suggest a solution: Does the ActiveDocument form get loaded into an existing html or asp page?
>
>
>It gets loaded from a simple page. I think I kind of got it. Here's the code:
>(lessthan signs munched to pass thru the UT checker)
>
>html>
>head>
>title>Initializing...
>/head>
>body>
>a 'toolbar=no,location=no,status=no'
>a HREF="_main.html" onClick="if (document.layers || document.all) window.resizeTo(760,590)">

Proceed


>/body>
>/html>
>
>That resizes the current window, which is pretty much what I want in the first place. I still can't get it to not show the toolbar or location or status bar, but I am working on it. My intention is to let the user navigate through the web, choose to run the app, hide some of the browser so they are semi-locked-in within my app, and when done I will restore the browser controls. What do you think?

That's what I was going to suggest(The resizeto() method of the window object). You might want to look at creating embedded style sheets using the style tag. This will enable you to get rid of the status bar and toolbar.
Tim Westmoreland
Software Engineer
Skyline Technologies, Inc.

"Upper classes are a nation's past; the middle class is its future." - Ayn Rand, Russian-born author (1905-1982).
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform