Search found 58 matches: getelementbyid

Return to advanced search

Re: Convert a print to Rtf or doc

... WEBVIEW. I create the report - 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);  ...
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: 3467

Re: TWebView y Javascript

... window.contenido_p12 = [oReq.response]; console.log(window.contenido_p12) } // alert( oReq.status ); // alert( oReq.response ); } document.getElementById('btn-test').addEventListener('click', test); </script> </head></body> ENDTEXT return cHtml Al parecer esta funcion ...
by EASYSOFT
Sun Jul 16, 2023 8:06 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: TWebView y Javascript
Replies: 6
Views: 433

Gráficos de Google desde una aplicación FWH

... = { title: 'Company Performance', curveType: 'function', legend: { position: 'bottom' } }; var chart = new google.visualization.LineChart(document.getElementById('curve_chart')); chart.draw(data, options); } </script> </head> <body> <div id="curve_chart" style="width: ...
by TOTOVIOTTI
Mon Jun 26, 2023 12:27 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: Gráficos de Google desde una aplicación FWH
Replies: 7
Views: 578

Re: SSE example

... server. Best regards, Otto myInterval = setInterval(LoadItems, 3000); function LoadItems() { let recipients = { "recipient1": document.getElementById("nav_recip1").checked, "miterledigt": document.getElementById("nav_miterledigt").checked, }; fetch("chat.prg?items=" ...
by Otto
Thu May 25, 2023 12:18 pm
 
Forum: mod_harbour
Topic: SSE example
Replies: 19
Views: 4930

Re: Questions about WebView

Dear Yuri,

You can execute any javascript code from your FWH app, so you can use:

oWebView:Eval( "getElementById('auto_cdi').click()" )

or

oWebView:Eval( "document.getElementById('auto_cdi').click()" )

That string is javascript code to be executed by webview
by Antonio Linares
Fri Nov 25, 2022 9:57 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: Questions about WebView
Replies: 26
Views: 1616

Re: Questions about WebView

... if valtype(oDk)="U".or.oDk:ReadyState!="complete" WaitMessage() SysRefresh() else lOk:=.T. exit endif enddo if lOk itm:=oDk:getElementById('auto_cdi') itm:Click() endif
by Natter
Fri Nov 25, 2022 9:46 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: Questions about WebView
Replies: 26
Views: 1616

Re: Harbour Writer

... which function or element is selected from the optionlist the elements are shown and labeled again. .style.display = "block"; document.getElementById("col2").innerText = 'row 1'; The Copy button calls a function and depending on the selected option the source code is displayed ...
by Otto
Wed Sep 07, 2022 6:26 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Harbour Writer
Replies: 14
Views: 1080

Re: Harbour Writer

... which function or element is selected from the optionlist the elements are shown and labeled again. .style.display = "block"; document.getElementById("col2").innerText = 'row 1'; The Copy button calls a function and depending on the selected option the source code is displayed ...
by Otto
Wed Sep 07, 2022 6:26 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: Harbour Writer
Replies: 2
Views: 261

Reports with webview2

... With webview2 you have full javascript power. Here is my code for the print button. You see that the button is deleted during printing. document.getElementById("fixedbutton").style.display = 'none' Best regards, Otto   <style>            #fixedbutton {                position: ...
by Otto
Sat Aug 20, 2022 9:06 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: Reports with webview2
Replies: 1
Views: 259

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: 1538

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: 1538

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

The strange thing is that this code:

oWebView:Eval('SendToFWH( document.getElementById("example") )' )

returns "null"

why ? :-)
by Antonio Linares
Mon Jul 04, 2022 10:34 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Help about TWebView class. reading something from website.
Replies: 33
Views: 1538

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: 1538

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

Please try this:

document.getElementById('dosya_listesi_result' ).constructor.name

Lets know what class of object it is
by Antonio Linares
Mon Jul 04, 2022 9:43 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Help about TWebView class. reading something from website.
Replies: 33
Views: 1538

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

Antonio Linares wrote:Please try this from the inspector console:

typeof document.getElementById('dosya_listesi_result' )

or

console.log( typeof document.getElementById( 'dosya_listesi_result' ) )


Hi Antonio,

The result is 'object'
by Horizon
Mon Jul 04, 2022 6:01 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Help about TWebView class. reading something from website.
Replies: 33
Views: 1538
Next

Return to advanced search