[ic] mv_click_map

Rick Bragg lists at gmnet.net
Fri Mar 25 03:26:32 UTC 2011


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]

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

Thanks
Rick 







More information about the interchange-users mailing list