views:

56

answers:

1

Hello. I stumbled upon this add-on which "Ajaxifies" parts of its target website.

https://addons.mozilla.org/en-US/firefox/addon/51789

I have a similar need like this. I want only part of the webpage's DOM to update upon receiving click on a link, since the website has a rather unified page layout.

I have no experiences in writing FF add-ons but I did some basic Ajax and DOM before. So I am looking for programming tips on how to implement "Ajaxification" in a GreaseMonkey script, preferably. If it's not possible, making an add-on is also a sound choice which I'm willing to learn.

Thanks in advance!

+3  A: 

GM_xmlhttpRequest allows GreaseMonkey to do an XMLHttpRequest (to whereever). You can then load the results in the DOM as normal.

rampion
Thanks. This looks rather promising.
Dan7