AHAH/AJAX does do fine with a complete form. You can process a part of a form, the whole form, or even do HTML replacement on something outside the form. I'm still not sure it's what you want, of course.<br><br>The Examples module (<a href="http://drupal.org/project/examples">http://drupal.org/project/examples</a>) now has both D6 and D7 versions of the AHAH example.<br>
<br>There is a D6 AHAH tutorial at <a href="http://randyfay.com/ahah">http://randyfay.com/ahah</a>.<br><br>-Randy<br><br><div class="gmail_quote">On Fri, Oct 30, 2009 at 8:39 AM, Josh Miller <span dir="ltr"><<a href="mailto:JoshM@haanmc.com">JoshM@haanmc.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div link="blue" vlink="purple" lang="EN-US">
<div>
<p class="MsoNormal">I'm trying to figure out how best to make the following
happen, any pointers/documentation/example modules would be awesome:</p>
<p class="MsoNormal"> </p>
<p class="MsoNormal">1) Click a button on the webpage</p>
<p class="MsoNormal">2) Jquery fires off a request for a unique form that is not
a node or menu or anything else</p>
<p class="MsoNormal">3) Somehow drupal understands the url that I use and fires
the appropriate function</p>
<p class="MsoNormal">4) mymodule_send_form() will invoke drupal_get_form()
(maybe?)</p>
<p class="MsoNormal">5) Jquery recieves the rendered form, adds stuff to it via
hidden inputs like x & y, $_Get['q'], $user->id, etc.</p>
<p class="MsoNormal">6) user can fill it out</p>
<p class="MsoNormal">7) Jquery sends data back to be saved/verified</p>
<p class="MsoNormal">8) Jquery recieves a final themed output of content</p>
<p class="MsoNormal">9) Repeat as many times as user wants on the same page by
clicking the button mentioned in #1<br>
<br>
</p>
<p class="MsoNormal">What has me very confused is that I need to send and receive
themed output, but without the entire site. Simply need chunks of final output
to be sent back and forth. After a discussion on #drupal the other night I
determined that AHAH is not exactly designed to do entire forms.<br>
<br>
If anyone is interested (I know from a tweet discussion that bangpound is) I've
got a working javascript framework for adding comments to entire pages. I'm
going to call this module "critique" and it's main use will be
turning it on and having clients add comments to pages (like you would for PDFs
or Word Documents). The problem is I can't decide how to architect the backend
as it will have to be very AJAX-y.<br>
<br>
</p>
<p class="MsoNormal">I think I know more about Drupal 7 (having spent the most
time in D7 issue que), but I'd like a working version in Drupal 6 first.</p>
<p class="MsoNormal"><br>
Josh</p>
<p class="MsoNormal"> </p>
<p class="MsoNormal"> </p>
<p class="MsoNormal">_____________________________________</p>
<p class="MsoNormal"><b>Josh Miller</b></p>
<p class="MsoNormal">Web / Technology Director</p>
<p class="MsoNormal"> </p>
<p class="MsoNormal"><span style="font-size: 9pt;">Haan Marketing +
Communications</span></p>
<p class="MsoNormal"><span style="font-size: 9pt;"><a href="http://www.haanmc.com/" target="_blank">http://www.haanmc.com/</a></span></p>
<p class="MsoNormal"><span style="font-size: 9pt;">123 N. 8th Street, Lafayette,
IN 47902-0350</span></p>
<p class="MsoNormal"><span style="font-size: 9pt;"> </span></p>
<p class="MsoNormal"><span style="font-size: 9pt;">T. 765.423.5470</span></p>
<p class="MsoNormal"><span style="font-size: 9pt;">F. 765-742-2881</span></p>
<p class="MsoNormal"> </p>
</div>
</div>
</blockquote></div><br><br clear="all"><br>-- <br>Randy Fay<br>Drupal Development, troubleshooting, and debugging<br><a href="mailto:randy@randyfay.com">randy@randyfay.com</a><br>+1 970.462.7450<br><br>