SitePoint Sponsor

User Tag List

Results 1 to 5 of 5
  1. #1
    SitePoint Member
    Join Date
    Jun 2011
    Posts
    3
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    realtime graphic web application

    hello...

    I'm sorry, i did read the advises, and i've been through the forum, trying to figure out where to look... but i dont know where to find it...

    so, i'm sorry if my help request will sound silly,,,

    i'm only looking for someone that will want to point me in the right direction...
    and i'll try to do my best on my own ...

    we want to offer personalized tshirts...
    so we do need a way for the customer to choose size, color, subject and text and check all this in real time...
    someone that is doing something that we want is
    <snip/>
    in your opininion, is that vistaprint application a javascript/ajax?
    pls, could you point me in the right direction to understand that?


    thanks to anyone that will want to help me
    Last edited by Mittineague; Jun 9, 2011 at 16:58. Reason: broken link removed

  2. #2
    Forums Designer
    Join Date
    Jun 2004
    Posts
    422
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    URL that you pointed to isn't working, but I found a form to edit text on post card on that website. Is that the form you were referring to?

    There are several ways to do it. That application uses images rendered on server. URLs are altered by javascript to include text, font and some other parameters, so server would render that text. Create <img> element, set "src" attribute to your rendering script on server. On server side you can use GD library (see GD section of PHP manual if you are using PHP) to draw text and output image.

    Another way is to use <canvas> element, but it won't work with Internet Explorer 8 and older versions. Unfortunately IE7 and IE8 are rather popular among non-technical people, so that solution isn't for you.

  3. #3
    SitePoint Member
    Join Date
    Jun 2011
    Posts
    3
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    thank you for your advises...

    I'm so sorry...
    i pasted the link and didnt check the integrity of it... its been truncated...

    here is the link:
    http://tinyurl.com/6jw6jby

    and, as you will see, it should really be different from the postcards design...

    do you still suggest the same after you ha
    do you suggest the same advice after seeing the right link ?

    thank you again.... have a nice time

  4. #4
    Forums Designer
    Join Date
    Jun 2004
    Posts
    422
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Its exactly the same as their postcard editor. They use sample photo of fabric and on top of it add <img> tag for text rendered on server.

    For example, to render "test" on polo shirt, script adds image with following source:
    Code:
    http://www.vistaprint.com/vp/ns/studiotext.aspx?render_tech=HybridGdipWpf&emb=1&png=1&pad=1&ieq=0&wss=1&langid=1&anyrotate=0&zoom=0.815972208976746&d=%3CDIV%20style%3D%22font-family%3AArial%3Bfont-weight%3Anormal%3Bfont-style%3Anormal%3Bcolor%3A0%2C0%2C0%2C0-255%2C255%2C255%3Bfont-size%3A52%3Btext-align%3Acenter%3Bwidth%3A550%22%3Etest%3C%2FDIV%3E&hc=1022615145
    and then script on server renders text according to those parameters.

  5. #5
    SitePoint Member
    Join Date
    Jun 2011
    Posts
    3
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    hello...

    thank you so much...
    I'll start to work on it...

    have a nice day...


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •