Results 1 to 4 of 4

Thread: [RESOLVED] submit a form without having to refresh?

  1. #1

    Thread Starter
    Fanatic Member
    Join Date
    Jun 2008
    Posts
    1,023

    Resolved [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.

  2. #2
    PowerPoster kfcSmitty's Avatar
    Join Date
    May 2005
    Posts
    2,248

    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.

  3. #3
    PowerPoster
    Join Date
    Sep 2003
    Location
    Edmonton, AB, Canada
    Posts
    2,629

    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.

  4. #4

    Thread Starter
    Fanatic Member
    Join Date
    Jun 2008
    Posts
    1,023

    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
  •  



Click Here to Expand Forum to Full Width