window.open question

W

Weedget

Hello!

I've small problem with my JS code.

On my page i've button which executes code from below:

[ciach]
var newWindow;
var props =
'scrollBars=1,resizable=1,toolbar=0,menubar=0,location=0,directories=0,width=700,height=400';
newWindow = window.open('http://mapa2.szukacz.pl', 'Szukaj',
props);
[ciach]

and now:
on opened page there are many links, one of them has onclick event and
click calls function
message('query','')

i tried to call this function like this newWindow.message('query',''),
but i got error that message isnt function - this error looks like
browser searches this function on main (first) page not on child -
opened by window.open

whats wrong in my code? maybe i cant call functions from other hosts?
could you help me, please?

regards
chirs
 
B

Benjamin Sattler

Hi!

[snip]
David Mark said:
Right. You can't do anything with pages from other hosts. But
I would have expected a "permission denied" error in that case.
[/snip]

I've tried this and got:

uncaught exception: Die Erlaubnis für das Lesen der Eigenschaft Window.message
wurde verweigert

(This is german, means: "Permission for Reading of window.message denied")

However, creating windows in "about:blank"-context and using their methods
worked fine.

bye
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

window.open problem 5
window.open 13
Image shifts to the right when export the page to pdf 4
Window.Open Function 2
window.open alternative? 3
Problem with window.open 18
window.open 2
Problème IE7/window.open 0

Members online

No members online now.

Forum statistics

Threads
473,969
Messages
2,570,161
Members
46,705
Latest member
Stefkari24

Latest Threads

Top