server redirects to a completely different url and gives the response
server redirects to a completely different url and gives the response
Hello everyone!
I want to write the server side on Google Apps Script, but I have a problem:
After processing parameters, the server redirects to a completely different url and gives the response.
For example, try to enter the query (in url):
[code]https://script.google.com/macros/s/AKfycbzANkdnoSSEdLlhPFXdaf8hLKCCapeo-MULmxf09AfrQjaTg7ob/exec?sEcho=2&iColumns=5&sColumns=&iDisplayStart=0&iDisplayLength=10&mDataProp_0=0&mDataProp_1=1&mDataProp_2=2&mDataProp_3=3&mDataProp_4=4&sSearch=&bRegex=false&sSearch_0=&bRegex_0=false&bSearchable_0=true&sSearch_1=&bRegex_1=false&bSearchable_1=true&sSearch_2=&bRegex_2=false&bSearchable_2=true&sSearch_3=&bRegex_3=false&bSearchable_3=true&sSearch_4=&bRegex_4=false&bSearchable_4=true&iSortCol_0=1&sSortDir_0=asc&iSortingCols=1&bSortable_0=true&bSortable_1=true&bSortable_2=true&bSortable_3=true&bSortable_4=true&_=1372973748610[/code]
And see that the answer comes in another url.
And in Chrome DevTools in Network panel I see that the answer comes already with the new address, but it does not handle datatables, and of course gives an error DataTables warning (table id = 'example'): Requested unknown parameter '0 'from the data source for row 0
I think that i need to use fnServer (how?)
Му example page: http://rudo.pro/dt/DataTables/examples/data_sources/server_side.html
Thanks in advance!
Sorry for my bad english! =)
I want to write the server side on Google Apps Script, but I have a problem:
After processing parameters, the server redirects to a completely different url and gives the response.
For example, try to enter the query (in url):
[code]https://script.google.com/macros/s/AKfycbzANkdnoSSEdLlhPFXdaf8hLKCCapeo-MULmxf09AfrQjaTg7ob/exec?sEcho=2&iColumns=5&sColumns=&iDisplayStart=0&iDisplayLength=10&mDataProp_0=0&mDataProp_1=1&mDataProp_2=2&mDataProp_3=3&mDataProp_4=4&sSearch=&bRegex=false&sSearch_0=&bRegex_0=false&bSearchable_0=true&sSearch_1=&bRegex_1=false&bSearchable_1=true&sSearch_2=&bRegex_2=false&bSearchable_2=true&sSearch_3=&bRegex_3=false&bSearchable_3=true&sSearch_4=&bRegex_4=false&bSearchable_4=true&iSortCol_0=1&sSortDir_0=asc&iSortingCols=1&bSortable_0=true&bSortable_1=true&bSortable_2=true&bSortable_3=true&bSortable_4=true&_=1372973748610[/code]
And see that the answer comes in another url.
And in Chrome DevTools in Network panel I see that the answer comes already with the new address, but it does not handle datatables, and of course gives an error DataTables warning (table id = 'example'): Requested unknown parameter '0 'from the data source for row 0
I think that i need to use fnServer (how?)
Му example page: http://rudo.pro/dt/DataTables/examples/data_sources/server_side.html
Thanks in advance!
Sorry for my bad english! =)
This discussion has been closed.