TalkPHP

TalkPHP (http://www.talkphp.com/forums.php)
-   Absolute Beginners (http://www.talkphp.com/absolute-beginners/)
-   -   Input for AJAX type function (http://www.talkphp.com/absolute-beginners/4278-input-ajax-type-function.html)

Enfernikus 05-15-2009 12:47 AM

Input for AJAX type function
 
Current I employ a static class to allow for easier ajax computability here is an example

PHP Code:

Ajax::Preform(
    array(
'view''show''index'),
    
1
); 

or

PHP Code:

if( Ajax::Is() )
{
    
//do code here


In the first example, the array follows this

array( Object, Method, Additional Input, Additional Input, etc, etc, etc );

My question is, is the first method well done? or is it better to leave it like the second example?

Salathe 05-15-2009 02:36 PM

What exactly are these doing? Ambiguous arguments (in Ajax::Preform) and unclear method names (for both examples) don't really give a hint as to what they are expected to do.


All times are GMT. The time now is 10:18 AM.

Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0