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' -

python - How do I create a list index that loops through integers in another list -

c# - “System.Security.Cryptography.CryptographicException: Keyset does not exist” when reading private key from remote machine -