Log in

No account? Create an account
Previous Entry Share Next Entry
code... must keep pop up visible on reload
pulpgrrrl wrote in webdesign
ok here's my issue. i have a pop up that contains a slideshow, works great. So that it wont get too annoying, when reloading with a differnt slide show i have it set for the same window to be used. Problem is i don't know the correct syntax to make that window be visible again. It just stays hidden right now... here's the page in question. click on different slideshows to see what i mean.
here's what the link looks like...
a href="#" onClick="MM_openBrWindow('text<%=(rsExh.Fields.Item("filename").Value)%>-pr.asp','exhibitionpressrelease','status=no,scrollbars=yes,resizable=no,top=10,left=10,width=500,height=500')"

any ideas?

Edit: found the answer... onBlur="window.close()" doh!
edit II: onReload="window.focus()"

  • 1
I think it would work well if you put a "close" button on the popup page, because that's what I do by default (hit the x, that is).

I'm not sure what you mean by the popped-up page being "hidden."

Great looking site, though! Seriously.

I think what's happening here is you want the new gallery to open in the same popup window...and then bring the popup back into view (on top of the window.)

The macromedia-generated code is not bad for stuff like this in general, but it's sometimes so general that it's like one-size fits all underwear.

instead of the macromedia function use the following:
a href="#" onClick="gallery = window.open('text<%=(rsExh.Fields.Item("filename").Value)%>-pr.asp','exhibitionpressrelease','status=no,scrollbars=yes,resizable=no,top=10,left=10,width=500,height=500'); gallery.focus();"

i'll test that out too... for the moment the function i found works...

I know it's not what you're looking for (I suspect device55 has the answer), but here's an angle. Why pop up a new window at all and risk loosing your user? Why not use Javascript to reload just the required image on the same page?

welp.. ideally there wouldnt be any pop ups but.. i just maintain it. what the boss says.. goes. :\

  • 1