Click to See Complete Forum and Search --> : changing content of a window


cajo_vcambra
05-12-2003, 10:04 AM
Hi, how can I change the content of a window from another window? And how can I get the window id?

Hope you can help me.

khalidali63
05-12-2003, 10:07 AM
I guess this may help you..

http://68.145.35.86/skills/javascripts/ParentWinInteractionWithChildWin.html

cajo_vcambra
05-12-2003, 11:01 AM
No, it is not what i need. The problem is the following:
I have a treeview in a webpage, and i want to replace the normal behaviour of the right click button of the mouse, for my own options. After a long research, i've decided to use JScript for opening a new window:
window.createPopup();

Everything is working fine, except when i try to use window.open, window.close or window.location, because in this type of popup, all the html is written in a variable and not in an external file.

Jona
05-12-2003, 11:03 AM
Please post a link, because I'm not so sure anymore that you are opening a new window... Or using a context menu.

cajo_vcambra
05-12-2003, 11:10 AM
Actually, i'm using both:

You can see at the following test URL:


http://193.136.64.35/tigra/tree.html

(from 9h to 17H30m - Greenwich GMT)

pyro
05-12-2003, 11:12 AM
Using that kind of a popup, those methods are not available. Also. window.createPopup() is IE5.5+ only http://msdn.microsoft.com/library/default.asp?url=/workshop/author/dhtml/reference/objects/popup.asp

Jona
05-12-2003, 11:15 AM
Whatever the error is, I do not know. Because when I get the error, it locks up my computer. :mad: And my computer is not slow, either. :eek:

cajo_vcambra
05-12-2003, 11:22 AM
Well, it seems that the problem is worser than i thougth, because i don't get any error, it just doesn't work.
Is it possible to describe the error you get, especially line and char.

Jona
05-12-2003, 11:27 AM
No, I can't. I clicked it, I got a popup, "Microsoft Internet Explorer Error" but nothing was in the box (everything else on the screen was all messed up and white), so I couldn't see it.

cajo_vcambra
05-12-2003, 11:33 AM
What about a snapshot? Is it possible to send me one?
Jona mentioned that the content was all messed up, it would be nice if i could see an example.

cajo_vcambra
05-13-2003, 03:51 AM
Can someone go to this site:
http://193.136.64.35/tigra/tree.html

and send a snapshot to here?