"no Such Interface Supported" When Using Parent.frame.document.location.href
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
ADVERTISEMENT
Jul 20, 2005
I have a page of 2 frame:
menu (menu.php)
corpo (corpo.php)
In menu.php i have:
View 4 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
Dec 7, 2006
Is there any way to get 'accesskey' to work with document.location.href?
I'm using a set of functions as link generators and this is what I'm "stuck with" using.
View 3 Replies
View Related
Dec 18, 2002
Which is the better option to use when dynamically loading a page?
document.location.href = "newpage.html"
or
document.URL = "newpage.html"
My book says that Netscape depreciated document.location.href in favour of document.URL, but yahoo are using document.location.href. Also, is there a good online reference (up-to-date) of the DOM which includes stuff like this?
View 6 Replies
View Related
Jul 23, 2005
I've got a little Quizzer program that asks a question in the upper frame of a frameset and then lists the answer in the lower frame. Answers can be plain text, straight html, a sound, or a LINK. I have a function that builds the answer frame using document.write(among other things). This code works fine until you encounter a link. It dutifully displays the link in the lower frame but the very next question builds the newContent perfectly but does NOT write it to the frame even though it appears to execute it.
if (answerType == "link")
{
parent.frames[1].location = URL;
} else {
// pitiful attempt to clear linked page
parent.frames[1].location.href = "QuizzerAnswer.htm";
var newContent = '<html><head><title>Quizzer Answer</title>'
newContent += '</head>'
newContent += '<body>'
if (answerType == "text" || answerType == "html") {
newContent += answerValue;
}
if (answerType == "sound") {
newContent += '<embed src="' + answerValue;
newContent += '" width="170" height="25" autostart="true">'
}
newContent += '</body>'
newContent += '</html>'
parent.frames[1].document.write(newContent);
parent.frames[1].document.close();
}
View 5 Replies
View Related
Oct 14, 2011
I'm trying to create a player stats page, for my gaming server. I spoke to a guy who knows a little about javascript, and he told me there's a way to use document.location.href to direct to a custom page URL.
For example, if I search for a name, and the results are displayed. I want to click the players username, and be directed to. [url] without the "username.html" actually existing.
I heard it's possible, and it would save me a lot of time because I don't want to have 20,000+ individual pages, one for each username.
View 1 Replies
View Related
Nov 17, 2010
Is there a difference between right clicking an iframe and reloading post reponse vs. using javascript to reload the frame? So far, the javascript route hasn't worked for me. [some context] I am writing a little bookmarklet to help me with the online registrations at my school. Here is the setup.
Load up a page on the domain. Remove all body elements. Insert an iframe. Set iframe to page for class roster search. (in iframe on school search page) Select class search options, POST the form data, and view results in frame. *This works perfectly, but I need to have it refresh results every minute or so. When I use frame.contentDocument.location.reload(true); the frame loses the post data or something and the page is broken. BUT when I just right click on the frame and select "reload frame" it works perfectly. What is the difference between rightclicking the frame and refreshing it like that vs. using javascript to reload the frame?
View 1 Replies
View Related
Sep 27, 2009
The following code works in FF, Is there any way to have the code work correctly in IE 7? The error is on both the following lines, odoc.appendChild(ne);.
<!--#include file="include/dbcommon.asp"-->
<%
set dbConnection = server.CreateObject ("ADODB.Connection")
[code]....
View 2 Replies
View Related
Mar 17, 2007
Normally an SVG document is loaded/parsed/interpreted inside an HTML
document using an 'object' (or 'embed') element, although there are
supposedly other ways too. The problem is, the SVG document must be
static this way.
I want to use the DOM interface to build SVG dynamically inside an HTML
document. I am guessing I can build it inside HTML within an 'object' (or
maybe 'iframe'?) element.
My intentions/goals:
In Javascript, I construct an object 'embedSVG' which has properties and
methods for creating valid SVG elements and setting their attributes and
attribute values.
During construction, the SVG document is created with its root element.
During debugging in FF 2.0 (I'll work on an MSIE-compatible format later),
I am using the Mozilla DOM Inspector and comparing nodes when the
'object' element is loading a valid external SVG document, and when I am
appending the child representing the SVG document created by the DOM
functions.
However the child node (#document) does not specify 'svg' as the root
element, but instead 'HTML'. Something is not working.
Here is the relevant code in 'ScriptTest.html' which is the HTML in which
the SVG is supposed to be embedded. Below it is the relevant code for
'svglib.js' which is supposed to contain code for building the SVG
dynamically.
What this code is supposed to do is load the HTML page and execute the
anonymous script, and draw a navy blue-bordered yellow rectangle on a
blank page. This is similar to the example in the SVG 1.1 W3C
Recommendation on page 202 of the 719-page PDF.
I am getting an exception when embedSVG object placeInHTML() method is
called: NS_ERROR_DOM_HIERARCHY_REQUEST_ERR. I find in DOM Inspector in
spite of or after the exception that a document is placed as a child of
the object element, but it is HTML, with a default 'head', 'title',
'body' elements placed.
Where am I blowing it?
View 3 Replies
View Related
Aug 26, 2011
I have a domain: example.com; which is the parent.And a subdomain: api.example.com; which page 'receiver.html' is being loaded in an iframe, child of parent. Both pages set document.domain = example.com.
I'm trying to adapt this code:[url] but Idon't want to load jQuery from the <iframe> again but I need to have the method $.ajax() working from the <iframe> otherwise it would be a cross-domain request and the browser would abort it. I tried ingenuously to set via $('iframe')[0].contentWindow.$.ajax = $.ajax() and I just got a shortcut to the parent page jQuery method. I also tried to "clone" it using $.expand (true...) but the method doesn't work for me; probably because of the complexity of the objected I'm trying to clone. So is there a way for me to use jQuery to have only a $.ajax() method in the <iframe> ? I've thought even about creating a XHR in the child-iframe and then use that in the $.ajaxSetup ({xhr: THATNEWXHR}) but I couldn't do it. I mean, I want to use the XHR factory from jQuery (which has fallbacks for IE, etc) but it has to be created from the iframe-child.
Maybe there is other way to make the AJAX call come from the child-iframe.
If you're wondering "why don't you load jQuery from <script> in the child-iframe", there is a reason... As I'm using jQuery plugins + my own custom javascripts + other independent scripts I created a compiler which minifies each file and bundle them in one. The advantage of this is the reduction of HTTP requests. So "why don't you load that bundle inside the child-iframe?", because it's ugly and Twitter doesn't... Yeah, I like to take Twitter as a reference and I think if they were able to make it so can I;
I got to work in most browsers except IE and Operaby doing it with pure javascript.
I'm "attaching" the code for you guys to test. If you open it with Chrome, Safari or Firefox you will receive 2 alerts one with the return of $.get() and another with the return of a request made via XMLHttpsRequest object. Otherwise (if you open it with IE or Opera) you'll get 'undefined' in the first alert but the real return in the second.
This is the example.com/index.htm:
View 4 Replies
View Related
Jul 19, 2006
I have a parent document that has a frameset with two frames in it. The first frame is a "header" that runs across the top of the site, and never changes. The second frame contains the "content" of the site. Essentially, I am trying to figure out how to prevent the header appearing above external sites when the user clicks an external link in the "content" frame.
Every time the content frame changes to a new URL, I would like the check that URL and determine if the content frame is changing to an external URL (i.e. different domain in URL) or to an internal link (same domain in URL). If the content is changing to an external link, I want to break out of the frame and just load that external link in the top most document.
I would like all of my javascript to be in the parent document, not spread throughout the individual pages of the site. I was trying to approach this by setting the onunload event handler of the content frame, but I am left with a couple of specific questions:
1. In handling an unload event, can you determine the next URL that the document is loading? Code:
View 6 Replies
View Related
Mar 21, 2004
I am using Internet Explorer, and I am creating a navigation bar that will take place for the one in the normal. It is in a frame, whick is my homepage. I have an address bar, and when you click go, or enter, the bottom half goes to that page. If you click a link on that page however, the URL in the address bar does not change. Is there a way that it can update itself with the URL of the other frame?
View 2 Replies
View Related
Feb 17, 2006
I have a couple of links of which I change location.href for tracking purposes.
The problem is that the links now no longer seem to open in a new window (which was accomplished using target="_blank")
Is this an error on my part or is this by design? Is there a workaround? I would prefer not to use window.open as that could get blocked by a popup blocker.
View 3 Replies
View Related
Jul 23, 2005
I'm passing the asp parameters using the url current page is files.asp and I'm using window.location.href=files.asp?action=deletefile to pass the action to the serverside
My code never got executed (like the page was cached) unless i put document.write("") before the window.location directive.
Here's the code:
function confirmDelete(x){
var potvrda=confirm("Kliknite OK za brisanje. Cancel za povratak.");
if (potvrda==true) {
trans="files.asp?action="+x;
document.write("")
window.location.href=trans;
}
else {}
}
View 9 Replies
View Related
Jul 23, 2005
I'm trying to use the onload event to load a series of urls.
What I find is that the onload function is only called one time
no matter how large the array. Here is the onload function.
var next_win = 0;
var win = window.open("", "", "");
function nextWin() {
if (next_win < urls.length) {
win.
win.location.href=urls[next_win++];
}}
Is this correct behavior?
View 10 Replies
View Related
Jul 23, 2005
<script language="javascript">
function ConfirmPage() {
window.location.href="http://ConfirmationPage.htm";
return false;
}
</script>
How can I use this script to display a page in my current directory? It woriks fine when using a domain such as yahoo.com or google.com.
View 3 Replies
View Related
Oct 5, 2005
i have a really stupid problem with this line of code:
location.href = "showreport.php?id=" + sText;
sText is an id of a job that's running on the server.
Showreport.php retrieves the job and outputs the result in HTML. At the same
time job is removed from the server.
What happens is that some browsers (IE 6 mostly) like to GET the
showreport.php TWICE. Of course the second time there is no job any more and
the result returned is of zero length, which is very unpleasant ;-)
Headers sent by the browsers are (1st call):
Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg,
application/x-shockwave-flash, */*
Accept-Language: sl
Accept-Encoding: gzip, deflate
User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR
1.1.4322)
Host: veliswork
Connection: Keep-Alive
Cookie: PHPSESSID=tsghl22ijg4f6ba7a2mthggun6
Headers sent by the browsers are (2nd call):
Accept: */*
Accept-Encoding: gzip, deflate
User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR
1.1.4322)
Host: veliswork
Connection: Keep-Alive
Cookie: PHPSESSID=tsghl22ijg4f6ba7a2mthggun6
Note the Accept tag.
What's even more interesting, the accept tag of IE 6.0 that does not request
twice is:
Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg,
application/x-shockwave-flash, application/vnd.ms-excel,
application/vnd.ms-powerpoint, application/msword, */*
Note the (still) absent application/pdf, which is the target content here.
Can somebody explain to me, why two calls and if that can be prevented. I
can reduce the problem by keeping the job for another minute or so, but
these jobs tend to be rather large (>10MB RAM usage) when large reports are
generated.
View 2 Replies
View Related
Jan 25, 2006
I use this code to create a banner that contains text:
<table of banner...
because it makes the whole banner a link. If I do it this way:
<table><tr><td ><a href='http://URL' target='_blank'>text of banner...
only the text is the link and if someone puts their cursor over a non-text area they might no realize they can click on it.
In the second example, however, I use target='_blank' to open up a new window.
My question is, is there a way to use the first method and open a new window.
View 2 Replies
View Related
Jan 14, 2004
I have a problem with a simple link on non-ie borwsers. This is my link:
<a href="#" onClick="window.location.href('http://www.html.it'); return false;">link</a>
I'tried with and within "window", with and within "return false" but it didn't run..
Do you have any idea or suggestion?
View 3 Replies
View Related
Aug 25, 2010
How to mimic the GET method out of a url, example: [URL] how to retrieve word with the variable location.href
something that retrieves the letters after '?r=' on the variable.
View 6 Replies
View Related
Mar 14, 2006
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["mainContent"].location.reload();
View 9 Replies
View Related
Jul 30, 2011
I'm currently developing a new website and I'm having a little bit of trouble.
I have a main page (index.php) and I've got a frameset inside of it, like this:
HTML Code:
<frameset cols="*,200">
<frame src="frame1.php" noresize="noresize" />
<frame src="music.php" id="mp3player"/>
</frameset>
The frame on the right is an mp3 player which is permanently there, and the frame on the left fills the rest of the page with the actual website. The user can navigate around the whole website just fine without interrupting their music.
The only problem I've got is that I can't seem to update the browser url to reflect the url of the first frame, I can't even update the hash. If I modify the hash of the index.php through any of the following means:
Code:
parent.location.hash = "mynewhash";
location.hash = "mynewhash";
window.location.href = "index.php#mynewhash";
location.href = "index.php#mynewhash"
Using any of those to update the hash causes index.php to reload the frames inside.
Is there anything I can do to have index.php reflect the location of frame1, or atleast have index.php in a way that I can bookmark a page?
View 1 Replies
View Related
Aug 11, 2005
why window.location.href or window.location javascript functions doesn't
work on mac browsing IE
View 1 Replies
View Related
May 23, 2006
as i know href is a property of location but location.href(url) works
fine with IE 6. i couldn't figure out how its possible? is it a kind of
browser syntax-tolerance helping it to work? how the heck is this
working?
View 8 Replies
View Related