
Zeke Palmolive
Top achievements
Rank 1
Zeke Palmolive
asked on 16 Jul 2012, 09:27 PM
Has anyone ever experienced the following error:
'uid' is undefined
kendo.all.min.js, line 8 character 217810
I get this when browsing the site with IE8 and the latest FireFox. Everything works fine when using Chrome.
I'm using jquery.iecors for IE8 support and have set the Access-Control-Allow-Origin header to * on the Web API site that serves up the JSON data. The Web API JSON call is successful and is returning valid JSON data for all browsers.
I'm not too sure where to go from here, any suggestions are welcome.
'uid' is undefined
kendo.all.min.js, line 8 character 217810
I get this when browsing the site with IE8 and the latest FireFox. Everything works fine when using Chrome.
I'm using jquery.iecors for IE8 support and have set the Access-Control-Allow-Origin header to * on the Web API site that serves up the JSON data. The Web API JSON call is successful and is returning valid JSON data for all browsers.
I'm not too sure where to go from here, any suggestions are welcome.
7 Answers, 1 is accepted
0

Zeke Palmolive
Top achievements
Rank 1
answered on 19 Jul 2012, 06:21 PM
Still can't figure this one out.
Has anyone else had issues like this between browsers?
Has anyone else had issues like this between browsers?
0

Zeke Palmolive
Top achievements
Rank 1
answered on 20 Jul 2012, 05:54 PM
I've narrowed down the issue.
Using EF5, MVC4 and Web API using the vanilla JSONFormatter. JSON coming from the web api works under Chrome, but not FireFox or IE.
When I browse to the Web API URL through a web browser, copy and paste the JSON data into a javascript variable and assign that variable to the data property of a grid, it then works in FireFox/IE.
Any ideas?
Using EF5, MVC4 and Web API using the vanilla JSONFormatter. JSON coming from the web api works under Chrome, but not FireFox or IE.
When I browse to the Web API URL through a web browser, copy and paste the JSON data into a javascript variable and assign that variable to the data property of a grid, it then works in FireFox/IE.
Any ideas?
0

Chris Williams
Top achievements
Rank 1
answered on 22 Aug 2012, 04:59 PM
I have the exact same issue, and I've repro'd it exactly. I get the same error in IE 10.0; Chrome processes it successfully.
The only difference in my case is that I'm not using WebAPI; I'm using a standard controller approach as shown in the examples sample code for the MVC wrapper.
I'm also using MVC4. .Net 4 and EF5.
The only difference in my case is that I'm not using WebAPI; I'm using a standard controller approach as shown in the examples sample code for the MVC wrapper.
I'm also using MVC4. .Net 4 and EF5.
0

Chris
Top achievements
Rank 1
answered on 08 Nov 2012, 03:05 PM
I have the same issue. In Firefox the error is "ReferenceError: uid is not defined" but it works fine in Chrome. Doesn't work in IE9 either.
Using MVC 4 web api, EF, etc.
Any updates?
Using MVC 4 web api, EF, etc.
Any updates?
0

Zeke Palmolive
Top achievements
Rank 1
answered on 08 Nov 2012, 03:22 PM
In your datasource, set the dataType to JSON:
dataType: 'JSON'
dataType: 'JSON'
0

Chris
Top achievements
Rank 1
answered on 19 Nov 2012, 08:56 PM
ive tried:
dataType: "JSON"
dataType: "json"
type: "JSON"
type: "json"
No avail. If I copy the JSON data the comes out of the web service and then set it to a local datasource it works.
Were you able to get yours working?
dataType: "JSON"
dataType: "json"
type: "JSON"
type: "json"
No avail. If I copy the JSON data the comes out of the web service and then set it to a local datasource it works.
Were you able to get yours working?
0

Zachary
Top achievements
Rank 1
answered on 06 Nov 2013, 10:24 PM
What a doozy. In my case, I had a field called "data" in my datasource. Using Web API outputting JSON.
nicolaken
commented on 14 Mar 2023, 10:21 AM
Top achievements
Rank 1
I had a same problem. I called a field "data" and this caused the crash in kendo data-uid