Is there any way to know AJAX call completed?

Add-in Express™ Support Service
That's what is more important than anything else

Is there any way to know AJAX call completed?
 
ravinukala




Posts: 103
Joined: 2012-10-05
Hi,

I am showing HTML source tree on IE bar and highlighting element from document to source tree and vice-versa.

This is working fine except after AJAX call.

Is there any way to know AJAX call is completed? So that I can recreate the HTML source tree.

Thanks,
Posted 25 Jan, 2013 01:53:53 Top
Sergey Grischenko


Add-in Express team


Posts: 7233
Joined: 2004-07-05
Hi Ravi,

Please try to use jQuery in order to connect to AJAX events.
Posted 25 Jan, 2013 09:31:33 Top
ravinukala




Posts: 103
Joined: 2012-10-05
Hi,

I didn't get that.

How can I use jQuery to connect to AJAX events?

My Html source creation code is in C# how can I call c# method through Javascript/jQuery ?

Regards
Posted 29 Jan, 2013 08:13:48 Top
Sergey Grischenko


Add-in Express team


Posts: 7233
Joined: 2004-07-05
Hi Ravi,

You need to inject jQuery library into the HTML code of the active document in order to use it on the page.
You can learn more about jQuery here: http://api.jquery.com/category/ajax/
Also, please look at the following exampe:
http://www.add-in-express.com/files/projects_pub/access_bho_from_js.zip
It shows how you can call the C# code from javascript.
Posted 29 Jan, 2013 10:50:00 Top