SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Guru
    Join Date
    Jun 2009
    Posts
    819
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)

    greybox plugin -- need to do something unusual..

    http://www.simponi.com/
    pls scroll to the bottom, click on www.fda.gov/medwatch

    it opens a div.. pls try also with JavaScript is disabled, the content of the div opens in its own url.. they use greybox plugin (http://orangoo.com/labs/GreyBox/), which I have used before, but they do unusual stuff here, namely the url, I don't see is how they load a page on a url such as /to-fda; also I can't find where/how they generate the content for the div/url..

    I need to do the same thing at work...
    (greybox plugin doesn't have forum, link on their pg to a forum says they have been booted out b/c they violated google terms of service....;-)

    is there any other way to do this exact same without this greybox plugin???
    (and: I need to do this for various url's on the pg (not just one url, like in simponi.com), so I somehow will need to pass url (or part of url, then do string-parsing) to the JavaScript..)

    thank you..

  2. #2
    SitePoint Guru
    Join Date
    Jun 2009
    Posts
    819
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    oh man.. how do they these urls?

    <a rel="gb_page_center[470, 210]" target="_self" href="/to-fda">

    (pls note it's not "to-fda/", but "/to-fda" -- what kind of url is this?
    when you land you're in http://www.simponi.com/to-fda
    if I add "/" at end or add "/index.html" it redirects to
    http://www.simponi.com/to-fda

    they have a pg full of urls like this here, http://www.simponi.com/hcp/home
    ("click here", "register now", etc.. some are absolute, some aren't..)

    I can't reproduce this.. tried here:
    http://www.mayacove.com/dev/url-test.html

    this works, href="mydir/"
    but not this: href="/mydir

    now I know you can map urls like this from the back-end, with servlets (which I have done myself), and probably other back-end systems too.. but it doesn't seem like these urls are being mapped from the back-end, although I could be wrong..

    would appreciate some enlightening here..

    thank you..



    they have a pg full of urls like this here,
    http://www.simponi.com/hcp/home


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
  •