pkAirman
Posts: 2
Joined: Tue Feb 24, 2015 8:56 pm

hs Expander close

Why is it when I render the following code via a cgi (perl script) during the initial popup it works fine but not when I send the same code via a follow up cgi refresh of the popup? I don't want it to close on the first render but only after I process my server side script. Sorry, I'm old school cgi perl, no php/XML/AJAX/etc (well ok, maybe a little now and then).


parent html code...

Code: Select all

<div>
 <a href="/test/" onclick="return hs.htmlExpand(this,{objectType:'iframe', width:440} )">TEST</a>
</div>
/test/index.pl print statement to render popup...

Code: Select all

print qq~Content-type: text/html

<!DOCTYPE html>
<html>
<head>
 <title>Test Page</title>
 <meta http-equiv="Content-Type" content="text/html">
 <link rel="stylesheet" type="text/css" href="/js/highslide/highslide.css" />
 <script type="text/javascript" src="/js/highslide/highslide-with-html.js"></script>
 <script type="text/javascript">
  hs.graphicsDir = '/js/highslide/graphics/';
 </script>
 <script type="text/javascript">
  hs.preserveContent = false;
</script>
<script type="text/javascript">
  setTimeout(function () {
   try {
      parent.window.hs.getExpander().close();
   } catch (e) {}
  }, 3000);
 </script>
</head>
<body>
This is a test...
</body>
</html>
~;
User avatar
RoadRash
Posts: 8249
Joined: Tue Jul 15, 2008 6:43 pm
Location: Fredrikstad, Norway
Contact: Website

Re: hs Expander close

Can you please post a link to your live page/test page?
Hilde
Highslide Support Team

Overview of my Highslide sample pages: RoadRash.no

Return to “Highslide JS Usage”