Page 1 of 1
image viewer in http
Posted: Wed Mar 09, 2011 11:22 am
by ferrandjames
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 "
Re: image viewer in http
Posted: Wed Mar 09, 2011 11:51 am
by Klaus
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
Re: image viewer in http
Posted: Wed Mar 09, 2011 11:52 am
by ctflatt
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
Re: image viewer in http
Posted: Wed Mar 09, 2011 12:29 pm
by ferrandjames
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
Re: image viewer in http
Posted: Wed Mar 09, 2011 4:49 pm
by Klaus
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
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
Re: image viewer in http
Posted: Wed Mar 09, 2011 11:41 pm
by ctflatt
I have to agree with Klaus.
I am totally lost now, James.
Sorry.
:Todd
Re: image viewer in http
Posted: Fri Mar 11, 2011 2:53 pm
by ferrandjames
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
Re: image viewer in http
Posted: Sat Mar 12, 2011 12:39 pm
by Klaus
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
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
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!
Best from germany
Klaus
Re: image viewer in http
Posted: Sat Mar 19, 2011 2:39 pm
by ferrandjames
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
Re: image viewer in http
Posted: Sat Mar 19, 2011 3:15 pm
by Klaus
Bonjour James,
OK, that does help
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
Re: image viewer in http
Posted: Sat Mar 19, 2011 6:55 pm
by ferrandjames
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 ....
Re: image viewer in http
Posted: Sun Mar 20, 2011 2:14 pm
by Klaus
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
Re: image viewer in http
Posted: Mon Mar 21, 2011 10:58 am
by ferrandjames
Klaus thank you a thousand times ... it is very rewarding for me ...
Cordially
James
Re: image viewer in http
Posted: Mon Mar 21, 2011 1:58 pm
by Klaus
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