SitePoint Sponsor

User Tag List

Results 1 to 6 of 6
  1. #1
    SitePoint Member
    Join Date
    Oct 2011
    Posts
    10
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Linking to exact site

    Hi all,

    I am developing a site to a small hotel. There is a link to some hotel (Mariott is an example not SPAM)

    http://www.booking.com/hotel/cz/prag...b614e308a15416

    We've got a guest review tab there and I would like to have a link from my site to booking but exactly to Guest Review sup page which is open through javascript. Is it possible to do that?

    Any advice will be helpful.

  2. #2
    Avid Logophile silver trophy
    ParkinT's Avatar
    Join Date
    May 2006
    Location
    Central Florida
    Posts
    2,330
    Mentioned
    191 Post(s)
    Tagged
    4 Thread(s)
    Unless the particular website requires authentication (a "login") to display the page you want, the Javascript window.open() will do what you need.
    Just supply it the exact URL to get where you want.
    Don't be yourself. Be someone a little nicer. -Mignon McLaughlin, journalist and author (1913-1983)


    Git is for EVERYONE
    Literally, the best app for readers.
    Make Your P@ssw0rd Secure
    Leveraging SubDomains

  3. #3
    SitePoint Member
    Join Date
    Oct 2011
    Posts
    10
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thx for reply. This is actually and unfortunately not what I meant. Basic link to some hotel is
    http://www.booking.com/hotel/gb/gran...b614e308a15416
    and then the link for reviews is http://www.booking.com/hotel/gb/gran...b614e308a15416#blockdisplay4

    Problem is I can directly link to this second link, but the result is still the first link. My question is how to show the page with reviews not the main page. Any advice will be helpful.

  4. #4
    Sploghm bronze trophy Victorinox's Avatar
    Join Date
    Nov 2008
    Posts
    749
    Mentioned
    4 Post(s)
    Tagged
    0 Thread(s)
    The site is not scripted to allow access to hidden elements via URL. Maybe you could contact the site owners and suggest that, as they already use jQuery, they could add the jQuery History plugin to provide this function.

  5. #5
    SitePoint Member
    Join Date
    Oct 2011
    Posts
    10
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by Victorinox View Post
    The site is not scripted to allow access to hidden elements via URL..
    How can be this done? It's not possible to change it but I would like to know

  6. #6
    Sploghm bronze trophy Victorinox's Avatar
    Join Date
    Nov 2008
    Posts
    749
    Mentioned
    4 Post(s)
    Tagged
    0 Thread(s)
    This jQuery Tools page provides an example. If you scroll down to "Example Tabs with history" you'll see that the "Scripting" tab is active. Remove #scripting_tab from the end of the URL, refresh the page and the default tab "The Player" will be active.


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
  •