Hi
thanks, but I don't know how to implement it.
I saw jQuery examples but they work with JavaScript. I have some variable from external software (like VB).
I meant to go to other direction, like this:
when user click on button, JavaScript function is fired and it calls some hidden webpage (page2).
There my external application start to fill the variable (some big string).
Now I meant not to go back to JavaScript, but instead, I meant to run the code form page2 and that code should be executed on page1.
When my variable is filled, I need to run something like this (from page2):
var rows = [];
myFilledVariable;
$('#tt').datagrid('loadData', rows);
and myFilledVariable contains something like this:
rows.push({{id: 'aaa',value: 'val1'});
rows.push({{id: 'bbb',value: 'val2'});
rows.push({{id: 'ccc',value: 'val3'});
this code should be executed on page1 (#tt datagrid is located on page1).
on that way I must not wait on page1 until my variable is filled, instead I'm going to fill it and when it is finished, I display result on first page.
Is that possible, and if yes - how?
Thanks.
Update:
Is there any other way to call such code from page2 and which will load data on page1 (on #tt grid) :
$('#tt').datagrid('loadData', rows);
Thanks!