[Gambas-user] R: Re: WebView.HTML does not show that instead WebView.Url shows.

vuott at ...152... vuott at ...152...
Mon Feb 25 02:15:27 CET 2013


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/ 




More information about the User mailing list