Venkat Kumar

Venkat Kumar

  • NA
  • 503
  • 143k

Internal server error in ajax call in Iframe Iphone

Dec 3 2019 2:23 PM
I have an web application(Eg: http://xyz.com) that is working in both Android and Iphones. The same application I have placed in an Iframe in a new application(http://MainApplication.com).
 
When I hit http://MainApplication.com in android chrome it is working as expected without any issues. The same application is not working in Iphone(Chrome and Safari) and the error is "Internal Server Error while calling Ajax call".
 
But when I run the http://xyz.com application alone in iphone it is working fine. I strongly believe it is an issue with Iframe only but not able to figure out how to resolve it. Any help would be appreciated.
 
Index Page in MainApplication 
  1. <body>  
  2. <iframe src="http://xyz.com" style="width:100%;height:100%; border:none"></iframe>  
  3. </body>  
There is a Ajax call in my XYZ application
  1. $.ajax({  
  2.        url: "/Home/GetDetails",  
  3.        dataType: "html",  
  4.        type: 'GET',  
  5.        traditional: true,  
  6.        data: { latitude: _latitude, longitude: _longitude, radius: distance, attribute: selected },  
  7.        success: function (data) {  
  8. //Logic
  9. }
  10. })
 

Answers (1)