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 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.
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 This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
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...
|
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.
...
|
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...
|
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,...
|
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...
|
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?)...
|
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:...
|
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...
|
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"...
|
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...
|
by: Charles Arthur |
last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
|
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...
|
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...
|
by: nemocccc |
last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
|
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...
|
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...
|
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...
|
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...
|
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...
| |