Welcome Guest Search | Active Topics | Sign In | Register

InvokeFunction JQuery function Options
piess105
Posted: Saturday, May 2, 2015 9:34:23 AM
Rank: Newbie
Groups: Member

Joined: 4/27/2015
Posts: 6
Hi,

in some cases

Code: C#
Element.InvokeFunction("setAttribute",new object[]{"value","someValue"})

is not working, empty field still remains. I found only one solution to set the value anyway but I need to call JQuery script, in such a way:

Code: C#
webView.EvalScript("$('input').val('someValue').trigger('change');")

Do you have any idea how to call above script in InvokeFunction function ? I would be grateful.
eo_support
Posted: Monday, May 4, 2015 9:46:18 AM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,273
Hi,

You can't convert any EvalScript into InvokeFunction. InvokeFunction calls a JavaScript function, where EvalScript evaluate any JavaScript code. So there is no fixed way to convert one to another. If a specific JavaScript code is working or not working, you can try to debug them in a regular web browser to see if you can find out the root cause. We won't debug or advice you on JavaScript since it's a general Web programming topic.

Thanks!


You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.