mardi 12 juillet 2016

Java Script is not loaded in my webview android

I want to load a link in my web view in android. my link contains the code below but in Huawei phones and androids below 4.2 it can not be shown and the error is:

web page is not available. the web page at 'https://bpm.shaparak.ir/pgwchannel/startpay.mellat' might be temprorarily down or it may have moved permanantly to a newaddress

here is my code:

ScriptManager.RegisterClientScriptBlock(UpdatePanel1, GetType(UpdatePanel), "WindowManager", "var a = document.createElement('form'); a.setAttribute('method', 'POST'); a.setAttribute('action', 'https://bpm.shaparak.ir/pgwchannel/startpay.mellat'); a.setAttribute('target', '_self'); var b = document.createElement('input'); b.setAttribute('name', 'RefId'); b.setAttribute('value', '" + resultArray(1) + "'); a.appendChild(b); document.body.appendChild(a); a.submit(); document.body.removeChild(a);", True)

Aucun commentaire:

Enregistrer un commentaire