[ic] mv_click_map

Mike Heins mike at perusion.com
Fri Mar 25 13:19:39 UTC 2011


Quoting Rick Bragg (lists at gmnet.net):
> On Thu, 2011-03-24 at 22:25 -0400, Mike Heins wrote:
> > Quoting Rick Bragg (lists at gmnet.net):
> > > Hi,
> > > 
> > > Is there any documentation on mv_click_map or click map?
> > > 
> > > Basically I am trying to do a form with a bunch of images as buttons.
> > > Setting the value of an <input type=image name=mv_click does not work
> > > with ie.
> > > 
> > > I tried using a single hidden mv_click, and setting it with javascript
> > > but I have other javascript dynamically setting other variables on the
> > > form, and it seems maybe those other variables that are set (with jquery
> > > draggable) are ignored or cleared as the form submits with my onclick.
> > > Anyway, here is my mv_click setup:
> > > 
> > > <input type="hidden" id="mv_click" name="mv_click" value="" />
> > > <img src="button2image.jpg"
> > >      onclick="document.getElementByID('mv_click').value = 'clickset1'; 
> > >               document.form_name.submit(); return(false);"
> > > >
> > > <img src="button2image.jpg"
> > >      onclick="document.getElementByID('mv_click').value = 'clickset2'; 
> > >               document.form_name.submit(); return(false);"
> > > >
> > > 
> > > Any ideas? Any docs on click mapping?
> > 
> > There used to be, but I doubt it was retained. I don't think it has been
> > used for a decade.
> > 
> > Basically, you do this:
> > 
> > 	<input type=hidden name=mv_click_map value="aclickit aclackit atisket atasket">
> > 
> > 	<input type=image name="mv_click.aclickit" src="logo.gif">
> > 	<input type=image name="mv_click.aclackit" src="logo.gif">
> > 	<input type=image name="mv_click.atisket" src="logo.gif">
> > 	<input type=image name="mv_click.atasket" src="logo.gif">
> > 
> > You should find that clicking the appropriate image will submit
> > mv_click.aclickit.x to come into the CGI variable stream, which will
> > cause the "aclickit" click to be run. Each image will cause a
> > different mv_click to run.
> > 
> 
> I still can't get it to work, Maybe I'm not naming my callback routine
> right? So far I have tried:
> 
> [set aclickit]
>   [set some-vars]test1[/set]
>   [cgi name=to_do set=return hide=1]
> [/set]
> 
> and
> 
> [set mv_click.aclickit]
>   [set some-vars]test1[/set]
>   [cgi name=to_do set=return hide=1]
> [/set]

It is the first.

> 
> These callbacks don't run.  What could I be doing wrong? 

You do have an mv_todo or mv_action, right?

-- 
Mike Heins
Perusion -- Expert Interchange Consulting    http://www.perusion.com/
phone +1.765.328.4479  <mike at perusion.com>

Clothes make the man.  Naked people have little or no influence on
society.  -- Mark Twain



More information about the interchange-users mailing list