****HTML****

<form action="#" method="post" onsubmit="loadInfo(this);return false"
id="form_data">
    Name: <input type="text" name="name" />
        Last Name: <input type="text" name="lastname" />
        <input type="submit" value="submit" />
  </form>
  <div id="data"></div>

****JAVASCRIPT****
function loadInfo(form){
   new Ajax.Request('ajax.php', {
   parameters: $("form_data").serialize(),
   onSuccess: function(req){
        $("data").update(req.responseText);
   }
    });
}

On Nov 28, 2007 12:39 PM, geeffland <[EMAIL PROTECTED]> wrote:

>
> New to the group, and not sure I have the searching figured out yet so
> let me know if this is already posted somewhere.
>
> I am writing a Joomla Component that is loading phpbb (a forum) inside
> a div of Joomla to avoid using IFRAMES.  So in short I am using the
> Ajax.Request call to read in the HTML then I parse thru and using gsub
> change the default forum links so they pass thru this component
>
> I have run into a case where I need one php file to receive the post
> variables then pass them along to an Ajax.Request call which will in
> turn call the forum's desired php file to be included in a DIV...
>
> Short of decoding the $_POST variables and re-serializing them
> manually what is the best way to directly pass the then current POST
> variables directly to the Ajax.Request object call?  Is there a way to
> pass the $_POST array directly?
>
> Thanks,
> Greg
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Spinoffs" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-spinoffs?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to