Posted by jojo on 06/20/06 22:56
krupa.p@gmail.com schrieb:
> Thanks a lot Jojo. It worked perfectly when I placed the url in the
> address bar and opened it :-)
>
> However, when I pass the url from my application to the browser it is
> giving an unknown exception. I will try to debug it.
>
> Thanks again for your help!
>
>
>> OK, my script is ready, but I havn't tried yet. If something doesn't
>> work just tell me and I try to fix it.
>>
>> First replace the src="test.swf" in the embeded-tag by id="movie".
>> Than add following code into your HTML-head:
>>
>> <script language="javascript" type="text/javascript">
>> document.getElementById("movie").src=location.href.substr(location.href.lastIndexOf("?")+1)
>> </script>
>>
>> I hope it works...
>
I had the problem too when the address-bar included only the filename
(C:\SomeDirectory\Somefile.htm?test.swf). Is that the case?
The URL has to look like this:
(file:///C:/SomeDirectory/Somefile.htm?test.swf)
Navigation:
[Reply to this message]
|