FredQ's Recent Forum Activity

  • Where can I check to see when this webstorage issue is resolved?

    The link below it says it has been resolved, but I'm guessing that doesn't apply to the end user exporting with IntelXDK?

    https://crosswalk-project.org/jira/browse/XWALK-3252

    I really want to update my app. For now can I use either Stable or Beta crosswalk build to bypass the webstorage bug?

  • briggybros thanks so much for your help. Really appreciate you taking the time to build an example capx.

  • You could use the nickname plugin to specify an object to create by name. I believe that's one way around it.

    https://www.scirra.com/forum/plugin-nickname-behavior-nickname_t74522

  • Thanks, Captain Obvious. My topic title is "Ajax Plugin - server side setup", so I'm well aware it's not a C2 specific issue.

    I was merely posting incase anyone else had encountered this issue and had a simple solution. Your response of posting a link to search engine results doesn't help anything. It's an immature dig suggesting I was being lazy by enquiring here. I wasn't looking for a quick fix, I was looking for help from someone experiencing an AJAX related issue within a C2 environment.

    I am more than capable of pasting my error message into the search engine. I did indeed do that, but as I have no knowledge of web programming/scripting etc it all means nothing.

    If this forum was full of smart arses like yourself it'd make for a very difficult place to ask for help.

    And in the spirit of what this forum should be about, I have the solution for anyone else who may encounter this problem. For me, I had to add the following to a file named ".htaccess"

    Header add Access-Control-Allow-Origin "*"

    Header add Access-Control-Allow-Headers "origin, x-requested-with, content-type"

    Header add Access-Control-Allow-Methods "PUT, GET, POST, DELETE, OPTIONS"

  • Please don't patronise me. I am more than capable of using a search engine. I haven't found a solution I have been able to implement.

    If anyone else has anything worthwhile to contribute I'd really appreciate any help.

  • Thanks! Here's what I got...

    XMLHttpRequest cannot load http://nsgames.nfshost.com/testalert.txt. No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://localhost:50000' is therefore not allowed access.

    How do I fix that?

  • The problem isn't within c2 though. I have it all working great, exactly as I need when the text file is hosted on Dropbox. So my events aren't the issue.

    It's only when I change the url to point to the same text file but hosted on my own web hosting that it doesn't retrieve the file. Which is what has lead me to ask, is there a specific setting required at the host side? Do I need to enable access somewhere server side?

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • I have a txt file hosted on Dropbox that I access using the AJAX plugin to display text within my game and everything is working great, exactly as planned.

    However, I decided to move the text file to a different host, NearlyFreeSpeech, and it is now located at http://nsgames.nfshost.com/testalert.txt (as an example). It is now suddenly inaccessible from this url using AJAX plugin. The file can be loaded when pasted into a browser but isn't being read by the AJAX plugin.

    Is there any reason for this? If the file is available online and everything is setup exactly the same as before when it was hosted on Dropbox is there any reason this should fail? Is there some kind of setting, server side, that needs tweaking?

  • Try cranberrygame's plugin

    ShareApp

    : share app via SNS (facebook, twitter, google+, whatsapp, line, SMS, email)

    [HTML5 website] [android, blackberry10, ios, windows8, wp8] [crosswalk] [phonegap cli] [ejecta]

    Share app via facebook: (only link is automatically pasted on android)

    only included in full package

    https://www.scirra.com/forum/plugin-cordova-related-c2-plugins-crosswalk_t109586

  • Can someone please confirm if the issue of webstorage being wiped in the new crosswalk has been resolved before I update my app?

  • briggybros or anyone else?! I'm still having difficulty implementing the second part of your response. Are you able to break it down for me a little more. I'd really appreciate the help.

  • briggybros thanks so much for your help! I really appreciate it. I understand the concept of what you're saying above but I'm not 100% sure how to implement it correctly, I've tried. I got ajax alert implemented no problem but am struggling with your latest reply.

    Are you please able to throw a couple events together in a capx for me demonstrating how it would work please, like you did for the first example? That'd be a huge help! Thanks again.

FredQ's avatar

FredQ

Member since 3 Oct, 2011

None one is following FredQ yet!

Trophy Case

  • 13-Year Club
  • Email Verified

Progress

14/44
How to earn trophies