I have an iframe in my web app and I need to get its current url from the parent document (also when the user navigates the frame and change the original source url).   Url is needed simply to social share it.  As a cross-domain scenario, I don't own the child document (its a remote domain).  I am aware of the same-origin-policy that prevents cross domain access from parent document to child one, but I'm looking for a solution by any creative mean possible - there has to be a way around.
124016
I have built a basic data entry application allowing users to browse external content in iframe and enter data quickly from the same page. One of the data variables is the URL. Ideally I would like to be able to load the iframes current url into a textbox with javascript. I realize now that this is not going to happen due to security issues.  Has anyone done anything on the server side? or know of any .Net browser in browser controls. The ultimate goal is to just give the user an easy method of extracting the url of the page they are viewing in the iframe It doesn't necessarily HAVE to be an iframe, a browser in the browser would be ideal.  Thanks, Adam
33181
This is fairly easy.  If I go to https://webserver.com/someurl?a=b, will the someurl?a=b part be protected, or just the contents of the site?
97451
I have 3 URLS that serve the same data:   www.example.com/product/foo www.example.com/product/foo?id=1 www.example.com?product=foo   For Google's sake I want the URL www.example.com/product/foo to be the canonical one.  However, I have my code setup so all 3 of those pages are served from the same code so if I add in &lt;link rel='canonical' href='http://www.example.com/product/foo' /&gt; to my code it will be applied to all 3 pages, including the one http://www.example.com/product/foo.  Is there any issue with doing this or does having a circular canonical not cause any issues?
10277
I need to build a function which parses the domain from a URL.  So, with   http://google.com/dhasjkdas/sadsdds/sdda/sdads.html   or  http://www.google.com/dhasjkdas/sadsdds/sdda/sdads.html  it should return google.com  with   http://google.co.uk/dhasjkdas/sadsdds/sdda/sdads.html  it should return google.co.uk.
98078
I would like to have the URL from an attribute (in the attribute table) as a 'hotlink' wherein you can click on the URL and it opens the browser with the data. As it is right now, I'm having to identify feature, R-click on the URL and copy/paste the URL into a browser.
18962
I need to execute a callback when an IFRAME has finished loading. I have no control over the content in the IFRAME, so I can't fire the callback from there.  This IFRAME is programmaticly created, and I need to pass its data as a variable in the callback, as well as destroy the iframe.  Any ideas?  EDIT:  Here is what I have now:  function xssRequest(url, callback) {     var iFrameObj = document.createElement('IFRAME');     iFrameObj.src = url;                 document.body.appendChild(iFrameObj);         $(iFrameObj).load(function()      {         document.body.removeChild(iFrameObj);         callback(iFrameObj.innerHTML);     }); }   This callsback before the iFrame has loaded, so the callback has no data returned.
22893
I would like to reload an &lt;iframe&gt; using JavaScript. The best way I found until now was set the iframe’s src attribute to itself, but this isn’t very clean. Any ideas?
69079
I need to edit (using javascript) an SVG document embedded in an html page.  When the SVG is loaded, I can access the dom of the SVG and its elements. But I am not able to know if the SVG dom is ready or not, so I cant' perform default actions on the SVG when the html page is loaded.  To access the SVG dom, I use this code:  var svg = document.getElementById("chart").getSVGDocument();   where "chart" is the id of the embed element.  If I try to access the SVG when the html document is ready, in this way:  jQuery(document).ready( function() { var svg = document.getElementById("chart").getSVGDocument(); ...   svg is always null. I just need to know when it is not null, so I can start manipulate it. Do you know if there is a way to do it?
112552
Hi friends i develop a project , in that i want to show the data from a website in the form of table . So i can do the process in child window iframe and get the table content from child window to the parent window . All are working fine , But this will work all browsers except ie. and it wont display any errors , One friend give the answer (  )for this but it shows the Error "Access denied" , Please help me..
75931
I'm currently trying to modify the default URL handling behavior in OS X. I would like, when clicking on any link outside of a web browser, to copy this URL to the pasteboard instead of opening it in the default web browser – for instance, clicking a link in a Skype conversation should copy this URL to the OS X pasteboard instead of opening it in Firefox (which is currently my default web browser).  I have thought about solutions, but I’m currently unable to implement one. If I can create an application that puts URLs into the pasteboard that are sent to it, and can set this application as the default web browser, I would be able to achieve my goal.  I created an application with Automator that executes the shell command pbcopy and have set this application as my default web browser, but I didn’t get the expected result. I did some testing and I can confirm that the application runs on clicking on a link, however, I cannot get the URL passed to the application / shell script. I tried both stdin or a passed argument, but without success.  Is there a way for an application created with Automator to retrieve a clicked URL and send it to pbcopy, when that application is set as a (default) handler for URLs?  Alternatively, is there a better way to create a fake web browser that takes the input and puts it in the pasteboard than Automator? Or is there any other way that I can achieve my goal without a custom application / script?
71667
Safari forces a redirect to the https version of a site I previously visited via https.  However, the https site no longer works and there is no way to prevent Safari form trying to load it.    Here is a related Apple Forums question,
25094
I have HTML code like this :  &lt;div&gt;        &lt;a&gt;Link A1&lt;/a&gt;        &lt;a&gt;Link A2&lt;/a&gt;        &lt;a&gt;Link A3&lt;/a&gt; &lt;/div&gt;  &lt;div&gt;        &lt;a&gt;Link B1&lt;/a&gt;        &lt;a&gt;Link B2&lt;/a&gt;        &lt;a&gt;Link B3&lt;/a&gt; &lt;/div&gt;   When user clicks a link from above HTML, I want to get the jQuery object of the corresponding &lt;a&gt; element, and then manipulate its sibling. I can't think of any way other than creating an ID for each &lt;a&gt; element, and passing that ID to an onclick event handler. I really don't want to use IDs.   Any suggestions?
58556
I want top display dashboard in VF page.    When I am trying to do it using  blank window appear.  &lt;apex:iframe src="/01Z28000000Hdzo" &gt;  Right now I am doing as per follows.  Page -   &lt;script language='javascript'&gt;         {!dashboardBlob} &lt;/script&gt;   Controller -   public string getdashboardBlob()  {  PageReference dbPage = new PageReference('/01Z28000000Hdzo');  Blob pageBlob = dbPage.getContent();  return pageBlob.toString()   }    Using above Dashboard is loaded into page but when I am trying to refresh the dashboard by clicking Refresh button (Standard button present on Dashboard) it gives me Access Control Origin error.  "XMLHttpRequest cannot load . No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin '' is therefore not allowed access."   Please suggest if you have any solution for this.
36401
Am developing a website, I have used many anchor link in menu navigation and given absolute URL. Somewhere I read we can also use relatives URL in menu navigation.  From SEO point of view, which is better for menu navigation absolute or relative URLs?
14050
I am working on an iGoogle-like application. Content from other applications (on other domains) is shown using iframes.   How do I resize the iframes to fit the height of the iframes' content?  I've tried to decipher the javascript Google uses but it's obfuscated, and searching the web has been fruitless so far.  Update: Please note that content is loaded from other domains, so the  applies.
26203
I'm trying to direct a browser to a different page. If I wanted a GET request, I might say  document.location.href = 'http://example.com/q=a';   But the resource I'm trying to access won't respond properly unless I use a POST request. If this were not dynamically generated, I might use the HTML  &lt;form action="http://example.com/" method="POST"&gt;   &lt;input type="hidden" name="q" value="a"&gt; &lt;/form&gt;   Then I would just submit the form from the DOM.  But really I would like JavaScript code that allows me to say  post_to_url('http://example.com/', {'q':'a'});   What's the best cross browser implementation?  Edit   I'm sorry I was not clear. I need a solution that changes the location of the browser, just like submitting a form. If this is possible with , it is not obvious. And this should not be asynchronous, nor use XML, so Ajax is not the answer.
96271
I have a requirement for a custom app I am building to open an attachment on the parent record in a new window on create of a child record.  I have parent object Quality_Assessment__c with child object Chart_Review__c. Quality_Assessment__c has a PDF attached to it in the Notes &amp; Attachments section. When a user clicks to create a new Chart_Review__c record I need to have the PDF attachment on the Quality_Assessment__c record open in a new tab as well as the record create page for the Chart_Review__c record. Looking for help in generating the needed javascript for a custom button to accomplish this.  The 'Quality_Assessment__c' record will have a PDF file attached to it prior to the user clicking the 'New Chart Review' button.  My use case is to have users open the 'Quality_Assessment__c' record and perform what we call a Chart Review. To perform the Chart Review the user would click on a custom button called 'New Chart Review' which would do two things.   create a new 'Chart_Review__c' record displaying the new record edit page  open the PDF attachment from the related 'Quality_Assessment__c' record.    Preferably on click of the button the new record page would open in existing tab and a new tab with the PDF would open simultaneously.