Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Force a Web Page to the front

Status
Not open for further replies.

simeybt

Programmer
Nov 3, 2003
147
GB
All,
I am looking to find out of it is possible to have a web page that is forced to the front all the time. I don’t want it to be active just available to view. I am guessing this functionality would be provided via JavaScript if its Possible. I’ll give you the scenario. I want to have a type of ticker tape running along the bottom of the screen containing various stat’s for my business. I want the “ticker Tape Bar” viewable at all times.

Any ideas

Simon
 
I think you use showModelessDialog or something like that. (not exactly sure of the context) Do a google search for modeless windows and you should find what you're looking for.

-kaht

banghead.gif
 

I don't think that there is any way of doing this while still allowing full cross-platform and cross-browser compatibility.

Dan

 
I’m not worried about cross browser computability, thus will only work on IE

Simon

 
simeybt,

I think this is what you're trying to accomplish, sorry I didn't give a working example earlier. Note how you can type in the textarea while the other window floats on top.
Code:
<html>
<head>
<script>
var dialogWin={&quot;closed&quot;:true}
function openWindow(url){
  if(dialogWin.closed){
    dialogWin=showModelessDialog(url);
  }
}
</script>
</head>
<body>
<form name=blahForm>
<input type=button value=&quot;Click Me&quot; onclick=&quot;openWindow('[URL unfurl="true"]http://www.tek-tips.com');return[/URL] false&quot;>
<textarea></textarea>
</form>
</body>
</html>

-kaht

banghead.gif
 
This is almost what I want, and I’m not sure if what I want can be done using a web page. The idea is to have this page designed like a ticker tape bar either along the top of a screen or along the bottom above the task bar. The bar must be viewable at all times i.e. just like the task bar. So when someone opens a new program or activates one the task bar they won’t be displayed over the top of the ticker tape. I’m not sure if I explained this very good but basically just another task bar which messages will pop up on.

Thanks for the working example it will get me on my way

Simon
 
modal / modeless dialogs will only be on top when their parent page is active.

you cannot make a browser window ALWAYS visible using javascript, unless you call window.focus() regularly, which will disrupt activity in other windows.

=========================================================
-jeff
try { succeed(); } catch(E) { tryAgain(); }
 
I think you will have to write a proper windows app to do this... Use something like Delphi, or (*shudder*) Visual Basic.

Hope this helps,

Dan
 
I kind of suspected this, I’ll probably just use the web page as a proofing concept then write it in VB it goes ahead thanks everyone for your tips

Simon.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top