I am working on my first plugin called Filmstrip and I can't seem to debug why when you call the plugin, it doesn't always instantiate, therefore rending nothing. As best practice, what should I be doing to ensure that when my plugin is called, all the info that it needs is available and/or always works?
- should i create a timer to ensure it has what it needs? - should i include a preloader?
i have my code in an iframe and i want it to trigger/init an <a> link from the parent. is that posible? my first attempt was $(document).parent.("#abc").trigger("click"); but since I don't have access to the parent window, i can't set up a click event.
is there a way to accomplish this? in the parent, when this button is clicked, it opens a lightbox with a login form. if i call the same url, it opens the form inside the iframe. i am hoping to trigger the one from the parent so it can open the lightbox.
But when there are multiple classes, it only deletes the first element in its query. As a successful test, I appended some CSS to ensure the query selected all classes and added a border to each element. So why does remove() not work? Is it a bug or is my query missing something?