[Gambas-user] R: Re: WebView.HTML does not show that instead WebView.Url shows.
Randall Morgan
rmorgan62 at ...626...
Mon Feb 25 02:54:34 CET 2013
You might try replacing autoplay with autoplay="autoplay" or autoplay
= "true" as most web browsers will take a parameter with no arguments
to mean something like this. Infact, the passing of a parameter
without a value is a short hand that is often used and interpreted by
the browsers...
On Sun, Feb 24, 2013 at 5:15 PM, vuott at ...152... <vuott at ...152...> wrote:
> Hi,
>
> no, I suppose the problem is this:
> if I write:
>
> WebView1.HTML = "<audio controls = controls autoplay src =\"my_file_audio\">"
>
>
> Print WebView1.HTML
>
>
> in console I see:
>
> <html><head></head><body><audio controls="controls" autoplay="" src="my_file_audio"></audio></body></html>
>
>
> ??????
>
> The WebView object ADDS some code itself automatically, so distorting and altering the original code ! ...an excess of zeal.
>
> If I test that modified code:
>
> <html><head></head><body><audio
> controls="controls" autoplay=""
> src="my_file_audio"></audio></body></html>
>
>
> *by writing in html file*, it doesn't work !!! In fact, it's wrong.
>
> Regards
> vuottt
>
>
>
>
>
>
>
>
> ----Messaggio originale----
> Da: ea7dfh at ...2382...
> Data: 24/02/2013 20.18
> A: <gambas-user at lists.sourceforge.net>
> Ogg: Re: [Gambas-user] WebView.HTML does not show that instead WebView.Url shows.
>
> El 24/02/13 17:49, vuott at ...152... escribió:
>> Hello,
>>
>> I have noticed that not all the HTML code works with WebView.HTML. So, in this cases I must use WebView.Url property.
>>
>>
>> Example, if this HTML code:
>>
>> <HTML>
>>
>> <audio controls=controls autoplay
>> src="my_file_audio">
>>
>> </audio>
>>
>> </html>
>>
>>
>> it doesn't work if I write:
>>
>> WebView1.HTML = "<audio controls = controls autoplay src =\"my_file_audio\">"
>>
>> but it works, if I write it in a "html file", and then I re-call it with WebView.Url.
>>
>> Why ?
>>
>> regards
>> vuott
>
> Apparently you missed part of the html code in this line. You must close
> the audio tag:
>
> WebView1.HTML = "<audio controls = controls autoplay src
> =\"my_file_audio\">"
>
>
> It might be like:
>
> WebView1.HTML = "<audio controls = controls autoplay src
> =\"my_file_audio\"></audio>"
>
> Hope this helps,
>
> regards
>
> --
> Jesus Guardon
>
> ------------------------------------------------------------------------------
> Everyone hates slow websites. So do we.
> Make your web apps faster with AppDynamics
> Download AppDynamics Lite for free today:
> http://p.sf.net/sfu/appdyn_d2d_feb
> _______________________________________________
> Gambas-user mailing list
> Gambas-user at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user
>
>
>
>
> Invita i tuoi amici e Tiscali ti premia! Il consiglio di un amico vale più di uno spot in TV. Per ogni nuovo abbonato 30 € di premio per te e per lui! Un amico al mese e parli e navighi sempre gratis: http://freelosophy.tiscali.it/
>
> ------------------------------------------------------------------------------
> Everyone hates slow websites. So do we.
> Make your web apps faster with AppDynamics
> Download AppDynamics Lite for free today:
> http://p.sf.net/sfu/appdyn_d2d_feb
> _______________________________________________
> Gambas-user mailing list
> Gambas-user at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user
--
If you ask me if it can be done. The answer is YES, it can always be
done. The correct questions however are... What will it cost, and how
long will it take?
More information about the User
mailing list