Tuesday, July 14, 2015

Week 3 Day 2

Today was tough. The lack of dependency I thought that the app Friendzy had on jquery mobile was wrong. The app acts strange, and Liam, Ryan and I are now working to clear the dependencies. In addition, the changes Liam made worked fine through a browser but were just a white screen when put on the emulator. The way that I had tested the app, since there was no server I just commented out the jquery mobile dependencies in the index.html, but did not do so in the usersetup.html. Now that I do, I see some weird layout changes. Anyway, I followed Mr. Elkner's (my mentor) instructions on his blog and his experience getting the server to run the node js part of the program, and was able to do it. However, now that I have the server running on students.gctaa.net, I get an error message either from when the client tries to send a message to the server or when the server tries to send a message to the client. I get an error that says:



Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource

I then began to research this problem, and saw that you needed a permission systemXHR. However, when I looked at the manifest file the app already had this permission. I then looked at a series of webpages that did not exactly meet what I was thinking about, as the app uses the socket support library to communicate.
https://developer.mozilla.org/en-US/docs/Web/HTTP/Access_control_CORS
http://www.w3.org/wiki/CORS_Enabled
http://stackoverflow.com/questions/23053349/getting-cross-origin-block-request-cors-error-when-using-getjson-to-get-play
http://stackoverflow.com/questions/23053349/getting-cross-origin-block-request-cors-error-when-using-getjson-to-get-play

After discussing with Mr. Elkner that all of this work on the server side could probably be done reasonably easily by someone who knows what they are doing, I checked out the dictionary app for the career center. The app has an interface that you can click through but there does not seem to be persistance. I am excited to continue to work with this app!

No comments:

Post a Comment