Normally i don't have any probs with JS. this one caused a little prob because of the object model traversal required in it. was a rather crooked one. whatdya say
I've tried a lot of things now and it still doesn't work for me though.. I'll have a look to see if there is another way, since i also have probs switching the popup from no scrollbars to with scrollbars and vice versa...
Oh well eventually i'll get the hang of it.. LOL.. hopefully sooner than later.. heheheh
dreamline wrote:I've tried a lot of things now and it still doesn't work for me though.. I'll have a look to see if there is another way, since i also have probs switching the popup from no scrollbars to with scrollbars and vice versa...
Oh well eventually i'll get the hang of it.. LOL.. hopefully sooner than later.. heheheh
I got it to the part where it worked fine on opera nad firefor, but on IE it closed each time anything was clicked in the window. Not very handy. I abandoned the approach of closing the popups, and got it working.
Anyway, your problem is different. I guess it could be solved with javasript changing the properties of the window, or javascript changing the overflow-properties of a <DIV>. That way you could switch scrolling on and off...
I figured it out and the body onBlur thing works.. I also solved my scrollbars problem.. I use 2 different window names so that the scrollbar issue isn't an issue anymore...
Other problem that rises is that i can't use the popup to submit a form anymore.. LOL.. Oh well i'll keep trying.. heheheh
I decided to leave the popups, since for me it's essential that i can close after opening one.. Me as a user would go nuts if i have to close about 4-5 popups after closing my navigator.. So i decided to leave one popup in and the rest is out... Too much trouble for an easy think like that imho.. heheheh...