HTML button not working in Android WebView -


in android webview i'm displaying page html button works fine when makes request. button loads pdf document in browser when it's working correctly.

i need post request, however, because passing lot of data in query string, when making post request nothing happens @ (on smartphone) or downloaded file corrupted (on tablet). same button works fine when clicked on windows browser, whichever of or post used.

here's js code , html makes call:

function exportpdf() {  var name = document.getelementbyid('lblname').innerhtml;  var surname = document.getelementbyid('lblsurname').innerhtml;   var div = '<form id="myform" method="post" action="url"><input type="hidden" name="name" value="'+name+'"><input type="hidden" name="surname" value="'+surname+'"></form>';  jquery('#divexportpdf').append(div);  jquery('#myform').submit();  }  <button class="btnexport" onclick="exportpdf()">export pdf</button> <div id="divexportpdf"></div> 


Comments

Popular posts from this blog

android - Why am I getting the message 'Youractivity.java is not an activity subclass or alias' -

Making Empty C++ Project: General exception (Exception from HRESULT:0x80131500) Visual Studio Community 2015 -

How to fix java warning for "The value of the local variable is not used " -