Welcome Guest Search | Active Topics | Sign In | Register

EO.WebBrowser - Return a value back to JavaScript Options
crenzi
Posted: Tuesday, December 9, 2014 9:24:50 AM
Rank: Member
Groups: Member

Joined: 11/13/2014
Posts: 13
We need to return a value back to the page when we call a JavaScript extension method. In the documentation, I don't see any discussion about returning a value back. Can you let me know if this is possible? I see we can assign a value to the ReturnValue property of the JSExtInvokeArgs object. How is this used within JS on the page?
eo_support
Posted: Tuesday, December 9, 2014 9:59:35 AM
Rank: Administration
Groups: Administration

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

You would set this property from your JSExtInvoke handler:

http://www.essentialobjects.com/doc/6/eo.webbrowser.jsextinvokeargs.returnvalue.aspx

Thanks!
crenzi
Posted: Tuesday, December 9, 2014 10:14:02 AM
Rank: Member
Groups: Member

Joined: 11/13/2014
Posts: 13
Thanks. We do set that property, but the method always returns undefined on the JS side. How do we reference the value that is set for ReturnValue on the JS side?
eo_support
Posted: Tuesday, December 9, 2014 10:19:51 AM
Rank: Administration
Groups: Administration

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

It would be a bug if that's the case. Please check if you are running the latest build first (DLL version 3.0.92). If you are already running the latest build and the problem still occurs, then please isolate the problem into a test project and send the test project to us. You can find more instructions on how to send us test project here:

http://www.essentialobjects.com/forum/test_project.aspx

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.