473,708 Members | 2,367 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Cross-frame location.reload ()

I'm having a hell of a job getting this to work in Safari: the only
thing I can think of is that one can't use reload() across to another
frame for security reasons. Does anyone have a concrete answer or
solution for this? I'm trying to do this:

top.frames["mainConten t"].location.reloa d();

Thanks
Mark Howells
www.permanenttourist.ch

Mar 14 '06 #1
9 5442
pe************* **@gmail.com wrote:
^^^^^^^^^^^^^^^ ^^^^^^^^^^^^
Your name would be appreciated here.
I'm having a hell of a job getting this to work in Safari: the only
thing I can think of is that one can't use reload() across to another
frame for security reasons.
One usually can if the second-level domain of both resources is the same.
This security measure is not restricted to Safari. Search the archives for
"Same Origin Policy".
Does anyone have a concrete answer or solution for this?
Use `document.domai n' if both resources are within the same second-level
domain. Use server-side redirection if they do not, or if `document.domai n'
does not help for other reasons.
I'm trying to do this:

top.frames["mainConten t"].location.reloa d();
A line of code that is syntactically and semantically correct (lacking
feature tests, but these are features of DOM Level 0, and therefore testing
them is maybe negligible), yet completely useless for problem analysis as
you are not saying what resource tries to access what other resource.
[...]


No ads, please.
PointedEars
Mar 14 '06 #2
Thomas 'PointedEars' Lahn said the following on 3/14/2006 6:26 AM:
pe************* **@gmail.com wrote:
^^^^^^^^^^^^^^^ ^^^^^^^^^^^^
Your name would be appreciated here.


So you have changed from being pedantic about valid email addresses to
requesting/requiring a name? There is *nothing* that says anything about
giving a name.
[...]


No ads, please.


That wasn't an ad, it was a signature. Sheesh.
But go ahead, say the same thing about mine.
--
Randy
comp.lang.javas cript FAQ - http://jibbering.com/faq & newsgroup weekly
Javascript Best Practices - http://www.JavascriptToolbox.com/bestpractices/
Mar 14 '06 #3
Randy Webb wrote:
Thomas 'PointedEars' Lahn said the following on 3/14/2006 6:26 AM:
[...]

No ads, please.


That wasn't an ad, it was a signature. Sheesh.
But go ahead, say the same thing about mine.


You silly sod, there was no signature in his posting, in contrast to yours.
That is why I saw your signature delimited from the rest by a nice grey
line when reading, and it "magically" disappeared from your posting when
the editor window for this followup opened ...

May Ctrl+U be with you.
HTH & HAND

PointedEars
Mar 14 '06 #4
> Your name would be appreciated here.

I updated my profile after writing, apologies to all.
I'm having a hell of a job getting this to work in Safari: the only
thing I can think of is that one can't use reload() across to another
frame for security reasons.


One usually can if the second-level domain of both resources is the same.
This security measure is not restricted to Safari. Search the archives for
"Same Origin Policy".


It has nothing to do with cross-domain scripting, it's just accessing
one frame from another. The problem is only evident in Safari and is
almost certainly to do with client-side security (connected to remote
window blocking and so forth?).
Does anyone have a concrete answer or solution for this?
[snip]
I'm trying to do this:

top.frames["mainConten t"].location.reloa d();


I've received a suggestion directly off-group in the meantime, which is
a bit of a hack but which seems to work cross-browser and
cross-platform:

top.frames['mainContent'].location.searc h +=
(top.frames['mainContent'].location.searc h ? '&' : '?' ) + 'rand=' +
Math.random();

Regards
Mark Howells
www.permanenttourist.ch

Mar 14 '06 #5
So, what's the difference between Randy's signature line and mine.
(Apart from the lyrics!)

Regards
Mark Howells
www.permanenttourist.ch

Mar 14 '06 #6
Mark Howells wrote:

Please provide attribution of quoted material.
In Google Groups: show options, Reply.
vvvvvvvvvvvvvvv vvvvvvvvvvvvvvv vvvvvvvv
Your name would be appreciated here.
> I'm having a hell of a job getting this to work in Safari: the only
> thing I can think of is that one can't use reload() across to another
> frame for security reasons. One usually can if the second-level domain of both resources is the same.
This security measure is not restricted to Safari. Search the archives
for "Same Origin Policy".


It has nothing to do with cross-domain scripting, it's just accessing
one frame from another. The problem is only evident in Safari and is
almost certainly to do with client-side security (connected to remote
window blocking and so forth?).


