Faculty of Engineering and Mathematical Sciences 
Not logged in (login)

help3403


This forum is provided to promote discussion amongst students enrolled in Agile Web Development (CITS3403).
 
Options:
RSS cloud
Jump to:

AJAX Callback

2 of 419 articles shown, currently no other people reading this forum.
photo
From: ANONYMOUS
Date: Fri 17th Apr, 11:29am
Actions: 
        Login-to-reply

 

Hi,

Does using a promise based,
fetch(...)
.then(result)
.then(data)
.catch

good enough to meet project 1 specification,
AJAX with callbacks under "JavaScript code quality" category?

or

Do we need to include XMLHttpRequest()....and callback function?

Thanks,

AJAX Callback

photo
From: Timothy F.
Date: Fri 17th Apr, 12:02pm
Actions: 
        Login-to-reply

 

ANONYMOUS wrote:

> Hi,
> 
> Does using a promise based,
> fetch(...)
> .then(result)
> .then(data)
> .catch
> 
> good enough to meet project 1 specification,
> AJAX with callbacks under "JavaScript code quality" category?
> 
> or
> 
> Do we need to include XMLHttpRequest()....and callback function?
> 
> Thanks,

It's enough for the implementation, but the text should probably discuss how AJAX 
actually works, since fetch is just a wrapper that hides a lot of the workings.
This Page


Program written by: [email protected]
Feedback welcome
Last modified:  3:57pm Aug 06 2020