Use jQuery.ajax() for HTTP requests

Authored by Sebastian_Berlin-WMSE on Apr 21 2017, 12:49 PM.

Description

Use jQuery.ajax() for HTTP requests

Modified requestTts() to use jQuery.ajax()
(http://api.jquery.com/jQuery.ajax/). Added some logic for handling
errors. Removed the requested property for utterances; the audio
element is used instead, to check if audio has been loaded.

Change-Id: Ifc76c8326cd276212562697b33672e3a12a3f46d

Details

Committed
Sebastian_Berlin-WMSEApr 21 2017, 12:49 PM
Parents
rEWISf79170e4140c: Don't create empty <text> elements
Branches
Unknown
Tags
Unknown
References
refs/changes/23/349423/1
ChangeId
Ifc76c8326cd276212562697b33672e3a12a3f46d