I need to open an html file in IE when a user clicks on a button. I need this to open in a window that doesn't have the title bar or any of the address bar etc. Any ideas on how to do it?
Open HTML file in IE
Collapse
X
-
Popup - Web page - HTML - Intrigued
Here is a Hybrid-I.E. project I put together.
What ever is in the webpage.html document in the Docs directory, that content will load.
This is just one way of doing it.
Here's the link:
Intrigued
-
-
You should be able to do this with LUACom. Here is some Code that Worm put together that gets rid of the address/menu/toolbar bar when using an explorer window. You might try to change the navigate2 section to the web page you want to load and give it a try. If you don't have luacom you can get it from www.icynorth.com.
Tigg
Code:--Create an Instance of IE oIE=luacom.CreateObject("InternetExplorer.Application.1") --set the folder sFolder = "C:\\Pictures" --navaigate to the folder oIE:Navigate2(sFolder) --set the menu, adddres, and toolbar to off oIE.Menubar = false; oIE.AddressBar = false; oIE.ToolBar = false; --[[ Some other settings to play with ]]-- -- oIE.FullScreen = true; -- KIOSK MODE -- oIE.Resizable = false; --Can't resize the window -- oIE.StatusBar = true; --turn the statusbar on -- oIE.StatusText = "This will be in the statusbar" --set the statusbar text --set the view oIE.Document.CurrentViewMode = 5 -- 6 for filmstrip --show IE oIE.Visible = true
TJ-Tigger
"A common mistake that people make when trying to design something completely foolproof was to underestimate the ingenuity of complete fools."
"Draco dormiens nunquam titillandus."
Map of IR Forum Users - IR Project CodeViewer - Online Help - TiggTV - QuizEngine
Comment
-
-
Here is some code I got to work (fullscreen only so far):
Code:--Create an Instance of IE oIE=luacom.CreateObject("InternetExplorer.Application.1") --set the folder --sFolder = "\\AutoPlay\\Docs\\webpage.html" --navaigate to the folder oIE:Navigate2("http://www.amsuser.com") --set the menu, adddres, and toolbar to off oIE.Menubar = false; oIE.AddressBar = false; oIE.ToolBar = false; --[[ Some other settings to play with ]]-- --oIE.FullScreen = false; -- KIOSK MODE -- oIE.Resizable = false; --Can't resize the window -- oIE.StatusBar = true; --turn the statusbar on -- oIE.StatusText = "This will be in the statusbar" --set the statusbar text --set the view --oIE.Document.CurrentViewMode = 6 -- 5 for filmstrip --show IE oIE.Visible = true
Note: Line 4 and 20 I commented out and it works!
TJ_TIGGER/Worm... Awesome stuff guys!Intrigued
Comment
-
-
Popup - Web page - HTML - luaCOM - Intrigued
Got it!
oIE.Width=300
oIE.Height=300
and you can use these too:
oIE.Top = 200
oIE.Left = 200
Here's the new code:
Code:--Create an Instance of IE oIE=luacom.CreateObject("InternetExplorer.Application.1") --Navigate to this Website oIE:Navigate2("http://www.amsuser.com") --set the menu, adddres, and toolbar to off oIE.Menubar = false; oIE.AddressBar = false; oIE.ToolBar = false; --[[ Some other settings to play with ]]-- oIE.Top = 200 oIE.Left = 200 oIE.Width=300 oIE.Height=300 oIE.FullScreen = false; -- KIOSK MODE or not oIE.Resizable = true; --Can't resize the window or can -- oIE.StatusBar = true; --turn the statusbar on -- oIE.StatusText = "This will be in the statusbar" --set the statusbar text --show IE oIE.Visible = true
Last edited by Intrigued; 02-04-2005, 10:00 PM.Intrigued
Comment
-
-
Here's that code in a project file:
(credit also to: TJ_TIGGER and Worm('inator)!
SEE: AttachmentAttached FilesIntrigued
Comment
-
-
Nice job Intrigued.TJ-Tigger
"A common mistake that people make when trying to design something completely foolproof was to underestimate the ingenuity of complete fools."
"Draco dormiens nunquam titillandus."
Map of IR Forum Users - IR Project CodeViewer - Online Help - TiggTV - QuizEngine
Comment
-
-
Team Work all the way!
I need to listen more and put some time into the luaCOM plugin.
My project was cumbersom and we both know now that the progressbar that shows (or not suppose to when we uncheck it during build time) can be unsightly when we use a second .exe to fabricate a popup (my sample project, idea).
I am starting to see why Steve Balmer marches around the stage in excitement (or use to).Intrigued
Comment
-
-
Okay, I a pretty new to AMS and I don't know how to get this code to work. I have one page with a button on it. When that button is clicked, I need it to open an html file in a browser without the address bar, links etc. Just like in the example. However, I have no idea how to set it up to work. I have pasted the following code for the button:
--Create an Instance of IE
oIE=luacom.CreateObject("InternetExplorer.Applicat ion.1")
--Navigate to this Website
oIE:Navigate2("http://www.amsuser.com")
--set the menu, adddres, and toolbar to off
oIE.Menubar = false;
oIE.AddressBar = false;
oIE.ToolBar = false;
--[[ Some other settings to play with ]]--
oIE.Top = 200
oIE.Left = 200
oIE.Width=300
oIE.Height=300
oIE.FullScreen = false; -- KIOSK MODE or not
oIE.Resizable = true; --Can't resize the window or can
-- oIE.StatusBar = true; --turn the statusbar on
-- oIE.StatusText = "This will be in the statusbar" --set the statusbar text
--show IE
oIE.Visible = true
I don't know how to enter in the path of the html file I need to open. When I run the app, I get the following error:
Error:
On Click, Line 2: Attempt to index global 'luacon' (a nil value)
If there is anyone with some free time, could someone give me a step by step on how to make this work with one of my html files?
All help is GREATLY appreciated!
Bryan
Comment
-
-
Sounds like you don't have the LuaCOM plugin. You can download it from the link Tigg already posted for icynorth.com
Then, install the plugin, open AMS5 Pro and enable the plugin from the Projects > Plugins... menu. The code should then work fine.
To point it to the right address, change the line that says oIE:Navigate2(sFolder) by replacing sFolder with the address of the file/webpage - ie:
oIE:Navigate2(http://www.indigorose.com)
or
oIE:Navigate2(C:\\somefile.html)-
= Derek
["All glory comes from daring to begin" - fortune cookie]
Comment
-
Comment