the application simply is
dynamic page generate html code with some data within table cells by receiving parameters
i could get these pure data by jquery
but i find trouble sending it by ajax to another page(the basic page)
to display it in another format
You could try to serialize the table into a json and pass it to the next page where you could recreate the table based on the json. Just a quick idea
Related
http://demos.9lessons.info/EditDeletePagination/
how to add search ajax function with a texbox input that can let user to search specific data in this live edit and delete records with Jquery?
hope you know how to use jquery AJAX.
follow d steps
Call AJAX function that will get response from your server
On server side process the posted data to build the query and get data accordingly from you database
Return html rendered text
Replace the response in the div where you want to show the data
Pass PageIndex, PageSize & Other where conditions for search in AJAX and get response accordingly.
If you cannot return HTML rendered then return the json and use jquery template so that you can easily assing your json as binding source to your template
I have been trying to pull some information from the database and using them to generate highcharts and then show generated highcharts in certain divs on my page onchange event of the drop down. I cannot use ajax call as it doesnot support pulling highchart from another page (I already tried that). I want to do
Something like, I somehow get $_POST['dropdown'] value then use that value to get output from sql queries and then pass those values to highcharts javascripting function to generate highcharts WITHOUT PAGE LOADING.
Its very easy to do if the page gets loaded as i can generate the result in the sequence mentioned above on behalf of $_POST['dropdown'] value. Kindly Help.
Thanks,
I cannot use ajax call as it doesnot support pulling highchart from
another page (I already tried that)
Your only other option would be to load an iframe's src with JS. Why exactly can't you use Ajax?
I want to implement a sort (by name) function in my php web page. I know it's in simple Php. by submitting the page and take the request value and querying according to that value.
But I want to sort without red=refreshing the page. So I have studied about jquery and Ajax, in both of them there is no way to get the request value (i.e., sort=name). How I get that request value.
I am in serious situation. Please give me a way
If it's a table, you could use a plugin like datatables which does that (and much more by the way)
There IS a way to get URI query variables. I think you should use jQuery to do this as you will get the best results.
A query would look like:
$.get("ajaxtable.php", { sort: "name" },
function(data){
$('#tablecontainer').html(data);
}
);
What you need is a PHP script which generates just the table for you. Then you would attach the header links to javascript functions which make a query to your PHP script, and set the contents of the area the table belongs to the new table HTML which is sorted.
Alternatively, you could use javascript tables, whereby all information is loaded into the table and allows the client to sort using javascript. Look at http://datatables.net/ (jQuery datatables) for that.
There is a web page containing set of input fields. The data taken from the user go to 2 tables in the database. I use the view php file to get data from the user and call a function to gather data using jquery and then push those data to database using ajax function. How can I implement the validations?
I have a dynamic html table( rows are added dynamically using java script) and I want to pass whole table to a php script as an array.Is there a way to insert the table data to an array?
I have tried using phpTableExtractor but it dosen't extract dynamically added rows.
I don't see any other reliable solution but creating a HTML form along with the table and have the user click a submit button to save the table. Then you can read all content from $_POST and store it in a database.
Another solution would be to use AJAX requests to store the table content every time the focus changes or something like that. Will make your page dependent on JavaScript though.
What if you fill a JS array at the same time you create the table?
You will use the html just for display but behind you have the data you send to php.