Advertise Mobile SDKs Books Events Forum News Social Networking Support Us
Follow @iphonedevsdk on Twitter

Interface 2, Advanced iOS
Mockup & Code Gen
($9.99)

Make your own iPhone apps
and run them live!
(free)

Pic Frame Dynamo: Photo Editing
($0.99)

Abiliator
($1.99)

Want your application or service advertised on iPhone Dev SDK?

Go Back   iPhone Dev SDK Forum > iPhone SDK Development Forums > iPhone SDK Development

Reply
 
LinkBack Thread Tools Display Modes
Old 04-11-2011, 12:32 PM   #1 (permalink)
Registered Member
 
Join Date: Apr 2011
Posts: 1
vtegg is on a distinguished road
Default Image Array Multiple Views in Titanium

I'm VERY new to mobile apps and javascript and I'm using Titanium to edit a template.

I'm stuck on an img array code that will allow the preview image to be clicked and have the larger corresponding image appear. I can't seem to get the larger image to change in variable and if you think you can help me I'd greatly appreciate it!

Here is the link to show you what it looks like. I'd like the "lunch" image to go to the lunch menu, which is called images/menu/large/menu_shot1.png

2011-04-11_1302 - ViralTechnologies's library

Right now it only goes to the breakfast menu which is images/menu/large/menu_shot0.png

I'm also attaching the js code. Thank you!!!

Present code:

var images = [];
for (var i = 0; i < 2; i++) {
images[i] = 'images/menu/menu_shotSmall' + i + '.png';
}


// create coverflow view with images
var view = Titanium.UI.createCoverFlowView({
images: images,
bottom: 0
});
win.add(view);

// click listener - when image is clicked
view.addEventListener('click',function(e) {
// the window to place the image in
var imgWindow = Ti.UI.createWindow({
modal: true,
barColor: '#050505',
backgroundColor: '#050505'
});

// The new image view to place the selected image
var fullImage = Ti.UI.createWebView({
html: '<img src="images/menu/large/menu_shot0.png" />'
});
vtegg is offline   Reply With Quote
Reply

Bookmarks

Tags
array, titanium

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



» Advertisements
» Online Users: 368
11 members and 357 guests
dansparrow, dre, ilmman, LezB44, Nobbsy, Objective Zero, oztemel, samdanielblr, shagor012, sledzeppelin, thephotographer
Most users ever online was 1,387, 04-10-2012 at 04:21 AM.
» Stats
Members: 175,663
Threads: 94,119
Posts: 402,896
Top Poster: BrianSlick (7,990)
Welcome to our newest member, LezB44
Powered by vBadvanced CMPS v3.1.0

All times are GMT -5. The time now is 01:45 AM.
Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0