My favorites | Sign in
Project Home Downloads Issues
READ-ONLY: This project has been archived. For more information see this post.
Search
for
  Advanced search   Search tips   Subscriptions
Issue 83: nyromodal doesn't work with calls embedded in jquery loaded content
2 people starred this issue and may be notified of changes. Back to list
Status:  Fixed
Owner:  ----
Closed:  Sep 2008


 
Reported by resiste...@gmail.com, Sep 23, 2008
What steps will reproduce the problem?
1. use jQuery's load command to load content from a file (http://docs.jquery.com/Ajax/load)
2. click a normally working nyromodal enabled link
3. ... 

What is the expected output? What do you see instead?
A modal, nothing.

What version of the product are you using? On what operating system?
nyroModal 1.2.8, jQuery 1.2.6, OS X 10.5.5, Safari 3, FF 3, Opera 9.52.

Please provide any additional information below.

I attached a reduced test case, just unzip & open 1.html. On initial load clicking on the #3 link 
opens a modal with a copy of the page. If you then click 1 or 2 to have jquery alter the div 
contents then clicking on the #3 link again loads the page like it didn't have class="nyroModal".

test.zip
32.9 KB   Download
Sep 23, 2008
Project Member #1 nyro...@gmail.com
You're experiencing the exact same problem than  issue #82 :
https://code.google.com/p/nyromodal/issues/detail?id=82
You'll need to recall the link element to create the nyroModal behavior.

basically, you'll need to write:
$('#left_col').load(file, null, function() {
	$('.nyroModal', this).nyroModal();
});

(instead of $('#left_col').load(file);)
Status: Fixed
Labels: -Type-Defect Type-Other
Sep 23, 2008
#2 resiste...@gmail.com
Ah, didn't see that one, sorry. It's working great now.

If you're interested this also displays the opera height issue, but like I said earlier that one's not really your bug.


Powered by Google Project Hosting