Hi Troy,

OK, I spent some time looking over jQuery in detail again.

Troy Schmidt wrote:
> You will call a function that will then run an AJAX call, get the
> result, and manipulate it.  Based on the result you will create
> childNodes no innerHTML or replacing.  Actual DOM methods.  It is
> probably programming level advanced, which is below expert.  Personally
> I would recommend using jQuery if you aren't too deep in Rico.  Easier
> to write custom code with jQuery.  The difference is like coding PHP in
> CakePHP versus doing it in raw PHP.

It seems that the "append" functions in jQuery may help me here.  In 
fact, the more I look at jQuery, the more I think I can see how this 
might work, taking advantage of the ability of jQuery to apply to ALL of 
the elements of a particular type, etc.  I'm gonna start playing with it 
some more.

> So, search for add table row script and you should find one that
> doesn't use innerHTML or cloneNode.
> 
> var tblBody = document.getElementById(tblId).tBodies[0];
>   var newNode = tblBody.rows[0].cloneNode(true);
>   tblBody.appendChild(newNode);
> 
> So, instead of using the cloneNode you would have a whole drawn out
> process to manually create the node based on your AJAX results.

I thought there were problems replacing contents in Tables in IE?
I'm hoping to do this in a table-less way, using divs if possible.
It just seems easier to me that way.

-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