Hello,

Thank you very much for this great module. It works very well with imagecache presets.

(How) is it possible to open pages/nodes/extern links (i.e. www.mysite.com) in highslide? I tried to open a link with the default class="highslide" but it always ends up with the preloader.
In my case I've created a view with all registered site users and would like to provide a link to the user contact form that should open in the highslide viewer.
The same question belongs to the user login form. I see a redirection rule on the highslide settings page but see no possibility to open the link in the highslide viewer.

Every help is much appreciated.

Kind regards,
Stefan

Comments

ilw’s picture

subscribe.

q0rban’s picture

Whoops, I responded to this back when the original posting was on here, and I guess it never went through. Sorry about that!

If I'm remembering correctly, the class you want to use on your anchor is 'highslide-ajax' or 'highslide-ajax-wide'. Using a fragment id works as well:

<a href="/home#id-name" class="highslide-ajax">link text</a>
q0rban’s picture

Status: Active » Fixed

Actually, I just realized, there is a good example of this in the README.txt

design.er’s picture

Thank you for the hint. Unfortunately it loads the whole page inside the modal window.
Is it possible to load the node body or a specific div-ID (i.e. #content)?

Thank you for your help.

q0rban’s picture

Yeah, sorry if I was unclear, that's what I meant by the fragment identifier. Make the href be 'node/27#content' or something like that.

design.er’s picture

Yeaaah, it rocks! :) Thank you very much.

I wonder if there is a way to include ajax functionality like on the demo page (www.highslide.com) for "Iframe with form" or "Dynamic AJAX content".
Sorry bugging you but if this is already possible I would be really happy. :)

q0rban’s picture

This is completely untested, but if you added a js file to your theme with this in it:

$(function () {
  $('a.highslide-iframe-link').click(function() {
    return hs.htmlExpand(this, {
        objectType: 'iframe',
        anchor: 'auto',
        outlineType: 'rounded-white',
        outlineWhileAnimating: true,
        preserveContent: false,
        width: 250
      }
    );
  });
});

And then added a link like this:
<a href="http://google.com" class="highslide-iframe-link">The link</a>

I think it would work. But like I said.. completely untested!

EDIT: I forgot to wrap the anchor in <code> tags. Whoops!

design.er’s picture

Nice, the ajax processing works fine! :) The only problem is that the whole page is loaded in the modal window -> the #content anchor in the link (user/contact#content) is going to be ignored. If there is a way to manage this It would be perfect.

Thank you so much for your help. :)

q0rban’s picture

Marked #623348: HTML Content & AJAX as a duplicate of this issue.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.