@KorOct 22.2010 — #Is it so hard to make it clear from the beginning that you are using a JavaScript library/framework? Which one? Working with a library is not compulsory for a JavaScript coder. Working with [I]all[/I] (to be able to make the difference) is almost impossible.
So, if you want to improve your chances to get an answer, do specify, please, starting even with the title of the thread, [I]which library do you use[/I]. JQuery? Prototype? MooTools? Scriptaculous? Dojo? Other?
@KorOct 22.2010 — #Does he even know he is using a Framework?[/quote] if he does not, that means he knows nothing about javascript, thus we are wasting our time But it pretty much looks like jQuery since it is also the most popular one.[/QUOTE] No one is obliged to know that. What if it is a part of a custom library written as in JQuery style, but with other functionality? The problem with custom methods is that you will never know what is behind them, as long as you can not see the core source.
@scifirocketauthorOct 22.2010 — #it is jQuery. sorry for the confusion. i don't mean to waste your time here on this web development forum.
this code is constructed in this manner because elements with the "a.crosslink" class are generated after the DOM has loaded. In other words, the database script (in PHP) prints out results with the a.crosslink tag. Therefore, just adding the class to the result will not work.
To see what I am talking about, go to eataustineat.com/testfolder/ and type a 'D' in the search field. It will produce a list of results using ajax. Clicking one of those links will produce the recursion error.