Am I using too much javascript / JQuery?

Am I using too much javascript / JQuery?

Hi,

I'm not sure what is causing the issues I'm experiencing, but we're currently building a very easy ticketing system for our clients into the main site.  Tickets are tied to customer accounts this way, so we don't want to use a third party tool anymore (Kayako has been promising their version 4 for ages, so we decided to stop waiting anyway...)

Okay.  On to the issue...

You can see what we did on http://flexin.be/site/en/SupportTicket/customerView/24.html?KEY=0651b7a5fd4c418eda481eb743e0c35b

For non-logged in users, a key will be provided to the user by email to access it.  Anyway: as you can see on that page, we have tabs which by default always load their content by ajax (based on the privileges, we have more than one tab, and we don't want to send all that data to the client, so ecah tab is loaded by an ajax call...  You will only see one tab as you are no staff...)

Once the tab is loaded (which goes fine), you will see the ticket details, and at the bottom right corner, we added a "reply" button which is supposed to give us a dialog which has the form which in turn, when submitted through ajax, will add a reply to the ticket.

I have one major issue with this and a nice question...

The big issue is that the addition of the dialog with the contained form is apparently causing this particular page some serious issues in terms of peformance.  In fact, on many occasions, firefox (or IE for that matter), will popup to ask if we want to kill the script, as if it is running in an infinite loop...

It then refers to http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.js:6233 as being the script no longer responding.  I don't really understand what the issue is.  We just bound a click event to the reply button which opens a dialog which when submitted performs an ajax call...

It must be said, we need to get rid of some old prototype code still, but this issue is giving me headaches.

Secondly - the question i have - how can I upon closing the dialog due to succesfull submission of the form, automatically reload the tabs content?  I don't want to use an id for the tabs as this is generic framework which I don't like breaking into, but when a response is added, it would only make sense that the ticket information is being refreshed to show the new reply list...

Again - thanks so much for all the effort of the team and the great help from all community members here!

---
http://www.flexin.be