shadowbox zoom: display an img sent by asp

Discussion in 'Javascript' started by Giorgio, Oct 19, 2009.

  1. Giorgio

    Giorgio Guest

    Hi,
    I'm using this js to zoom an image http://www.shadowbox-js.com.
    I can't display the image, it's binary-sent by an asp-resize page

    http://www.appuntamentoalbuio.net/r...ppBuio\upload\resize.jpg&width=800&height=450

    How can i do this?
    In the download page, if I choose "html" in the configuration of the custom
    build download, i can see the image but it's surronded by white (like i see
    the page directly clicking the link above)
    If I choose "image" only, i get a js error.

    I posted in shadowbox forum, but no answer.

    thanks
    Giorgio, Oct 19, 2009
    #1
    1. Advertising

  2. Giorgio wrote:

    > I'm using this js to zoom an image http://www.shadowbox-js.com.
    > I can't display the image, it's binary-sent by an asp-resize page
    >
    >

    http://www.appuntamentoalbuio.net/r...ppBuio\upload\resize.jpg&width=800&height=450
    >
    > How can i do this?


    <img
    src="http://www.appuntamentoalbuio.net/resize.asp?path=D%3A%5Chome%5CappBuio%5Cupload%5Cresize%2Ejpg&width=800&height=450"
    alt="bar">

    > In the download page, if I choose "html" in the configuration of the
    > custom build download, i can see the image but it's surronded by white
    > (like i see the page directly clicking the link above)
    > If I choose "image" only, i get a js error.
    >
    > I posted in shadowbox forum, but no answer.


    Probably because the problem has nothing to do with Shadowbox, or client-
    side scripting to begin with.

    Shadowbox in its current form is junk anyway. Were it not for clicked
    uncached images to show a box containing only "Cancel" for quite some time
    (until the image has been loaded), the telltale signs were lines 2 (and 21),
    and 52, of source/shadowbox.js:

    | * The Shadowbox class.
    ^^^^^
    | [...]
    | var ua = navigator.userAgent.toLowerCase(),
    ^^^^^^^^^^^^^^^^^^^

    Strangely enough, they have not managed to accomplish

    | * Todo:
    | *
    | * - Remove user-agent sniffing (and consequently Shadowbox.client) in
    | * favor of feature support model of client detection

    within two years:

    | * @copyright 2007-2009 Michael J. I. Jackson

    You should wait until this script has matured before you use it, or rewrite
    it if and when you are able to.


    PointedEars
    --
    var bugRiddenCrashPronePieceOfJunk = (
    navigator.userAgent.indexOf('MSIE 5') != -1
    && navigator.userAgent.indexOf('Mac') != -1
    ) // Plone, register_function.js:16
    Thomas 'PointedEars' Lahn, Oct 19, 2009
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Replies:
    1
    Views:
    720
    Keith James
    Feb 14, 2005
  2. Replies:
    1
    Views:
    521
    jfalt
    Feb 15, 2005
  3. Replies:
    0
    Views:
    405
  4. Replies:
    0
    Views:
    320
  5. Giorgio
    Replies:
    1
    Views:
    843
    Evertjan.
    Oct 18, 2009
Loading...

Share This Page