[ic] Broken image maps in IC 4.6.0 ...

Mike Heins mikeh@minivend.com
Fri, 1 Dec 2000 21:23:25 -0500


Quoting Jeff Carnahan (jcarnahan@networq.com):
> 
> Integrated image maps, as described in:
>   http://developer.akopia.com/cgi-bin/ic/dev/ictemplates_30.html
> 
> are broken in IC 4.6.0 ...
> 
> Fix:
> 
> *** interchange.old     Thu Nov  9 00:59:05 2000
> --- interchange Fri Dec  1 20:18:40 2000
> ***************
> *** 879,885 ****
>                                 my $x = $CGI::values{'mv_todo.x'};
>                                 my $y = $CGI::values{'mv_todo.y'};
>                                 my $map = $CGI::values{'mv_todo.map'};
> !                               $todo =
> Vend::Imagemap::action_map($x,$y,$map);
>                 }
>                 elsif (defined $CGI::values{'mv_todo.submit.x'}) {
>                         $todo = 'submit';
> --- 879,885 ----
>                                 my $x = $CGI::values{'mv_todo.x'};
>                                 my $y = $CGI::values{'mv_todo.y'};
>                                 my $map = $CGI::values{'mv_todo.map'};
> !                               $todo = action_map($x,$y,$map);
>                 }
>                 elsif (defined $CGI::values{'mv_todo.submit.x'}) {
>                         $todo = 'submit';
> 
> 
> Note that the interchange executable uses 'autouse' to load Vend::Imagemap
> upon demand (line 213).. Thus to properly call action_map, it shouldn't
> prefix the function with the package name...
> 
> =)

One of those things that is not tested anymore; in fact I don't think I have
used image maps in a demo since the original 1.0 demo. 8-)

Thanks for the fix, Jeff. It should get in 4.6.1.

-- 
Akopia, Inc., 131 Willow Lane, Floor 2, Oxford, OH  45056
phone +1.513.523.7621 fax 7501 <heins@akopia.com>

Nature, to be commanded, must be obeyed. -- Francis Bacon