Jquery Mobile Odata example not working - jquery-mobile

I have just started using jQuery Mobile with OData, and this is the first example. I just copied the HTML file given in the example and it worked perfectly on my laptop and on my phone. After a couple of days I checked the file on my laptop and it had stopped working.
This is the code I copied as-is and it worked:
http://code.google.com/p/share-some-code/source/browse/Odata_jqm.html
And now it does not work; I suspect the JSON stream is messed up.
Any ideas?

Related

MVC bootstrap carousel firefox issue

I'm using bootstrap carousel, and it works fine in chrome and explorer, but for some reason in firefox 35.0.1, when the image loads it only loads half of the image than the rest takes longer to load. Anyone have a problem with this in firefox? I'm surprised firefox is the problem here, since it is usually IE that I have issue with. The problem just started with this new version of firefox.
You are not the only one. We've seen this across multiple Windows boxes with FF 35.0.1. We've not tried this on a Mac, though. Can confirm this problem exists, and am really glad we're not the only ones who've noticed it. It's a consistent issue, regardless of caching or network speed.
Great news!: It's been fixed in Firefox 36! Try updating your browser. Here's the Bugzilla which should have addressed the problem: https://bugzilla.mozilla.org/show_bug.cgi?id=1125077

Google Analytics MIME type issue in Chrome using Rails 3

I'm adding GA to a Rails 3 app, which would normally be extremely simple, of course. I've added the GA JS snippet, which is rendering just fine. Everything works perfectly in Safari. In Chrome, however, it's giving me a console error: Resource interpreted as Script but transferred with MIME type text/html: "about:blank", pointing to the JS line that loads the ga.js file: s.parentNode.insertBefore(ga, s). Some things I've investigated:
I created a plan HTML page with the JS snippet, and it loads outside Rails in Chrome with no error.
The same HTML page, when put in /public, gives the error above.
The same HTML page, loaded in Safari from /public, doesn't give any error according to Firebug.
I tried the GA Debug extension in Chrome, but it remains silent, because ga.js isn't getting loaded.
Looking at the developer console in Chrome, I see a request for "http://www.google-analytics.com/ga.js" that seems to stay in "pending" state, and a redirect to "about:blank" seemingly initiated by http://www.google-analytics.com/ga.js, which makes very little sense.
So this seems to be related to Rails (since the snippet works in the HTML outside Rails), and doesn't affect Safari, but other than that I'm stumped. Hopefully I've just been staring at it wrong, and someone else will point out the obvious to me...? Anyone come across this before? Any ideas will be very much appreciated.
Came across this issue myself. "Disconnect" disabled share buttons on my site (g+, twitter and fb). Had to remove it to view the site properly.

jQuery Mobile v1.1.0 loader/progressbar do not show on android Internet browser

Hello I have problem with jQuery Mobile v1.1.0. When I try to use this function.
$.mobile.showPageLoadingMsg();
The progress indicator is not shown. The progress indicator(loader) is shown in regular browser, like FF, but in Android Internet browser, the PI is now shown. Do you have any Idea why the loader is hidden in android browser? I tested it on samsung nexus mobile phone, with the android version v2.3.4. I tried to call the function with parameters like this
$.mobile.showPageLoadingMsg("b", "test message test", false);
But this works only on my PC web browsers FF, Chrome IE etc.
did you try the examples in the docs?
On my android 2.3.3 the loader is shown but the loader image is not animated.
If the examples work for you, be sure that you replaced/removed all old JQM files with the 1.1.0 version (css, js, images) and that they are linked correctly in the document.
When the themeroller was deployed for v1.1.0 there was a small error with the loader images in the zipfile and the style sheet.
This was fixed within a few hours, but it might be that the version you downloaded tries to load ajax-loader.gif, while ajax-loader.png was in the zipfile.
Getting your theme again from the themeroller might fix it for you
Regards,
Casper
I had the same problem. The progress-dialog was not shown when doing an ajax call afterwards. I incapsulated everything except the showPageLoading-call in a timeout-function-call.
$.mobile.showPageLoadingMsg();
setTimeout(function() {
...[here your code goes]...
},200);
Worked for me although the animation only worked until the function has been executed (here: 200ms) but that doesn't really matter to me.

Running jquery in IE9 in an xml file in Local Intranet Zone

I have an xml file that renders a html using xslt. Nothing special here and it works in IE7 and IE8 just fine. However, in IE9 it does not render the jquery part of the file on "Local Intranet" zone
The file runs as http://localhost/xml/index.xml
Checked all the settings under custom in "Local Intranet" and all of them are enabled
Made sure that it runs on IE8 on the same browser using the developer tool.
Is there anything I am missing here?
I've had a similar problem and managed to get it to work in compatability mode.

Primefaces fileUpload working locally but not on server

I have developed an application which allows the user to upload a file.
I am using Primefaces 2.2RC2 / JSF 2.0 / Tomcat 6 / Firefox
Everything works great when I am running it through my local server. When I push it to my live server the entire application freezes when I attempt to upload. An authentication window appears which causes it to freeze.
The upload works fine in IE which seems ridiculous.
I am not very savy when it comes to server configuration and permissions but I am assuming that this issue is probably a permissions problem.
EDIT More information
I am not storing the file locally or anything, I am just using the FileUploadEvent and then getting the contents of the file and storing it to a database like so:
public void upload(FileUploadEvent event) {
byte[] file = event.getFile().getContents();
...
myDao.uploadFile(file);
}
There are no errors in the error logs so I can't even start to track down what is going on, it just locks up.
From doing some research it looks like this Flash bug is causing the problem.
https://bugs.adobe.com/jira/browse/FP-1044
Does anyone know a work around?
On a side note: Can anyone recommend another way of uploading files using Tomcat 6, JSF 2.0 ? Using primefaces was one of the only solutions that I have found for my configuration. Thank you.
#BalusC
I you are correct in that it is a Firefox issue. Anyway what is primefaces file upload is using the SWFupload flash component. For some reason the cred's are not POSTed when the SWFupload component posts back to the page. I have not found much of a work around other than to not use SWFupload. Since primefaces does not offer another option for fileUpload I will have to wait for Primefaces 3 I guess.

Resources