Hi, I am creating a report, both the interface for the report parameters and the report itself is created by the exact same php file.
This are the first lines of the part of the file called when the report is being created:
<script type="text/javascript">alert("bla");</script>
Whenever I use this code to pull the report
new Ajax.Updater('reportarea','reportengines/<?=$configdata['filename']?>',
{
method: 'post',
parameters: {
action: 'executereport',
rep_projects: $('rep_projects').value,
rep_daterange: $('rep_daterange').value,
rep_daterangefws: $('rep_daterangefws').value,
rep_daterangemos: $('rep_daterangemos').value,
start_date: startdate,
end_date: enddate
}
}
)
everything works perfectly and all of my JS code is evaluated so as soon as the page opens, the alert comes up with "bla", but, if I use this:
new Ajax.Request( 'reportengines/<?=$configdata['filename']?>',
{
method: 'post',
parameters: {
action: 'executereport',
rep_projects: $('rep_projects').value,
rep_daterange: $('rep_daterange').value,
rep_daterangefws: $('rep_daterangefws').value,
rep_daterangemos: $('rep_daterangemos').value,
start_date: startdate,
end_date: enddate
},
onSuccess: function(transport ) {
$('reportarea').innerHTML = transport.responseText;
Effect.BlindUp('reportoptions', { duration: 1.0 });
Effect.BlindDown('reportarea', { duration: 1.0 });
}
}
)
not even the slightest amount of JS activity is shown. I might be using the Ajax.Request in a wrong fashion but I can't understand which one...
Is anybody familiarized with this?