Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error #1

Open
m1kr0b1 opened this issue Dec 6, 2013 · 2 comments
Open

Error #1

m1kr0b1 opened this issue Dec 6, 2013 · 2 comments

Comments

@m1kr0b1
Copy link

m1kr0b1 commented Dec 6, 2013

Getting an error:
'undefined' is not an object (Evaluating 'Ti.Filesystem.getFile') at createRemoteImageView.js (line 5).

Calling it as:
var remoteImage = Ti.UI.createRemoteImageView({
image: 'http://10.211.55.6:8000' + json.objects[0].tour[e.rowData.tourid].locations[e.index-2].photos[ph].photo,
// defaultImage: 'images/default.png', // default images are also handled
hires: true,
width: 275,
height: 95,
top: 0,
left: 0
});

The image is resolved as 'http://10.211.55.6:8000/media/uploads/2013/12/06/museum.jpg'

The URL is valid, i copy pasted to make sure it works.

@m1kr0b1
Copy link
Author

m1kr0b1 commented Dec 6, 2013

Apparently the culprit is Ti.Filesystem.applicationDataDirectory?

@m1kr0b1
Copy link
Author

m1kr0b1 commented Dec 7, 2013

It fixed it self, i dont know what i did...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant