-
Notifications
You must be signed in to change notification settings - Fork 0
Making the Ajax Request
bapquad edited this page Feb 20, 2022
·
3 revisions
[Home] > Making the Ajax Request
This content we learn how to make an Ajax request in Element5JS API.
You can make an ajax request to a URL.
let xhr = request5.Connect("/variables.txt", ()=>{
let data = xhr.readVariables();
$("#wrapper").html(`
<p>Name: `+data.name+`<p>
<p>Episode: `+data.episode+`</p>
`);
});
And the variables.txt file contains the content like as following.
name=JamesBone&episode=1
Bapquad Games since 2015
- Get Started
- Working with DOM
- Constructing the StyleSheet
- Working with Sprite
- Working with Timeline
- Working with Scroller
- Working with Camera
- Working with Microphone
- Making the Ajax Request
- Opening a Websocket
- Working with Storage
- Checking User Agent
- Working with GPS
- Working with Router
- Playing the Stream