Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- This is what I had in mind. I am using Updater at the moment so I had to rewrite this code for the example
- for( count=0; count < reports.length; count++){
- url="reports/"+reports[count]+".php";
- // load our reports. when each one is loaded we load the optional
- // javascript file for that report.
- new Ajax.Request( url, {
- parameters: { day: day, month: month, year: year},
- onCreate: function(transport){
- showLoading(reports[count])
- },
- onSuccess:function(transport){
- $(reports[count].update(transport.responseText);
- }
- });
- }
- reports.each(function(e){
- url = "reports/" + e + ".php"
- new Ajax.Request(url, {
- parameters: {....},
- onSuccess: function(transport)
- {
- $(e).update(transport.responseText)
- }.bind(e)
- })
- })
Add Comment
Please, Sign In to add comment