Re: [jQuery] Re: loading osx (eric martin) to show errors

2010-01-24 Thread Nathan Klatt
Works great for me: http://jsbin.com/ahowi/edit Make sure you set up the click handler before you execute the click. :) Nathan

[jQuery] Re: loading osx (eric martin) to show errors

2010-01-24 Thread infojava
just go on http://www.ericmmartin.com/projects/simplemodal-demos/ and download the very simple example : OSX Style Dialog and try it your self ! On 24 jan, 23:41, Nathan Klatt wrote: > On Sun, Jan 24, 2010 at 4:05 PM, infojava wrote: > > when we click on the a.osx it calls this function ! > > b

Re: [jQuery] Re: loading osx (eric martin) to show errors

2010-01-24 Thread Nathan Klatt
On Sun, Jan 24, 2010 at 4:05 PM, infojava wrote: > when we click on the a.osx it calls this function ! > but $("a.osx").click; doesn't work Sorry, dude - I'm at a loss. I assume the lack of parens after click (should be '$("a.osx").click();' not '$("a.osx").click;') is a typo? Could you point to

[jQuery] Re: loading osx (eric martin) to show errors

2010-01-24 Thread infojava
jQuery(function ($) { $("input.osx, a.osx").click(function (e) { e.preventDefault(); $("#osx-modal-content").modal({ overlayId: 'osx-overlay', containerId: 'osx-container', closeHTML: 'x

Re: [jQuery] Re: loading osx (eric martin) to show errors

2010-01-24 Thread Nathan Klatt
On 24 jan, 16:39, Nathan Klatt wrote: > $().ready(function() { $("#osx").click(); }); On Sun, Jan 24, 2010 at 2:29 PM, infojava wrote: > Thanks but it does not work !!! Okay, well what's the #osx element look like? What's its click handler? Is the php file being accessed directly or via AJAX?

[jQuery] Re: loading osx (eric martin) to show errors

2010-01-24 Thread infojava
Thanks but it does not work !!! On 24 jan, 16:39, Nathan Klatt wrote: > On Sun, Jan 24, 2010 at 8:22 AM, infojava wrote: > > i use a link (wich shows the demo) wich i should active if an error > > occures, but it doesn't work !!! > > Wrap it in a $().ready function? > > $().ready(function() {