Is there a setting for another security measure regarding window-to-window
access in Safari one should be aware of, or is this merely your assumption?
If the former, is there any error message if you attempt the former, is
there any documentation about this feature? Because I have never heard of
this before.
> Does anyone have a concrete answer or solution for this?
> I'm trying to do this:
>
> top.frames["mainConten t"].location.reloa d();


I've received a suggestion directly off-group in the meantime,
which is a bit of a hack but which seems to work cross-browser
and cross-platform:


And eating away local cache space.
top.frames['mainContent'].location.searc h +=
(top.frames['mainContent'].location.searc h ? '&' : '?' ) + 'rand=' +
Math.random();


I think you ran into a caching problem instead, which is "solved" by this
nonsense. If that is the case, it would be better solved with using
cache-controlling headers.
PointedEars
Mar 14 '06 #7
Mark Howells said the following on 3/14/2006 7:39 AM:

Please quote what you are replying to.

If you want to post a followup via groups.google.c om, don't use the
"Reply" link at the bottom of the article. Click on "show options" at
the top of the article, then click on the "Reply" at the bottom of the
article headers.

<URL: http://www.safalra.com/special/googlegroupsreply/ >
So, what's the difference between Randy's signature line and mine.
(Apart from the lyrics!)
The major difference? Mine starts dash dash space followed by the
signature. The impact? When most decent newsreaders quote a post, it
will strip off a delimited signature starting with the dash dash space.
So, when Thomas replies to me, it removes my signature automatically.
When he, or I, reply to yours, it quotes it instead without removing it.

The minor difference? Thomas decided yours didn't fit his "requiremen ts"
so he got pedantic about it. Ignore his pedantics.
Regards
Mark Howells
www.permanenttourist.ch


I am not sure if Google Groups allows you to save a signature line. If
it does, simply add -- followed by a space on a line of it's own and
save it.

--
Randy
comp.lang.javas cript FAQ - http://jibbering.com/faq & newsgroup weekly
Javascript Best Practices - http://www.JavascriptToolbox.com/bestpractices/
Mar 14 '06 #8
Thomas 'PointedEars' Lahn said the following on 3/14/2006 6:43 AM:
Randy Webb wrote:
Thomas 'PointedEars' Lahn said the following on 3/14/2006 6:26 AM:
[...]
No ads, please. That wasn't an ad, it was a signature. Sheesh.
But go ahead, say the same thing about mine.


You silly sod, there was no signature in his posting, in contrast to yours.


Yes there was. It may not be a "properly delimited signature" but it's
still a signature.
That is why I saw your signature delimited from the rest by a nice grey
line when reading, and it "magically" disappeared from your posting when
the editor window for this followup opened ...
Nice grey line? Where? I see no grey line and didn't put it there. But
for what it's worth, I see signatures as bright blue not grey.
May Ctrl+U be with you.


Nah, Ctrl+K is more fun.

--
Randy
comp.lang.javas cript FAQ - http://jibbering.com/faq & newsgroup weekly
Javascript Best Practices - http://www.JavascriptToolbox.com/bestpractices/
Mar 14 '06 #9

Thomas 'PointedEars' Lahn wrote:
Mark Howells wrote:

Please provide attribution of quoted material.
In Google Groups: show options, Reply.
vvvvvvvvvvvvvvv vvvvvvvvvvvvvvv vvvvvvvv
Your name would be appreciated here.
> I'm having a hell of a job getting this to work in Safari: the only
> thing I can think of is that one can't use reload() across to another
> frame for security reasons.
One usually can if the second-level domain of both resources is the same.
This security measure is not restricted to Safari. Search the archives
for "Same Origin Policy".


It has nothing to do with cross-domain scripting, it's just accessing
one frame from another. The problem is only evident in Safari and is
almost certainly to do with client-side security (connected to remote
window blocking and so forth?).


Is there a setting for another security measure regarding window-to-window
access in Safari one should be aware of, or is this merely your assumption?
If the former, is there any error message if you attempt the former, is
there any documentation about this feature? Because I have never heard of
this before.
> Does anyone have a concrete answer or solution for this?
> I'm trying to do this:
>
> top.frames["mainConten t"].location.reloa d();


I've received a suggestion directly off-group in the meantime,
which is a bit of a hack but which seems to work cross-browser
and cross-platform:


And eating away local cache space.
top.frames['mainContent'].location.searc h +=
(top.frames['mainContent'].location.searc h ? '&' : '?' ) + 'rand=' +
Math.random();


I think you ran into a caching problem instead, which is "solved" by this
nonsense. If that is the case, it would be better solved with using
cache-controlling headers.
PointedEars


