November 14, 2007 in Javascript by Michael Chrisman 0 Comments
In doing my web page, I wanted to have object fly around the screen. I need a way to move the object, resize it (to simulate depth), and have to happen at random times. After some googling, I found some code that moved objects for IE4 and Netscape 4. I …
Read More
August 14, 2007 in Javascript by Michael Chrisman 0 Comments
I have done some work with a tool called Maximo and the new version, which is completely web based, has a feature that, when you place the cursor in a field and press Alt+F1, a help box pops up with the name of the field, the source table/column, and a …
Read More
March 20, 2007 in Javascript by Michael Chrisman 0 Comments
This bit of code will allow you to build dynamic tool tips that will work over just about any object on the HTML page (not just Image tags). I developed this code when working on a web page that imported an XML document, then allowed users to edit the content …
Read More
March 01, 2007 in Javascript by Michael Chrisman 0 Comments
When you want to open an applet from a web page, sometimes you need to know how much real estate is available on the screen. The only catch is that you have to grab the available width and height on the page that calls the page that opens your applet. …
Read More
March 01, 2007 in Javascript by Michael Chrisman 0 Comments
When you try, via code, to close the browser window and it is the last window opens (I.E. it has no parent window), Windows will prompt you to confirm the close. This little code snippet allows the the window to close with out the prompt. window.opener = self; window.close(); …
Read More
March 01, 2007 in Javascript by Michael Chrisman 1 Comment
Sometimes you need to know when the user is trying to close the browser window. This code snippet will do this. // prompt before closing page (IE) <body onbeforeunload="ExitMessage();" onunload="doWindowUnload();"> <script language=javascript> function ExitMessage() { if(badexit == true) { window.event.returnValue = "Warning!nnYou should always use the exit button to exit …
Read More