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 derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

popup window status bar

Status
Not open for further replies.

treviboy

Programmer
Dec 18, 2006
70
US
hi,

I created a popup window, but I also want to display scrolling text in the status bar. How do I do that? Would the function be in the popup window itself?
I need just an idea how I could do this- thanks very much
 
You'd need to use a timer to modify the status bar text string one character at a time to give the impression that it's scrolling. There are routines to do this all over the web - try for a possible example.

On a side note, browsers like Firefox explicitly disable status bar modification by default, so many users will lose the effect anyway. This being the case, why not consider a different way to get your message across?

Hope this helps,
Dan

Coedit Limited - Delivering standards compliant, accessible web solutions

[tt]Dan's Page [blue]@[/blue] Code Couch
[/tt]
 
Thanks. I do have a function with setInverval in it, and I can get it to work when I am in one window, but when my pop up window comes up, how do I make the status bar in that window move? I guess my question is:where do I put the code for the pop up window? I know I sound confused, because I am. In the meanwhile, I'll take a look at the link you gave me. Thanks so much.
 
Thanks. I did get a function to work for one form, but when I created a popup window, I dont know how to call the function. How do I call the function from the popup window if it's in the window that called it? I saw something about 'opener'- is that what I should try?

thanks again
 
If you want the status bar in the popup window to be used instead of the opener window, you can either:

- Reference "windowHandle.status" instead of "window.status", where "windowHandle" is the handle returned by the window.open call. In this instance, the script is placed in, and run from, the opener window.

- Copy the scrolling code verbatim to the popup window page.

Note: If using the former method, AFAIK, both pages will have to be on the same domain.

Hope this helps,
Dan

Coedit Limited - Delivering standards compliant, accessible web solutions

[tt]Dan's Page [blue]@[/blue] Code Couch
[/tt]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top