<a href="#" class="ajax_popup">Modal</a>
vs
a href="#" ONMYEVENT="MYJAVASCRIPTFUNCTION;"Modal/a
//JS is filtered in this forum. ;)
Although, even this is technically poor style, since users with javascript disabled (like our poor friend the GoogleBot) will click on the link and get no response at all. What you want to be doing is:
// myview.php
<a id="click-me" href="http://example.com/mycontroller/myfunction">Modal</a>
// myscript.js
YAHOO.util.Event.addListener("click", "click-me", function(eventObject) {
eventObject.preventDefault();
// present some information with javascript
});
