uh ... Thanks

Sebastian

2010/4/28 Max Carlson <[email protected]>

> Hi Sebastian,
>
> You're running against a security restriction - browsers will only allow
> access to i/frame contents when the they are loaded from the same domain.
>  The only workaround I know of is to force the i/frame's contents to load
> through a proxy server running on the same host as the application.
>
> Regards,
> Max Carlson
> OpenLaszlo.org
>
>
> On 4/28/10 4:09 AM, Sebastian Wagner wrote:
>
>> Hi,
>>
>> I use the html-tag in SWF runtime. It creates an iFrame as overlay.
>>
>> That works pretty well! Also in different Browsers et cetera...
>>
>> However when you try to read the "src" of the iFrame it will always
>> return the initial src you set.
>> So when the user clicks a link in the iFrame and change the location,
>> the SRC won't change.
>>
>>
>> I tried with different approaches to read the location for example with:
>> document.getElementById("__lz0").contentWindow.baseURI;
>> or
>> document.getElementById("__lz0").contentWindow.getAttribute("baseURI");
>> or
>> document.getElementById("__lz0").contentWindow.location.href;
>> => but it all returns:
>>
>> "<http://192.168.0.3:5080> wurde die Erlaubnis für das Lesen der
>> Eigenschaft Window.baseURI von <http://code.google.com> verweigert."
>> means:
>> "<http://192.168.0.3:5080> is not allowed to read the property
>> Window.baseURI from<http://code.google.com>"
>>
>> I also tried to find a method call for:
>>
>> http://www.openlaszlo.org/lps4.7/docs/reference/lz.html.html#lz.html.prototype.callJavascript
>>
>> with no success.
>>
>>
>> so is there any other workaround to read the current-URL from the
>> iFrame/HTML Tag?
>>
>> thanks,
>> Sebastian
>>
>> --
>> Sebastian Wagner
>> http://www.webbase-design.de
>> http://openmeetings.googlecode.com
>> http://www.laszlo-forum.de
>> [email protected] <mailto:[email protected]>
>>
>


-- 
Sebastian Wagner
http://www.webbase-design.de
http://openmeetings.googlecode.com
http://www.laszlo-forum.de
[email protected]

Reply via email to