No, there are no further settings for cross-frame security in Safari,
but there are a huge amount of Javascript issues that I run into every
day in this browser, which have to be worked around or accepted as
errors or bad decisions in the browser JS implementation. A particular
problem is over-aggressive caching of pages and Javascript variable
values, which have been a problem since the first betas were released.

In this case, it's not possible that the problem is due to caching, as
the reload() function is never even activated by the browser, despite
being called. That means, to be clear, that the page I'm trying to
reload doesn't get reloaded, not that it's aggressively cached. It
doesn't get re-requested at all unless I use the location.search method
indicated above. Perhaps my previous emails weren't clear enough for
you to understand the problem; in which case, I apologize.

As to the flood of "how-to" replies in this thread: is this usual for a
Usenet group? I've never come across so many rules and regulations
before!

--
Regards
Mark Howells
www.permanenttourist.ch

Mar 14 '06 #10

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

Similar topics

0
2050
by: Web Science | last post by:
Site and Features: http://www.eigensearch.com Search engine, eigenMethod, eigenvector, mathematical, manifolds, science, technical, search tools, eigenmath, Jacobian, quantum, mechanics, manifolds, science, physics, chemistry, law, legal, government, home, office, business, domain lookup, medical, travel, food, university students, searching, searchers, surfing, advanced search, search tools Chemistry, mathematics, physical sciences,...
12
3876
by: * ProteanThread * | last post by:
but depends upon the clique: http://groups.google.com/groups?hl=en&lr=&ie=UTF-8&oe=UTF-8&threadm=954drf%24oca%241%40agate.berkeley.edu&rnum=2&prev=/groups%3Fq%3D%2522cross%2Bposting%2Bversus%2Bmulti%2Bposting%2522%26ie%3DUTF-8%26oe%3DUTF-8%26hl%3Den ...
3
3111
by: rollasoc | last post by:
Hi, Doing a bit of system testing on a Windows 98 laptop. (.Net 1.1 app). Did a bit of testing. Loaded a previously saved file. A gray box appeared with the text and buttons all white rectangles with a big red cross in it. Pressed a button (the one I thought might be ok). My file appeared to load. Then when I clicked on any button on my form, the button was replaced with a white rectangle with a big red cross in it.
0
1890
by: Web Science | last post by:
Site and Features: http://www.eigensearch.com Search engine, eigenMethod, eigenvector, mathematical, manifolds, science, technical, search tools, eigenmath, Jacobian, quantum, mechanics, manifolds, science, physics, chemistry, law, legal, government, home, office, business, domain lookup, medical, travel, food, university students, searching, searchers, surfing, advanced search, search tools Chemistry, mathematics, physical sciences,...
23
6539
by: Jeff Rodriguez | last post by:
Here's what I want do: Have a main daemon which starts up several threads in a Boss-Queue structure. From those threads, I want them all to sit and watch a queue. Once an entry goes into the queue, grab it and run a system command. Now I want to make sure that system command doesn't hang forever, so I need some way to kill the command and have the worker thread go back to work waiting for another queue entry.
0
2057
by: Web Science | last post by:
Site and Features: http://www.eigensearch.com Search engine, eigenMethod, eigenvector, mathematical, manifolds, science, technical, search tools, eigenmath, Jacobian, quantum, mechanics, manifolds, science, physics, chemistry, law, legal, government, home, office, business, domain lookup, medical, travel, food, university students, searching, searchers, surfing, advanced search, search tools Chemistry, mathematics, physical sciences,...
1
2763
by: Rob Woodworth | last post by:
Hi, I'm having serious problems getting my report to work. I need to generate a timesheet report which will contain info for one employee between certain dates (one week's worth of dates). I have a table containing records for each job done, the records contain date, employee name, job done (a code representing the type of job), cost code (another code), regular hours, and overtime hours. The tricky part is that more than one job can...
6
8632
by: Simon | last post by:
Hi All, An experiment i'm doing requires requires a synchronous cross-domain request, without using a proxy. I wondered if anyone had any ideas to help me achieve this. Below is what I have tried, including my conclusions/assumptions (which i'll happily be corrected on if it solves my problem!): The requirement not to use a proxy means I can't use the synchronous
6
5479
by: Bart Van der Donck | last post by:
Hello, I'm presenting my new library 'AJAX Cross Domain' - a javascript extension that allows to perform cross-domain AJAX requests. http://www.ajax-cross-domain.com/ Any comments or suggestions are welcome. --
6
3987
by: ampo | last post by:
Hello. Can anyone help with cross-domain problem? I have HTML page from server1 that send xmlHTTPRequest to server2. How can I do it? Thanks.
0
8788
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9290
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
9061
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9001
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
6615
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
4454
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4713
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3151
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
2097
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.