|
-
Mar 8th, 2010, 04:06 PM
#1
Thread Starter
Fanatic Member
[RESOLVED] submit a form without having to refresh?
well i'm trying to make a chat for my site and i want to know how i can submit a form (the message) without the page having to refresh, i don't know how i can explain this any more then this but i'm sure you guys know what i mean...
please ask if you don't really understand what i'm trying to do and i'll get more into details.
-
Mar 8th, 2010, 09:13 PM
#2
Re: submit a form without having to refresh?
I doubt this is the best way to do it, but the way I've accomplished this before (for multi file uploads and such in Domino) is to use a hidden iframe and set the target of the form to the iframe.
-
Mar 8th, 2010, 09:43 PM
#3
Re: submit a form without having to refresh?
without actually getting into code (just theory), I would have a form that submitted an ajax function that saved your chat user's messages to a database or whatever. when this form returned valid, you would then call another ajax function to update the chat and then reset the form. depending on how you set it up, this could all be done within one ajax call, too, I suppose.
-
Mar 9th, 2010, 09:26 AM
#4
Thread Starter
Fanatic Member
Re: submit a form without having to refresh?
ok thanks... something tells me i need to learn ajax xD
i'll give it a try and mark thread as resolved as i know the way to do it now.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|