Issue 82: nyro not working via ajax generated content
Status:  Fixed
Owner: ----
Closed:  Sep 2008
Reported by kneid...@gmail.com, Sep 21, 2008
What steps will reproduce the problem?
1. url: http://prog.tapnack.com/directory/ the top 10 lost is listed. 
click on the links to launch nyromodal windows.
2. but, click on the green arrow submit buttom above to generate new 
content instead of the top 10. 
3. the new links generated dont launch nyromodal anymore.

I have tried class="nyroModal" rel="forceLoad" on the new links and it 
doesnt work. i have also tried adding <head> tags and made sure that the 
scripts are in the body and still no go.  
The ajax content file is at: 
http://prog.tapnack.com/directory/ajax_results.asp 


any ideas?

thanks!

 
Sep 21, 2008
Project Member #1 nyro...@gmail.com
Once your content is loaded and written in the HTML page, you have to remake a
nyroModal on your new content.
As far as I saw, you're writting the content in #IndexResults.
So, you simply need to do:
$('#IndexResults a.nyroModal').nyroModal();

And it will work.
Status: Fixed
Labels: -Type-Defect Type-Other
Sep 21, 2008
#2 kneid...@gmail.com
thanks for the quik reply!

where should this new line go?
in the ajax page - or on my original page?

thanks!
Sep 21, 2008
Project Member #3 nyro...@gmail.com
just after : document.getElementById(destination).innerHTML = oRequest.responseText;
Sep 21, 2008
#4 kneid...@gmail.com
excellent, works great
i have removed all the stuff from the ajax page

thanks again for the quick responses!