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 41: endShowContent function faulty; executes before content is fully displayed
2 people starred this issue and may be notified of changes. Back to list
Status:  Fixed
Owner:  ----
Closed:  Jul 2008


 
Reported by scottmwe...@gmail.com, Jul 5, 2008
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
Project Member #1 nyro...@gmail.com
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?
Jul 5, 2008
#2 scottmwe...@gmail.com
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
Project Member #3 nyro...@gmail.com
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

Powered by Google Project Hosting