You are here: Re: dynamically embedding objects in html « HTML « IT news, forums, messages
Re: dynamically embedding objects in html

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]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация