| Issue 285: | When nyroModalManual is triggered to loads DOM it only can open DOM once, second attempt and it fails. | |
| 2 people starred this issue and may be notified of changes. | Back to list |
|
What steps will reproduce the problem?
1 - setup
$('#inputbutton').click(function() {
$.nyroModalManual({
content: $('#any_div_here').contents()
});
});
<input type="button" id="inputbutton"/>
<div id="any_div_here">text and other things in here</div>
2. - usage
It will load the content first time but when you close and try again it
cannot load DOM. Have to refresh the page tin order to get it working again.
What is the expected output? What do you see instead?
- It should work everytime and not just first time. Is the input button
type the issue??
What version of the product are you using? On what operating system?
- 1.5.0 on IE7, not tested on FF
Jul 17, 2009
Try this code:
$('#inputbutton').click(function() {
$.nyroModalManual({
url: '#any_div_here'
});
});
With that, you'll use the nyroModal featutre to load DOM content and everything
should be ok.
Please let me know if it's working.
Jul 17, 2009
Yep that worked!! Thanks.
Jul 17, 2009
great.
Status:
WontFix
Jul 17, 2009
Would be helpful to others to add it to the examples. Thanks again. Great plugin.
Jul 17, 2009
yes. I created this week a wiki where I'm putting all question posted in the issue tracker. |
||||||||
Error seems to arise from this section of the code (line 512) ... } else if (currentSettings.content) { // Raw content not from a DOM element debug('Content: ' + currentSettings.type); setCurrentSettings({ type: 'manual' }); initModal(); modal.tmp.html($('<div/>').html(currentSettings.content).contents()); if (modal.tmp.html()) modal.dataReady = true; else loadingError(); showModal(); } else { // What should we show here? nothing happen } ...