Welcome Guest, Not a member yet? Register   Sign In
need php ajax framework like this:
#1

[eluser]FutureKing[/eluser]
I work with jquery for making ajax requests. But for simple CURD app I have to write a lot of jquery javascript.

Is there any php framework that I can use like this:
Code:
<?php
$ajax= new $ajaxForm();
$ajax->Form(
?>

<form action="process.php" method="post">
<input type="text" id="txt_name"/>
<select id="dd_list"/>
    <option value="1"></option>
    <option value="2"></option>
</select>
&lt;input type="button" id="btn_submit" value="Submit" /&gt;
&lt;/form&gt;

<onSuccess>
//do something
</onSuccess>
<onFail>
//do something
</onFail>

&lt;?php ); ?&gt;
&lt;?php $ajax->submitButton('btn_submit'); ?&gt;
&lt;?php $ajax->postForm(); ?&gt;

In the above code the postForm method does the following:

--&gt; gets all the html between "(" and ")".

--&gt; finds ids of controls,form action,methods etc

--&gt; now generates jquery according to the ids,form action etc.

--&gt; does the ajax request to process.php.


I have written this code to show you what I want. Is there something like this available.

If not then if I want to write library for this what chapters of php should I read?


Messages In This Thread
need php ajax framework like this: - by El Forum - 06-16-2009, 04:02 PM
need php ajax framework like this: - by El Forum - 06-16-2009, 07:46 PM
need php ajax framework like this: - by El Forum - 06-16-2009, 08:15 PM
need php ajax framework like this: - by El Forum - 06-16-2009, 08:54 PM
need php ajax framework like this: - by El Forum - 06-16-2009, 09:23 PM
need php ajax framework like this: - by El Forum - 06-16-2009, 09:51 PM
need php ajax framework like this: - by El Forum - 06-16-2009, 09:52 PM



Theme © iAndrew 2016 - Forum software by © MyBB