CodingJavascript and browser windows

 

Press Ctrl+Enter to quickly submit your post
Quick Reply  
 
 
  
 From:  af (CAER)  
 To:  ALL
37020.1 
Hello!

I have made a small utility thingy for work which does some basic calculations based on a user input.

It's an HTML file so obviously it loads in a browser. What I'd like to do is make it look a little less "browsery". With Chrome I can do this easily using the Create Application Shortcuts thing, which effectively turns my little HTML file into a normal-looking application.

I'd like to also do something similar with Firefox and IE, seeing as that's what most people actually use. I've been fiddling with window.open and such, but Firefox is all like HEY WHAT NO POPUPS ALLOWED HERE which rather defeats the point of making this thing work like an application instead of a web page.

If it's not possible to do via Js hax0ring, is there some kind of Firefox command-line magic I can use to achieve the same thing? I've attached an image of what the page looks like Chrome.
Caer

Attachments:

0/0
 Reply   Quote More 

 From:  Peter (BOUGHTONP)  
 To:  af (CAER)     
37020.2 In reply to 37020.1 
If you want a 'normal' application, then just create one that embeds WebKit and use that instead of a browser?

(Has the added bonus of not having to worry about multiple HTML rendering engine behaviours.)
0/0
 Reply   Quote More 

 From:  af (CAER)  
 To:  Peter (BOUGHTONP)     
37020.3 In reply to 37020.2 
Problem there is I have no ability to create real applications on this PC, cos it's too locked down; HTML is the best I can do.

I found a way to make a shortcut (.LNK) on the shared network drive that opens Firefox with no toolbars etc., but of course this only works on PCs with Firefox installed in the default location.
Caer
0/0
 Reply   Quote More 

 From:  Peter (BOUGHTONP)  
 To:  af (CAER)     
37020.4 In reply to 37020.3 
I assume beating into submission the people responsible for locking it down is not an option?

Tried a .HTA (MS HTML Application)?

That limits you to IE, but if it works you will be able to easily turn off toolbars and stuff, and no reliance on browser install locations.

Of course, it's effectively an executable still, so any paranoid admin that knows what they're doing will block them from working, but there's a fair chance they haven't too.
0/0
 Reply   Quote More 

 From:  af (CAER)  
 To:  Peter (BOUGHTONP)     
37020.5 In reply to 37020.4 
Well, seeing as all the PCs have IE installed, limiting this to IE is actually beneficial. This .HTA lark seems ideal, thanks!
Caer
0/0
 Reply   Quote More 

 From:  af (CAER)  
 To:  ALL
37020.6 
Grand, the .HTA thing worked a treat and now it looks like a real application, with an icon and a non-resizeable border and everything. Cheers Pete!
Caer
0/0
 Reply   Quote More 

 From:  CHYRON (DSMITHHFX)  
 To:  af (CAER)     
37020.7 In reply to 37020.6 
Gwan and make a keylogger of it. You know you want to...

----
Children's Beeracle Network
Getting your kids hooked on beer, one preschool at a time.
0/0
 Reply   Quote More 

 From:  af (CAER)  
 To:  CHYRON (DSMITHHFX)     
37020.8 In reply to 37020.7 

Tempting but there's really nothing of interest on my fellow employees' computers, and the thing won't be used beyond that scope anyway.

 

Plus it's kinda hard to hide keylogger code in a webapp anyway unless you do a Google and obfuscate the code to hell and back.

Caer
0/0
 Reply   Quote More 

Reply to All    
 

1–8

Rate my interest:

Adjust text size : Smaller 10 Larger

Beehive Forum 1.5.2 |  FAQ |  Docs |  Support |  Donate! ©2002 - 2024 Project Beehive Forum

Forum Stats