image viewer in http

Getting into LiveCode for iOS? Ask your questions here.

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
ferrandjames
Posts: 20
Joined: Tue Mar 01, 2011 11:23 pm

image viewer in http

Post by ferrandjames » Wed Mar 09, 2011 11:22 am

Hello,
is it possible to make a imageviewer with a URL in http?

Cordially

James

Example :

Code: Select all

iPhonePickPhoto URL "url-http-iphonepicture", "320", " 480 "

Klaus
Posts: 14177
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Re: image viewer in http

Post by Klaus » Wed Mar 09, 2011 11:51 am

Hi James,

I am not sure if I understand what you want.
You mean an imageviewer for images that are on some server on the net?

That is pretty easy, since you can:
...
set the filename of img "name of your image here" to "http://www.yourserver.com/subfolderwith ... _image.jpg"
...
Is that what you mean?


Best

Klaus

ctflatt
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 243
Joined: Sun Dec 06, 2009 12:24 am
Contact:

Re: image viewer in http

Post by ctflatt » Wed Mar 09, 2011 11:52 am

James:

iPhonePickPhoto hooks into the iPhone's native photo picker, so I would imagine not.

You would have to construct a custom solution, like:

Take the user to a URL with a photo gallery for selection,
Let them choose a photo to download to device (which would go into their photos on the device) or email as an attachment to save to their Photos
Then implement the iPhonePickPhoto script

That's my take, but seems viable based on documentation.

HTH,

Todd

ferrandjames
Posts: 20
Joined: Tue Mar 01, 2011 11:23 pm

Re: image viewer in http

Post by ferrandjames » Wed Mar 09, 2011 12:29 pm

Thank you for your quick response, actually I'm trying to make an image viewer in http, but with many images, so I wonder if he should mix and livecode php ....
Because I can not find the solution so it can find the pictures in the web folders automatically, with a loop style, and when it reaches the end of the frame number (eg 10 frames), it has left the first image ...
I hope you was explicit ...
Thank you in advance ... J
ames

Klaus
Posts: 14177
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Re: image viewer in http

Post by Klaus » Wed Mar 09, 2011 4:49 pm

Hi James,

I am still not sure what you want?
ferrandjames wrote:... actually I'm trying to make an image viewer in http, but with many images, so I wonder if he should mix and livecode php ....
HTTP is an internet protocol.
Do you mean HTML, so the imageviewer will be displayed in a broswer? I don't think so :D
ferrandjames wrote:Because I can not find the solution so it can find the pictures in the web folders automatically, with a loop style...
So you want to do a "directory walking" on the server?
Keep in mind that this is compeletely different to the desktop equivalent, since you cannot:
...
set the directory to "http://www.server.com/subfolder_with_images/"
put the files into tFiles
...
on a webserver!

Most webserver software does NOT provide a file listing of a specific folder!
So yes, you will need PHP or something for this, but then you can only use this
on your server or at least on servers where you have access to!
ferrandjames wrote:... and when it reaches the end of the frame number (eg 10 frames), it has left the first image ...
??? Sorry, don't get this...


Best

Klaus

ctflatt
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 243
Joined: Sun Dec 06, 2009 12:24 am
Contact:

Re: image viewer in http

Post by ctflatt » Wed Mar 09, 2011 11:41 pm

I have to agree with Klaus.

I am totally lost now, James.

Sorry.

:Todd

ferrandjames
Posts: 20
Joined: Tue Mar 01, 2011 11:23 pm

Re: image viewer in http

Post by ferrandjames » Fri Mar 11, 2011 2:53 pm

Hello, thank you for your patience, I have an English medium and it is difficult to express what we want ...
Actually I would like to create an image viewer, with several images in the number varies, the mean changes over time and the images will have links to http ...

I hope to express, and once again excuse me ...

cordially

James

Klaus
Posts: 14177
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Re: image viewer in http

Post by Klaus » Sat Mar 12, 2011 12:39 pm

Hi James,

no need to apologize for not being an native english speaker!
As you may have noticed the people here in the forum are very patient :D

By the way, where are you from? France?
"Ferrand" really sounds french (if pronounced that way) :)

Unfortunately I still have no real idea what you are after...
OK, lets try it this way, just check what applies (yes/no) and/or add a little comment:

1. You want do display images that are located somewhere on the internet
YES 8)
2. Do you know where the images are located on the server (do you have the exact url)?
3. Do these images reside on YOUR server or on ANY server?
4. How do you want to manage the images in your stack:
a. everything automatically (like an automatic slideshow) or
b. the user can navigate
maybe with a list field, where the user can click on a line and the corresponding image gets desplayed
c. something else, please describe in a few words

OK that is enough for now, need your answers to carry on.

Don't worry, together we will get this to work! :D


Best from germany

Klaus

ferrandjames
Posts: 20
Joined: Tue Mar 01, 2011 11:23 pm

Re: image viewer in http

Post by ferrandjames » Sat Mar 19, 2011 2:39 pm

Code: Select all

By the way, where are you from? France?
"Ferrand" really sounds french (if pronounced that way) :)
Yes, I'm french .... we re not ....

Code: Select all

Unfortunately I still have no real idea what you are after...
OK, lets try it this way, just check what applies (yes/no) and/or add a little comment:
1. You want do display images that are located somewhere on the internet
YES
2. Do you know where the images are located on the server (do you have the exact url)?
http://www.ferrandjames.com/iphonephoto/image2.jpg and image3.jpg and image4.jpg
3. Do these images reside on YOUR server or on ANY server?
My Serveur
4. How do you want to manage the images in your stack:
I don't now...
a. everything automatically (like an automatic slideshow) or
b. the user can navigate
maybe with a list field, where the user can click on a line and the corresponding image gets desplayed
c. something else, please describe in a few words

Klaus
Posts: 14177
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Re: image viewer in http

Post by Klaus » Sat Mar 19, 2011 3:15 pm

Bonjour James,

OK, that does help :D

Please find attached a small sample stack with just one list field,
where the user can select one of your three images and and an empty image.

Everything is in the script of the listfield, I added some comments, check it out :)


Best

Klaus
Attachments
internet_images.rev.zip
Example stack
(1.27 KiB) Downloaded 331 times

ferrandjames
Posts: 20
Joined: Tue Mar 01, 2011 11:23 pm

Re: image viewer in http

Post by ferrandjames » Sat Mar 19, 2011 6:55 pm

frankly a big thank you Klaus, exactly, just that I want two buttons with an arrow left and a right arrow, and that's where I hold, because I do not how to do it ....

Klaus
Posts: 14177
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Re: image viewer in http

Post by Klaus » Sun Mar 20, 2011 2:14 pm

Hi James,

well, it is up to you, the developer, to find out the logics neccessary for this :)

OK, to get you started, check the attached stack, it is all in the card script
and well documented.


Best

Klaus
Attachments
internet_images2.rev.zip
Example stack
(2.29 KiB) Downloaded 330 times

ferrandjames
Posts: 20
Joined: Tue Mar 01, 2011 11:23 pm

Re: image viewer in http

Post by ferrandjames » Mon Mar 21, 2011 10:58 am

Klaus thank you a thousand times ... it is very rewarding for me ...
Cordially
James

Klaus
Posts: 14177
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Re: image viewer in http

Post by Klaus » Mon Mar 21, 2011 1:58 pm

Hi James,

you're welcome!

Please try to understand the logics behind my scripts, this is very essential.
This was a very trivial problem, concerning logics!


Best

Klaus

Post Reply