Search found 6 matches
- Fri Nov 04, 2011 11:18 pm
- Forum: Javascript
- Topic: How to call a function in PHP class via AJAX
- Replies: 7
- Views: 5237
Re: How to call a function in PHP class via AJAX
Dear pickle, By starting "No", you have proposed a way to satisfy the requirement. :D This is closer to what Im doing right now. Its ok to have a structured coding segment in the file, but the script should be able to call any method in the class and and return the result via the AJAX resp...
- Fri Nov 04, 2011 6:18 am
- Forum: Javascript
- Topic: Add a column to a datagrid when user click on a button
- Replies: 2
- Views: 1358
Re: Add a column to a datagrid when user click on a button
Hi,
You may use a dynamic grid. When you generate the grid, maintain a variable for the number of columns. When you click the button, increase the variable value and regenerate the grid.
Sorry I dnt have facilities to post a sample code as Im in office
Hope you get what Im saying.
Regards.
You may use a dynamic grid. When you generate the grid, maintain a variable for the number of columns. When you click the button, increase the variable value and regenerate the grid.
Sorry I dnt have facilities to post a sample code as Im in office
Regards.
- Thu Nov 03, 2011 11:04 pm
- Forum: Javascript
- Topic: How to call a function in PHP class via AJAX
- Replies: 7
- Views: 5237
Re: How to call a function in PHP class via AJAX
Thanks a lot for participating this thread guys. Yes you both are correct. Let me explain some background before jump into more clarification on my problem domain. PHP started as a structured language. OOP was introduced in version 3 and became popular with version 5 (Guess Im correct?) When an AJAX...
- Thu Nov 03, 2011 1:47 am
- Forum: Javascript
- Topic: PHP in JQuery ???
- Replies: 3
- Views: 1224
Re: PHP in JQuery ???
As twinedev has mentioned, if you want to execute a php code and get a result set using JQuery, you may use AJAX. using AJAX with JQuery is easier than raw JS coding. You may update a part of the page with the data returned from the PHP, without reloading the whole page.
Regards.
Regards.
- Thu Nov 03, 2011 12:37 am
- Forum: Javascript
- Topic: How to call a function in PHP class via AJAX
- Replies: 7
- Views: 5237
Re: How to call a function in PHP class via AJAX
Remember that AJAX is simply going to call a PHP script on the server, which certainly can instantiate a class and call a method of that class, then return the data, which will be handled by the AJAX function. Thanks for the reply califdon. Yes what you have mentioned is the traditional way of doin...
- Tue Nov 01, 2011 9:31 am
- Forum: Javascript
- Topic: How to call a function in PHP class via AJAX
- Replies: 7
- Views: 5237
How to call a function in PHP class via AJAX
Hi all,
Can we call a function in a PHP class and get the result using AJAX? If can how?
Regards.
Can we call a function in a PHP class and get the result using AJAX? If can how?
Regards.