in

Quark Forums

QID how to upload an image in a frame using the webbrowser

Last post 08-03-2009 1:26 PM by Matthias Guenther (Quark). 4 replies.
Page 1 of 1 (5 items)
Sort Posts: Previous Next
  • 08-01-2009 7:50 AM

    QID how to upload an image in a frame using the webbrowser

    Hello, I was wondering of there is a possibility to make in QID an page withs contains an image frame so a user can upload using the browser there own image into that frame. Kind regards, Frans van Huizen
    With kind regards

    Frans van Huizen
    Digital Solutions
  • 08-02-2009 11:42 PM In reply to

    Re: QID how to upload an image in a frame using the webbrowser

    Hi, Frans,

    remember that a Flash (SWF) object is running locally within a browser, despite it being hosted on a server. So even if you could load data into the SWF object, as soon as you close the browser, all data is lost. Also, besidesome temporary space and memory the SWF doesn't have any place to store data locally (due to security concepts).

    Bottom line: What you need to do is upload the data (in your case pictures) to a hostign services, FTP server or any other web space.

    So if you want to initiate this out of your SWF created in QuarkXPress you need to investigate how this service uploads pictures to its space.So the upload part migth be difficult to achieve at all.

    Once you have the picture uploaded, it's easy to display it dynamically in the SWF out of QuarkXPress:

    Use action Object > Display Image (Object is the picture box, Image takes a URL)

    You can even scale pictures automatically, so that they always fit.

    As the URL can be calculated (random pictures from Flickr, an ID the user enters etc.) it's easy to display the rigth image.

    Enjoy!
    Matthias

    Matthias Günther
    Senior Product Manager
    Quark Software Inc.

    (Please note: As I am traveling frequently, answering your post might sometimes take longer)


    Want to easily publish for the iPad, using high-fidelity designs with stunning interactivity? See here:
    English: http://youtu.be/Gldk5lvXXTA
    French: http://youtu.be/nsgB4Q7lQzg
    German: http://youtu.be/lecdenqaUGY
    Italian: http://youtu.be/wjBpYZsF-8s


    Need help? Contact Quark's support: http://support.quark.com/contact_us.html


    Please don't install the newest update 10.7.3 of Mac OS X Lion yet.
    For details please see here: http://goo.gl/AzKeR

  • 08-03-2009 9:40 AM In reply to

    Re: QID how to upload an image in a frame using the webbrowser

    Hi, Frans,

    please allow me to answer this publicly:

    Frans:
    Matthias Guenther (Quark):
    As the URL can be calculated (random pictures from Flickr, an ID the user enters etc.) it's easy to display the right image.
    I don't understand the last part of your e-mail.

    What I meant is that you can calculate URLs. So once your user has uploaded the image, you can calulate the picture to display e.g.

    • by date
    • by user ID
    • using a random number
    • etc.

    And example for a date would be:

    URL Expression = "http://www.myserver.somewhere/pictures/" + Date.GetFullYear() + Date.GetMonth() + Date.GetDate() +".jpg"
    (which is http://www.myserver.somewhere/pictures/20090803.jpg TODAY

    Or for a random picture:

    URL Expression = http://www.myserver.somewhere/pictures/" + Number.RandomInt(10000,99999) +".jpg
    (which is maybe http://www.myserver.somewhere/pictures/12345.jpg)

    Does that explain it?

    Best regards
    Matthias

    Matthias Günther
    Senior Product Manager
    Quark Software Inc.

    (Please note: As I am traveling frequently, answering your post might sometimes take longer)


    Want to easily publish for the iPad, using high-fidelity designs with stunning interactivity? See here:
    English: http://youtu.be/Gldk5lvXXTA
    French: http://youtu.be/nsgB4Q7lQzg
    German: http://youtu.be/lecdenqaUGY
    Italian: http://youtu.be/wjBpYZsF-8s


    Need help? Contact Quark's support: http://support.quark.com/contact_us.html


    Please don't install the newest update 10.7.3 of Mac OS X Lion yet.
    For details please see here: http://goo.gl/AzKeR

  • 08-03-2009 1:21 PM In reply to

    Re: QID how to upload an image in a frame using the webbrowser

    Hello Matthias, Thanx again for explaining it. So i cant make a selection (popup for example) to select an image out of the folder that contains uploaded images?
    With kind regards

    Frans van Huizen
    Digital Solutions
  • 08-03-2009 1:26 PM In reply to

    Re: QID how to upload an image in a frame using the webbrowser

    Hi, Frans,

    Frans van Huizen:
    So i cant make a selection (popup for example) to select an image out of the folder that contains uploaded images?
     

    Yes, you can. Once they are uploaded you can access them. Whether you do that with a checkbox, a popup, a menu or somebody entering text it is your choice.

    Just it needs to match the file namethat was uploaded. The difficulty can be to find out how it is called, therefore date or prefixed ID is a good choice.

    Groetjes en veel plezier
    Matthias

    Matthias Günther
    Senior Product Manager
    Quark Software Inc.

    (Please note: As I am traveling frequently, answering your post might sometimes take longer)


    Want to easily publish for the iPad, using high-fidelity designs with stunning interactivity? See here:
    English: http://youtu.be/Gldk5lvXXTA
    French: http://youtu.be/nsgB4Q7lQzg
    German: http://youtu.be/lecdenqaUGY
    Italian: http://youtu.be/wjBpYZsF-8s


    Need help? Contact Quark's support: http://support.quark.com/contact_us.html


    Please don't install the newest update 10.7.3 of Mac OS X Lion yet.
    For details please see here: http://goo.gl/AzKeR

Page 1 of 1 (5 items)
Powered by Community Server (Commercial Edition), by Telligent Systems