View Full Version : directing low level password target to open in mains frame page
my password target opens in a new window using the 'open.window' command but i would like a command string that opens this target in the same frame within my frames page that my other pages open in.
thanks in advance manj
Roy Sinclair
05-12-2003, 03:51 PM
Code! How can we help you change your code when you don't provide a link to it or the relevant chunk?
Take the time to understand (not just glance) at the Posting Guidelines, they'll help you get the answer you want more quickly because you'll not have to be asked to provide the things that are needed.
BTW, what you want to do is possible so don't be discouraged but with the code snippet where you are doing the "open" you could have your answer already.
Roy Sinclair
05-12-2003, 07:39 PM
Looking back I think I may have been a little to "short" in my first reply. What you need to do is replace the "open" with a reference to the location object of the frame you want to change.
Instead of:
window.open(newUrl,"","...")
use:
top.frames["nameoftargetframe"].location.href = newUrl;
glenngv
05-13-2003, 10:34 AM
or...
window.open(newUrl,"nameoftargetframe","...")
jackfanchandru
08-11-2009, 02:03 PM
or...
case 1 : window.open(newUrl,"nameoftargetframe","...")
case 2 : top.frames['fra'].location.href=urlString;
But these two cases not working in new versions of firefox 3...etc....and Google Chrome
vBulletin® v3.8.2, Copyright ©2000-2012, Jelsoft Enterprises Ltd.