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

2010-01-24 Thread infojava
Hi,

i use osx (of (eric martin)) to show error messages,

i use a link (wich shows the demo) wich i should active if an error
occures,
but it doesn't work !!!

?php if(isset($_GET['erreur']))
{ echo  simuler un click sur  osx;
?script type=text/javascript
var l = document.getElementById(osx);
l.click();

/script
?php
}
?


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

2010-01-24 Thread Nathan Klatt
On Sun, Jan 24, 2010 at 8:22 AM, infojava infojava2...@gmail.com 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() { $(#osx).click(); });