Jump to content

Bitmaptext and Ejecta, responseXML undefined


thibou
 Share

Recommended Posts

When using PIXI.Bitmaptext with Ejecta, there is a problem occurring in PIXI.BitmapFontLoader.prototype.onXMLLoaded:

 

this.ajaxRequest.responseXML seems to undefined. this.ajaxRequest.response contains the font xml file in textual format, but the responseXML is undefined. With Chrome/safari browsers, bitmaptext works fine. 

 

Any ideas why is this happening with Ejecta? 

 

Link to comment
Share on other sites

Same issue is with Windows Phone 8.

 

Here is my fix:

var responseXML = this.ajaxRequest.responseXML;if(!responseXML) {	var div = document.createElement('div');	div.innerHTML = this.ajaxRequest.responseText;	responseXML = div;}

After that, change every this.ajaxRequest.responseXML into responseXML

 

Try if that works for Ejecta too :)

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...