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

Getting the browser "instance" or object handle id?

Status
Not open for further replies.

mzongo

Programmer
Aug 16, 2001
11
GB
Is it possible to get a unique ID which will identify the browser instance the user is running uniquely. I have a situation where we need to support a user running several instances of a browser on a single machine so they can compare values from one to the other and because this requirement wasn't clear from the start and the product is now in testing I want a quick fix where I can attach this unique ID to all frame & window names.

I was hoping for something like "window.id" or "window.handle" or something!!

Is there anyway of getting an objects actual handle as an integer? (rather than just getting [object]) ??

Anybody?
 
hie
i think u need window.name
u can set it when u open new window:
var w=window.open('file.html',"windowName",prefs)
or just window.name="windowName" Victor
 
the problem is the window.name is the same on both instances, is there anything unique, without me setting it to be unique?
 
dont kno about anything else, but if those windows r opened from each other u can use window.opener..
i think u wuld have to set names urself :-(

ps window.name is the same on both instances why? Victor
 
Because they are the application (a Delphi ISPAI app as it happens) run in 2 instances of the browser, so the user runs it in 2 seperate browser instances selects some data and a window pops up with it, etc. etc. So app 1 pops up with the same window name as the other app and so the window name I used I wanted to be unique, but not any unique ID but something that I could reference in the ISAPI app and the Javascript.... something that would remain constant throughout the life of that instance of the browser...

I think I am resigned to redesigning the way it works slightly, it's just a big change at a late stage for such a stupid requirement. Don't worry, I will just go early today and cry at home. :(
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top