Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
LabelsTower
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
MaitresNageurs
README
LabelsTower
Commits
0773cf36
Commit
0773cf36
authored
6 years ago
by
Deleted User
Browse files
Options
Downloads
Patches
Plain Diff
Supression du chemin complet dans l'url des requêtes ajax.
parent
c7a70a20
No related branches found
No related tags found
1 merge request
!27
Supression du chemin complet dans l'url des requêtes ajax.
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
app/static/ajax.js
+2
-2
2 additions, 2 deletions
app/static/ajax.js
with
2 additions
and
2 deletions
app/static/ajax.js
+
2
−
2
View file @
0773cf36
...
...
@@ -7,7 +7,7 @@ function request_ajax(address) {
* Send request with GET.
*/
var
xhr
=
new
XMLHttpRequest
();
xhr
.
open
(
"
GET
"
,
"
http://127.0.0.1:5000/
get_datas/
"
+
address
,
false
);
xhr
.
open
(
"
GET
"
,
"
get_datas/
"
+
address
,
false
);
xhr
.
send
();
return
(
xhr
.
responseText
);
};
...
...
@@ -17,7 +17,7 @@ function request_ajax_post(address, data) {
* Send request by POST.
*/
var
req
=
new
XMLHttpRequest
();
req
.
open
(
'
POST
'
,
'
http://127.0.0.1:5000/
get_datas/
'
+
address
,
false
);
req
.
open
(
'
POST
'
,
"
get_datas/
"
+
address
,
false
);
req
.
setRequestHeader
(
'
Content-Type
'
,
'
application/x-www-form-urlencoded
'
);
req
.
send
(
"
data=
"
+
data
);
return
(
req
.
responseText
);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment