Hi All,

This is not cake-specific, though I will be building it into a 
cake-based site.  I have an "order form", that I want to "AJAXIFY" (?)...

The first part, fetching the customer info from the tables when they 
type in their email address, is working fine.  But I'm kinda stumped on 
exactly how to do the next part.  So, I thought I'd ask for ideas...

The order form should have a variable number of "line items".  So, there 
should be a way to "add a line item".  There are potentially 4 different 
"types" of line items, each of which will have some ajax-based database 
lookups (ie, they select the new line item of a given type, and it puts 
up some html, which might include a selection box.  They select 
something from the selection box, and then a "color" or "size" or some
other option field is filled and they can pick that, etc, etc).  I'm 
planning to trigger most of this stuff off onChange calls (I'm not using 
the AJAX helper).

The question is, it seems to me, that when a change is triggered, I'll 
replace the contents of a div with the new HTML.  But I really want to 
"append" to the div, not replace it.  Cause I don't want to remove the 
previous line item(s).  And I think I'm gonna have to somehow autonumber 
the various line item controls, so that each time I add a line, the 
selection box is sb_1, sb_2, etc. and the option field is op_1, op_2, etc.

DOES this make sense to anyone?  Is there a better way to do this?

I'm kinda stuck on how to make this work -- any suggestions would be 
most welcome.  IF it matters, I'm using the Rico AjaxEngine and 
generating XML (or possibly javascript objects) as the ajax part.

Thanks in advance for any suggestions!!!

-Scott

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" 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/cake-php
-~----------~----~----~----~------~----~------~--~---

Reply via email to