Reload tabstrip with contentUrl data object

0 Answers 51 Views
TabStrip
Erka
Top achievements
Rank 1
Erka asked on 18 May 2022, 02:05 PM
Hi,

I'm trying to reload tabstrip tab when i use POST variable like that:


$("#tabstrip").kendoTabStrip({
        animation: { open: { effects: "fadeIn"} },
        contentUrls: [
                     './point_singulier/ajax/photos.php',
                     './point_singulier/ajax/plans.php',
                     './point_singulier/ajax/materiel.php',
                     {
                          url: './point_singulier/ajax/pilotage.php',
                          cache: true,
                          method: "POST",
                          data:{
                               longitude_pts:obj.LONGITUDE,
                               latitude_pts:obj.LATITUDE
                          }
                     }
        ],
        select: onSelect,
}).data('kendoTabStrip');
I reload with this line :

$('#tabstrip').data().kendoTabStrip.reload("li.k-state-active");

When i don't pass POST variable, this reload work, but with this exemple it doesn't work and i don't get any error,

If someone have an idea please ?


Martin
Telerik team
commented on 23 May 2022, 01:28 PM

Could you please confirm that you have allowed post requests in your php file, similar to this article?
Erka
Top achievements
Rank 1
commented on 26 May 2022, 11:20 PM

Hi Martin, i haven't allowed post request in my php file, all variables POST in my php file work, just reload not work :(

I tried adding this in my php file to test, no result ... :
if ( 'POST' != $_SERVER['REQUEST_METHOD'] ) {

header('Allow: POST');

header('HTTP/1.1 405 Method Not Allowed');

header('Content-Type: text/plain');

echo "only allow post";

exit;

}


Ianko
Telerik team
commented on 31 May 2022, 12:25 PM

I tested on my side and the AJAX requests sent from the TabStrip seem correct when using the reload method. I suggest you investigate the request via the network tab and see whether there is something wrong there. If you find that something wrong is utilized in the AJAX request please let us know. 

No answers yet. Maybe you can help?

Tags
TabStrip
Asked by
Erka
Top achievements
Rank 1
Share this question
or