Parent.location Problem Under IE And Netscape
Jul 23, 2005
I used php to generate the following html:
....
<meta content="text/javascript" name=Author
http-equiv="Content-Script-Type">
....
<option value="Words and Definitions" onClick="parent.location='#Words
and Definitions'">Words and Definitions</option>
.....
<a name="Words and Definitions">Words and Definitions</a>
....
What I want here is to let the user jump to the particular position
(using <a name=".."></a>, as shown) when choosing an item from drop-down
list (using <option value=...>, as shown).
The above html works well under netscape. It doesn't work under IE. Any
suggestions on how to make it work under both?
View 1 Replies
ADVERTISEMENT
Jul 20, 2005
"top.someFrameName.location.reload();" doesn't work for Netscape 7 (it
works for Netscape 4.75!).
Any idea how to fix this.
View 2 Replies
View Related
Feb 19, 2002
Code:
url = parent.location.href;
Why does that not work? adding that line gives me a javascript error of some sort in IE. I see nothing wrong with it. Yet if I take that out I don't get the error, if I put it in I get the error.
Its in an IFRAME by the way.
View 5 Replies
View Related
Aug 25, 2006
This is not an IFrame. The frame exists. This is code for a Notes Client. Should be the same as for a browser? Here is my code:
document.bgColor = "blue";
document.frames[0].location =
"/IC.nsf/Get%20and%20Compare%20URLs?OpenView"
OR
document.bgColor = "blue";
document.Frame2.location =
"/IC.nsf/Get%20and%20Compare%20URLs?OpenView"
View 1 Replies
View Related
May 5, 2006
After executing the iFrame-name.location=url (which worked fine by way,) there is a very undesirable event; the parent window also gets redirected to the same url.:mad: I am calling this function from a click event on an Image object. I have tried everything from return(false); to window.event.cancelBubble = true; nothing stops the parent window from navigating. The interesting thing is, if I hit the Back button it goes back and still redirect the parent window automatically, over and over.
The odd thing is I have identical code in another project and I never had problems.
Here is a portion of my javascript func:
function clicked_SubmitScreensBtn() {
var url = "ovExplorer.asp?Action=show&QData=BLABLABLA";
var iFrDoc = document.frames("ifrmOVExplorer").document;
iFrDoc.location.replace(url);
window.event.cancelBubble = true;
return(false);
}
And this is my iFrame in the HTML of the parent window:
<iframe name="ifrmOVExplorer" id="ifrmOVExplorerID" src="blank.htm" style="Z-INDEX: 10; VISIBILITY: visible; POSITION: absolute; LEFT: 22; TOP: 380; WIDTH: 306px; HEIGHT: 280px;" marginwidth="1" marginheight="1" align="left" border="0" frameborder="0" scrolling="no">
</iframe>
View 1 Replies
View Related
Jul 23, 2005
I have some code that changes a PDF file in another frame using:
parent.frame.document.location.href = "PDF File"
This code works fine the first time it is called. But if a PDF file is
in that frame and the code is called again IE gives me an error:
"no such interface supported"
I have used this code for the past 5 years and it has worked fine with
Adobe Acrobat 4-6 it is only 7 that started to cause me grief. It is
only IE that has this problem, Netscape seems to work fine.
I have checked the web and talked to Adobe and have yet to find a
solution.
View 2 Replies
View Related
Jan 10, 2011
I have an webbpage, and in the middle of it there is an iframe to a php site. So i have used this code, so after some seconds the iframe will send the guest to another page. <meta http-equiv="refresh" traget="_top" content="5 url=http://mypage.com"/> But the thing is that i want the WHOLE page to reload, and go to that page after 5 seconds (we can say). With that code, only the iframe are going to another page. Is it possible to make the whole page send the user after some seconds, to another page and not only the iframe?
View 1 Replies
View Related
Nov 13, 2011
I'm using window.showModalDialog but having an issue trying to set the parent window(main browser). I open modal window A which is then opens modal window B, top of modal window B onload I do window.opener.close()". My issue now is when i'm finished with B I set parent window(main browser) to a new url with window.opener.location. So my problem is modal window A the parent has been closed so window.opener.location will not work.
View 3 Replies
View Related
Feb 14, 2010
Danged if I can find the thread, but I swear I saw a $.url() reference in here a day or two ago. It was beingutilized for parsing out the window.location or window.location.search parameters. I made a mental note because that was something I would be needing to do.
Now I can't find it, either because the search isn't finding it or I was dreaming about this function existing.
I rummaged about the API docs and didn't find it there either. Is it something provided by one of the plugins and not a function native to jQuery?
View 3 Replies
View Related
Sep 24, 2011
Demonstration page: [url]
Adjust the CSS margins of the BODY element with the first slider. The yellow P (paragraph) element resizes to fit its smaller containing block, as I would expect.
Then, adjust the CSS border or padding of the BODY element with the second and third sliders. The P element does not resize, though its origin changes. Instead, it overflows its containing block.
Finally, adjust the margins again. The P element snaps back into its containing block.
As you can see from the source, this is jQuery 1.6.4 and jQueryUI 1.8 pulled from googleapis.com.
Edit: Client is Google Chrome16.0.889.0 dev-m.
View 2 Replies
View Related
Aug 27, 2010
I have a page which has a form and also one iframe in the same. there is a button on the parent form.when the button is clicked, i am submitting the iframe and parent both. forms are getting submitted. but when i do print_r for iframe values, it is blank
[Code]...
View 1 Replies
View Related
Jul 23, 2005
Is there a way to get a page to appear in a new tab in the same window in
Netscape 7?
View 4 Replies
View Related
Aug 25, 2004
I am creating a site that will use a Client-Side Include (CSI) to dynamically generate an ad banner to be placed on the right hand side of the page. It loads great in IE5 and above and Netscape 7 and even loads fine in Netscape 4.7. The problem is when the user resizes the window, the ad banner that was generated is then placed at the bottom of the page. I even look at the HTML of that particular page and the CSI is thrown into the bottom portion of the site. I am perplexed as to how it just throws it down AND knows where in the HTML code to insert itself.
If anyone has any ideas on how to stop this snippet of code placing itself anywhere in the site, I would appreciate any help. Again, it LOADs fine but when the user decides to re-size the window, it just moves it down to the bottom of the site.
View 18 Replies
View Related
Jul 23, 2005
I've got a trouble with my script, i want to show a <div> on Netscape
and it doesn't work: Here is the script
//navigators identification
var ie4=(document.all && !document.getElementById)? true:false
var ie5=(document.all && document.getElementById)? true:false
var n4=(document.layers)? true:false
var n6=(!document.all && document.getElementById)? true:false
// creation of three div Code:
View 6 Replies
View Related
Jul 23, 2005
My Website (Template) uses JavaScript to create a pop-up window in the
gallery.With IE it works fine, but not with my Netscape 7.0. No Pop up apears.
In the script I found the line:
if (browser_type == "Microsoft Internet Explorer" && (browser_version >=
4) && (navigator.userAgent.indexOf("Windows") != -1)) {
has it something to do with not working?
View 5 Replies
View Related
Jul 20, 2005
I created a menu bar for my page using Sothink DHTML Menu 4.1 which created javascript file. I also add a small slide show on the page using javascript and the javascript is embedded in this page's HTML.
Everything works perfectly with IE. However, Netscape (4, 6, 7) can't see the menu bar created in DHTML when the slideshow javascript is present.
If I just have the menu bar or slideshow alone on the page, Netscape can see it, but it seems that Netscape always ignores the DHTML script when both javascripts are present. Not sure what is going.
I have tried to put the slideshow javascript in the .js file that has the DHTML code for menu bar, but it didn't work either.
View 6 Replies
View Related
Jul 20, 2005
I just installed the LoveSan security patch from MSFT and turned on
Auto-Update. Now applets do not load. I tried getting Netscape 7.1 but
it directs me to the Sun page to install JRE. I do this but still
neither IE or NS will load applets. Tried downloading some from
various websites with free applets but these do not work either. Any
ideas?
View 1 Replies
View Related
Jul 20, 2005
I have a problem with NS 4.7 (I know, it is old, but I have no
choice...) :
So, I have a page with a link to open a new window:
var strHtml = '<html><head><title>title_of_window</title>' +
'<LINK rel=stylesheet href=theme.css>'+
'<SCRIPT LANGUAGE="JavaScript" SRC="my_script.js"></SCRIPT>' +
'</HEAD><BODY onLoad="fonc_onLoad();" class=Body topmargin=0
leftmargin=0 MARGINWIDTH=0 MARGINHEIGHT=0>' +
'blablabla' +
'</body></html>'
var win = window.open('', 'window_name', 'parameters');
win.document.write(strHtml);
win.document.close();
win.focus();
My problem concerns the tag "onLoad " of the "BODY" tag: with IE, the
"fonc_onLoad()" starts normally (this function is in "my_script.js"),
but with NS 4.7 (ou 4.51), the <SCRIPT> tag is ignored (you can view the
window's source code), so the "fonc_onLoad()" function cannot not start.
View 3 Replies
View Related
Jul 20, 2005
i have a netscape and IE incompatibility problem. when i change the text size in netscape everything looks fine and all frames text size change. but when i change the text size in IE just one frame change!
View 1 Replies
View Related
Dec 9, 2005
I'm making a website in both english and italian languages. I thought to make a javascript function that automates the switch from one lang to the other, reloading the same page. It works fine with IE, but when I tried to view it on a Netscape7 browser, nothing happen when I click on the link. Code:
View 1 Replies
View Related
Nov 9, 2001
I guess because IE once again has its own variations this works or Netscape isn't following the dom I don't know which but I was hoping this type of navigation was going to be dom compliant with the newest versions of Netscape
If you have a table with the id "bob" (I like dumb names sometimes) you should be able to navigate down the table via bob.firstChild.childNodes[1].innerHTML. This does not work in netscape but does work in IE. I find this troubling because of how much easier things would have been if it worked in both. I really just wish the browsers would become equal.
The dom specification is here (outdated I believe)
http://www.w3.org/TR/1999/CR-DOM-Lev...roduction.html
Thats the specification and how it supposedly works. I am going to keep playing and figure out if maybe Netscape 'changed' it. for an example try this Code:
View 8 Replies
View Related
Dec 14, 2006
i tried everything to open a new window of smaller size in Netscape, just couldn't do it. Is it my own Netscape browser setting or Netscape itself's problem?
here's one of the code im using:
<A HREF="javascript:void(0)"
'welcome','width=300,height=200')">
Open a new window</A>
View 3 Replies
View Related
Jul 23, 2005
I have a javascript function which uses the method
document.getElementById.
I'm using it to decide whether a checkbox has been ticked or not. This
decision is encoded in an if statement with the condtion being
if (document.getElementById(checkboxtoupdate).value ==1)
/* The Code */
function set(object)
{
var checkboxtoupdate = object.value;
if (document.getElementById(checkboxtoupdate).value ==1)
document.getElementById(checkboxtoupdate).value = 0;
else
document.getElementById(checkboxtoupdate).value = 1;
}
The "object" accesses a html tag which has an value attribute e.g
value="7400"
However Netscape Navigator 7.1 does not seem to recognise
"document.getElementById(checkboxtoupdate).value"
and reports an error that
document.getElementById(checkboxtoupdate).value has no properties.
But Internet Explorer has no problem with this at all.
Is there another way to do this so as to be recognised by Netscape 7.1?
View 7 Replies
View Related
Jul 23, 2005
I noticed that the following line of code works in IE 6 but not in Netscape
7.1:
<INPUT TYPE="radio" NAME="selComb" VALUE="0"
Nothing happens when I click on the radio button. There is not even an error
message.
This is a simplified version of the actual code, which is used to pass among
other things the value of a selected radio button to a JavaScript-function.
Does anybody know how this code can be made to work in Netscape?
View 5 Replies
View Related
Jul 23, 2005
I'm not sure if this is a style sheet issue or a Javascript issue.
I'm trying to work out a new design for my software's control panel.
The idea is that there are images on the left that you click and that
as you do, DIVs with option links appear and disappear on the right.
Because I want each of the DIVS to appear in the same place, I use
Javascript to set their padding and their height to 0px when they are
invisible. This is working the way I wish in Netscape 7.1 but it is
not working the way I want in IE. Can anyone give me a hint about why?
View 7 Replies
View Related
Jul 23, 2005
If I have to test my code on different Netscape versions, can I download and run those versions on the same computer or will it create conflicts? And if I had to test only one version which one should it be - which one has the most common elements to all the versions?
View 3 Replies
View Related