Search found 25 matches: innerhtml

Return to advanced search

Re: Convert a print to Rtf or doc

... the buttonbar is inside the preview - theses are html buttons! reading the preview let printContents = document.getElementById('tischplanPreview').innerHTML; SendToFWH() document.getElementById('edit-btn').addEventListener('click', editbtn);      function editbtn(evt) ...
by Otto
Fri Dec 01, 2023 11:27 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Convert a print to Rtf or doc
Replies: 33
Views: 3489

Webview question

... "SendToFWH" ) RETURN oWebView FUNCTION ValidWebView(oWebview) LOCAL cHtml cHtml := oWebView:Eval( "SendToFWH( document.body.innerHTML )") Msginfo( cHtml, "cHtml") // cHtml is empty RETURN .T. What should I put in the OnBind code block? I don't want a message ...
by Randal
Thu Jun 29, 2023 1:36 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Webview question
Replies: 36
Views: 2959

Re: SSE example

... { clearInterval(myInterval); alert("beendet"); } if (tmpdata != data) { document.getElementById('browse').innerHTML = data; scrollToBottom("browse"); tmpdata = data; } }); }
by Otto
Thu May 25, 2023 12:18 pm
 
Forum: mod_harbour
Topic: SSE example
Replies: 19
Views: 4956

Re: Help about TWebView class. reading something from website.

Antonio Linares wrote:Solved :-)

oWebView:Eval( 'window.onload = function () { SendToFWH( document.getElementById("example").innerHTML ) }' )


Goodmorning Antonio,

Can you please share full code in sample app? When I insert this line, there is not any messagebox anymore.
by Horizon
Tue Jul 05, 2022 6:12 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: Help about TWebView class. reading something from website.
Replies: 33
Views: 1575

Re: Help about TWebView class. reading something from website.

Solved :-)

oWebView:Eval( 'window.onload = function () { SendToFWH( document.getElementById("example").innerHTML ) }' )
by Antonio Linares
Mon Jul 04, 2022 11:23 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Help about TWebView class. reading something from website.
Replies: 33
Views: 1575

Re: Help about TWebView class. reading something from website.

I am trying using document.getElementById("example").innerHTML and it works from the console, but fails from Bind...
by Antonio Linares
Mon Jul 04, 2022 10:30 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Help about TWebView class. reading something from website.
Replies: 33
Views: 1575

Error al crear el objeto InternetExplorer.Application

... 1 ) nPos++ END IF nPos>=20 MsgStop("Tiempo de espera superado") RETURN NIL ENDIF oIe:Visible:=.F. cTextoHTML:=oIE:Document:body:innerHTML() cRpta:=subs(cTextoHTML,AT("{respuest:",cTextoHTML)+10,1 ) if cRpta=="1" MsgStop("No existe el archivo que se quiere ...
by Enrrique Vertiz
Sat Sep 25, 2021 3:46 am
 
Forum: FiveWin para Harbour/xHarbour
Topic: Error al crear el objeto InternetExplorer.Application
Replies: 3
Views: 410

Re: EXIF

... to access the object. oHttp := oActiveX:GetProp( "Document" ) // -> Object Document cClassName := oHttp:cClassname ? cClassName:innerHTML / Not working Can you please help with some more code. If we can access oHttp from Fivewin, we can use the "DIALOGs" from mod harbour ...
by Otto
Thu Mar 18, 2021 7:45 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: EXIF
Replies: 17
Views: 1914

COMO ABRIR UNA WEB CON CHROME

... 1 ) nPos++ END IF nPos>=20 WaitOff( @oWait ) RETURN mResultado ENDIF SysRefresh() HB_IDLESLEEP( 2 ) TRY *cCode := oIE:Document:body:innerHtml() cCode := oIE:Document:body:innerText() CATCH oError WaitOff( @oWait ) RETURN mResultado END nLine:= MLCOUNT(cCode,,3,.t.) iLinea := 0 For ...
by CARLOS ATUNCAR
Fri Dec 18, 2020 1:26 am
 
Forum: FiveWin para Harbour/xHarbour
Topic: COMO ABRIR UNA WEB CON CHROME
Replies: 2
Views: 815

web page titel

... {{WebPageName ()}} </a> <script> $ (document) .ready (function () { document.getElementById ('title'). innerHTML = '{{WebPageName ()}}'; }); </script> https://mybergland.com/fwforum/webpagename.gif
by Otto
Wed Nov 11, 2020 8:11 pm
 
Forum: mod_harbour
Topic: web page titel
Replies: 0
Views: 250

Re: views static variables

Hello, Using document.read and innerHTML helped. <script>      $(document).ready(function() {         document.getElementById('title').innerHTML='{{ breadcrumbs() ...
by Otto
Wed Nov 11, 2020 4:55 pm
 
Forum: mod_harbour
Topic: views static variables
Replies: 3
Views: 370

SSE example

... { var source = new EventSource("servtime.prg"); source.onmessage = function(event) { document.getElementById("result").innerHTML += event.data + "<br>"; }; } else { document.getElementById("result").innerHTML = "Sorry, your browser does ...
by dakosimo
Tue Aug 11, 2020 5:44 am
 
Forum: mod_harbour
Topic: SSE example
Replies: 19
Views: 4956

Re: Quien me ayuda...Adquirir datos de respuesta de una web

What is the purpose of these lines?
softruz wrote: while upper(alltrim(cTextoHTML))==alltrim(upper(oIE:Document:body:innerHTML()))
SysRefresh()
end while
return


I'd add oIE:quit() after cTextoHTML:=oIE:Document:body:innerHTML() to free memory and avoid leaving hidden IE instances.
by ADutheil
Sat Apr 01, 2017 8:39 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Quien me ayuda...Adquirir datos de respuesta de una web
Replies: 11
Views: 2523

Re: Quien me ayuda...Adquirir datos de respuesta de una web

... do While oIE:busy SysRefresh() enddo cTextoHTML:=oIE:Document:body:innerHTML() while upper(alltrim(cTextoHTML))==alltrim(upper(oIE:Document:body:innerHTML())) SysRefresh() end while cTextoHTML:=oIE:Document:body:innerHTML() ...
by softruz
Wed Mar 29, 2017 7:30 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: Quien me ayuda...Adquirir datos de respuesta de una web
Replies: 11
Views: 2523

Re: LEER VARIAS COLUMNAS DE UNA TABLA HTML

... ACTIVEX oActiveX ID 10 OF oDlg PROGID "Shell.Explorer" REDEFINE BUTTON ID 110 OF oDlg ACTION (VeoAnses(oActiveX:Document:Body:InnerHtml), oDlg:end() ) ACTIVATE DIALOG oDlg CENTERED ON INIT oActiveX:Do( "Navigate2", "http://servicioswww.anses.gov.ar/censite/" ...
by postinelli
Tue Aug 18, 2015 8:17 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: LEER VARIAS COLUMNAS DE UNA TABLA HTML
Replies: 22
Views: 9440
Next

Return to advanced search