.load() forcing POST

.load() forcing POST

Hi there

I'm working on a page with user accounts. Now, I want the following function in my page: A user logs in (via POST -> Ajax). If the credentials are wrong, a message appears and the blank login form. If the credentials are right, the whole page (or another page) will be loaded from new (by javascript) and user is logged in.

My idea is, do the thing with .load() because this is the only thing which executes <script> tags (from html with other text) when they comes back. The fact, that it is a sign-on form, I want to use POST (not GET). So, I have to forcr jQuery to send the data as POST. And here I'm hanging...

Any Ideas or help or workarounds? How is this made at other websites?

Thx for any help.

Ivo

btw: Using ajax() is not possible, because I don't know what is coming back (text or data) - Using .post() is not possible, because I need the code will be executed...