473,394 Members | 1,679 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 software developers and data experts.

window.open question

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,loca tion=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

Jul 17 '07 #1
2 1260

"Weedget" <kr******@5.waw.plwrote in message
news:11**********************@e16g2000pri.googlegr oups.com...
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,loca tion=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
No.
>
whats wrong in my code? maybe i cant call functions from other hosts?
Right. You can't do anything with pages from other hosts. But I would have
expected a "permission denied" error in that case.
Jul 17 '07 #2
Hi!

[snip]
"David Mark" <dm***@cinsoft.netwrote:
>
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
Jul 17 '07 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Michael | last post by:
I am trying to allow a user to view a PDF in a new window. I currently have this working using the following: <a href="./pdf.do?parameter=01121980" target="top"><b>pdf</b></a> The problem...
4
by: Jamie Jackson | last post by:
The crux of the problem is I only know if the popup *has been* opened, but not if it *is* open. Therefore, the script doesn't know whether to simply refocus, or whether to popup a fresh window. ...
6
by: Les | last post by:
Hi, I'd like to find out how to use the window.open() script in Fireworks MX. I have posted my question in the Fireworks forum but didn't get any replies. Since it's javascript, maybe someone...
12
by: HarveyB | last post by:
I would like to generate non-modal popup windows from ASP.Net code-behind. I have tried using Client Side scripting like "function Test(){ window.open('test.htm',_blank,...
44
by: Carlos Andr?s | last post by:
Hi everybody. I've got a problem. I'd like to avoid opening a new window when you have pressed the shift key and you click in the left button of the mouse. I've tried the next solution, in the...
32
by: Eli | last post by:
How can I POST a form into a new window where I control the size and other attributes of the new window? Also. Are there any implications, perhaps due to browser security (Interne Explorer?)...
2
by: cschang | last post by:
I am not sure this is the right place to ask this question. I have a web page composed with two frames (left and right). Then in my frmae2(right one) , I open a pop-up window by javscript:...
8
by: Dominic Tocci | last post by:
I'm searching for a way to use window.open on my web page to open a window in firefox that allows the sidebars to work (bookmarks, history, etc). When I use the following: var...
8
by: johnsonholding | last post by:
Here is the code for a pop-up window that works in Firefox and not in IE - I get a java error or something, Here is the code : </script> <SCRIPT language="JavaScript"...
7
by: Dr J R Stockton | last post by:
I want page <URL:http://www.merlyn.demon.co.uk/js-quick.htmto open, in IE6, IE7, Firefox 2, and wherever else practicable, with the control labelled F.X0 fully visible at the top of the window and...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.