Re: Embedding forum using AJAX
Posted by
Hugo <Nabble> on
Nov 07, 2008; 8:28pm
URL: https://support.nabble.com/Embedding-forum-using-AJAX-tp1467666p1471361.html
As far as I can see, all examples in
http://n2.nabble.com/help/Answer.jtp?id=36 and the go-mono web site use normal HTML (not Ajax) to load the embedded forum. You are the first user trying to load it by Ajax.
Note that the embedding javascript is composed by a link and a script tag. I see that your Ajax code supports a ".js" file. So you can create a js file that loads the forum using javascript. Example:
// First create a link
var link = document.createElement("a");
link.setAttribute("id", "nabblelink");
link.setAttribute("href", "http://n2.nabble.com/The-Democracy-Monkey-Discussion-f1464914.html");
// Then we create the script tag
var scr = document.createElement("script");
scr.setAttribute("type","text/javascript");
scr.setAttribute("src", "http://n2.nabble.com/embed/f1464914");
Please let me know if this solution works.
Regards,
Hugo Teixeira
Nabble.com