last day (14 days later) » 

3:28 PM
2
Q: Angular JS Error: No module detected

ImagifightI'm starting work on a members section of my website, using AngularJS. v0.1.0.php <!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title><?php echo ucfirst($_SERVER['PHP_AUTH_USER']); ?>'s dashboard</title> <script src="https://ajax.googleapis.com/ajax/libs/angula...

 
fail gives an error msg or code .. to tell y the ajax failed.. try .fail(console.log); or .fail(console.error);
Have a look at this fiddle
Have a look at this fiddle. there is a bit of problem in what you are trying to achieve.. though I have done it by some dirty hack you can see it from the code
 
for url: do I do url: 'user-data.json' or url: 'http://www.imagifight.in/usr/user-data.json'?
 
either of them will do.. if the user-data.json is in the same directory you can do url: 'user-data.json' .. both will do...
Hey I found another solution.. :) if you want it here is the js fiddle
 
None are working...
I'm well and thoroughly stumped
 
you can check they are retrieving data from a json provider
 
3:28 PM
I know. I tried
 
so there must be some problem with your json provider
 
maybe. user-data.json seems fine
 
can you provide me credentials tou your server?
 
imagifight:imagifight
 
dude your json has syntax error
-_-
{
"imagifight": {
"name": "Imagifight",
"userid": "Imagifight",
"age": 13,
"email": "romir.kulshrestha@gmail.com",
"status": "owner",
"icon": "icons/imagifight.png"
},
"vishnu": {
"name": "Vishnu",
"userid": "Vishnu",
"age": 13,
"email": "vpeddineni1@gmail.com",
"status": "member",
"icon": "icons/vishnu.png",
}
}
notice the comma at --------------> "icon": "icons/vishnu.png", <----
 
3:35 PM
Fixed it. Nothing happened
 
jsfiddle i hosted your resulting json at myjson.com..
dude your server has a password.. how can you access in from fiddle
here is the link to your myjson you can check the json.. :)
 
3:52 PM
@Imagifight you there?
 

last day (14 days later) »