| Issue 41: | endShowContent function faulty; executes before content is fully displayed | |
| 2 people starred this issue and may be notified of changes. | Back to list |
What steps will reproduce the problem? 1. Use endShowContent to execute arbitrary javascript functionality. What is the expected output? What do you see instead? I'm expecting a function to execute once the content is fully visible after being loaded via AJAX. Instead, it loads immediately after the link/button is clicked that calls the modal window. What version of the product are you using? On what operating system? nyroModal v1.2.8 OS X v10.5.4 Firefox 3.0 Please provide any additional information below. Essentially, I am attempting to have the script focus on the first text box once the page is loaded via AJAX, so I need a function to feed off of.
Jul 5, 2008
Actually, I just tested using the exact code you gave me inside my $(function() { });
call and it worked perfectly. My mistake.
The documentation makes it seem as if you can call this functionality up directly
from $.nyroModalManual({}). Thanks for your help!
Jul 7, 2008
I have to find time to review the doc. It's kind of difficult for me because, obviously, I know perfectly the plugin. I'm trying to be as accurate as possible, by describing everything in the doc (did you already see a plugin with a full time description of the callbacks ?) I'm also bad about reading example. I'll try to write some in the wiki here.
Status:
Fixed
|
I just checked, the endShowContent is called where it should be. I also test this code, on project page: $.fn.nyroModal.settings.endShowContent = function(elt, settings) { $('input:text:first', elt.content).focus(); }; And it works fine. Can you send a link of where do you have this problem?