I am gettng this exeption, and don't quite understand it
Seems like my sub should be:
Sub LoginSucess ( ..... )
But I just don't know what to put within the backets!!
B4X:
B4A.CallSub('LoginSucess',false,document.snd.name.value = 'cableguy', document.snd.password.value = 'xxxxxxxxx', document.forms['snd'].submit())
java.lang.Exception: Sub loginsucess signature does not match expected signature.
at anywheresoftware.b4a.BA.raiseEvent2(BA.java:107)
at anywheresoftware.b4a.BA.raiseEvent(BA.java:89)
at uk.co.martinpearman.b4a.webviewextras.WebViewExtras$1B4AJavascriptInterface.CallSub(WebViewExtras.java:84)
at android.webkit.BrowserFrame.stringByEvaluatingJavaScriptFromString(Native Method)
at android.webkit.BrowserFrame.stringByEvaluatingJavaScriptFromString(Native Method)
at android.webkit.BrowserFrame.loadUrl(BrowserFrame.java:246)
at android.webkit.WebViewCore.loadUrl(WebViewCore.java:1999)
at android.webkit.WebViewCore.access$1400(WebViewCore.java:53)
at android.webkit.WebViewCore$EventHub$1.handleMessage(WebViewCore.java:1123)
at android.os.Handler.dispatchMessage(Handler.java:99)
at anywheresoftware.b4a.Msgbox.waitForMessage(Msgbox.java:199)
at anywheresoftware.b4a.Msgbox.msgbox(Msgbox.java:127)
at anywheresoftware.b4a.BA.raiseEvent2(BA.java:156)
at anywheresoftware.b4a.BA.raiseEvent(BA.java:89)
at uk.co.martinpearman.b4a.webviewextras.WebViewExtras$1B4AJavascriptInterface.CallSub(WebViewExtras.java:84)
at android.webkit.BrowserFrame.stringByEvaluatingJavaScriptFromString(Native Method)
at android.webkit.BrowserFrame.stringByEvaluatingJavaScriptFromString(Native Method)
at android.webkit.BrowserFrame.loadUrl(BrowserFrame.java:246)
at android.webkit.WebViewCore.loadUrl(WebViewCore.java:1999)
at android.webkit.WebViewCore.access$1400(WebViewCore.java:53)
at android.webkit.WebViewCore$EventHub$1.handleMessage(WebViewCore.java:1123)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loop(Looper.java:130)
at android.webkit.WebViewCore$WebCoreThread.run(WebViewCore.java:674)
at java.lang.Thread.run(Thread.java:1019)
java.lang.Exception: Sub loginsucess signature does not match expected signature.
Seems like my sub should be:
Sub LoginSucess ( ..... )
But I just don't know what to put within the backets!!