Home Cooker Classes Others Rice
Classes  >  jsexecutor  >  GetData()
jsexecutor class : GetData() method

Description

Gets a string from the window.external object.

Syntax

jsexecutorInstance.GetData()

Arguments

None.

Return value

ClassDescription
stringData from JavaScript.

Sample code

1:

jsexecutor jse = new jsexecutor();

2:

string data = jse.GetData();

Notes

The GetData () method allows to receive string data written by JavaScript.

The JavaScript code to write string data is as follows.

window.external.setData('some data');

Links for reference

None.

Copyright © Rice All rights reserved.