Hy guys!
I tried to call a jquery event on my browser with executeBrowserJavascript() command, but exatly, nothing happened
This is, how I tried:
executeBrowserJavascript(bboxweb, "$().trigger('onEditBoxCall',['editbox','password']);" )
<script src="js/jquery-3.1.1.min.js"></script>
<script>
$(document).ready(function(){
var eventName ="";
var text = "";
$(this).on("onEditBoxGetValue",function()
{
text = $("#box").val();
mta.triggerEvent("onEditBoxValue"+eventName,text);
});
onEditBoxCall = ,function(event,name,type)
{
eventName = name;
$('#box').attr('type',''+type+'');
}
});
</script>
I tried to write kind of a guieditbox script, where I can declare in Lua, what type of editbox I want to call, and after get this value.
Hope, you guys can help me.