OCCRA
Go to Post I will gladly be pied if that's something you guys want. I know I have people from the Clarkson FIRST dorm floor who will shell out PLENTY of cash for the chance to pie me in the face! - Libby K [more]
Home
Go Back   Chief Delphi > Technical > Programming > Python
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Reply
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 02-02-2018, 05:19 AM
RockybBalboa RockybBalboa is offline
Registered User
FRC #0001
 
Join Date: Feb 2018
Location: NYC
Posts: 1
RockybBalboa is an unknown quantity at this point
Getting 404 when calling function with AJAX?

Hello,

I am using AJAX by using the jQuery AJAX method tutorial given. However I am facing the problem as the Python code is not hitting by it. On the error callback I am getting 404 error.

My ajax code is:

$.ajax({
url: "file1.txt",
success: function (result, status, xhr) {
alert(result)
},
error: function (xhr, status, error) {
alert("Result: " + status + " " + error + " " + xhr.status + " " + xhr.statusText)
}
});

What can be the problem please help?

thank you
Reply With Quote
  #2   Spotlight this post!  
Unread 02-02-2018, 06:42 AM
Foster Foster is offline
Engineering Program Management
VRC #8081 (STEMRobotics)
Team Role: Mentor
 
Join Date: Jul 2007
Rookie Year: 2005
Location: Delaware
Posts: 1,564
Foster has a reputation beyond reputeFoster has a reputation beyond reputeFoster has a reputation beyond reputeFoster has a reputation beyond reputeFoster has a reputation beyond reputeFoster has a reputation beyond reputeFoster has a reputation beyond reputeFoster has a reputation beyond reputeFoster has a reputation beyond reputeFoster has a reputation beyond reputeFoster has a reputation beyond repute
Re: Getting 404 when calling function with AJAX?

Is there a file1.txt for it to find?
__________________
Foster - VEX Delaware - 17 teams in 2016/17 -> 62 teams 2017/18 -- Chief Roboteer STEMRobotics.org
2010 - Mentor of the Year - VEX Clean Sweep World Championship
2006-2017, over a decade of doing VEX, time really flies while having fun
Delmarva Robotics and VEXMen Team Site come see what we can do for you.
Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -5. The time now is 02:25 PM.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi