[ic] Using images for Address Book buttons

Ron Phipps interchange-users@icdevgroup.org
Mon Jun 10 19:05:01 2002


> From: Ron Phipps
> 
> I'm attempting to use images as buttons for the address book
functions.
> I use image buttons for all our other functions, but for some reason
the
> address book functions only works using the standard html buttons.
> Below is the code I expected to work:
> 
> 	[button
> 		text="Checkout"
>      		src="buttons/process_order.gif"
> 		hidetext=1
> 		form=ship_address
> 	]
> 		[value name=s_nickname set="[cgi s_nickname]"
> filter="nullselect no_white" hide=1]
> 		[userdb function=set_shipping]
> 	]
> 
> Using this code the form only refreshes.  However using the following
> works:
> 
> 	<INPUT TYPE=submit NAME=mv_check VALUE="Save shipping"
> style="font-size: 8pt">
> 
> [set Save shipping]
> [value name=s_nickname set="[cgi s_nickname]" filter="nullselect
> no_white" hide=1]
> [userdb function=set_shipping]
> [/set]
> 
> Any ideas?  I've been through this on other sites and was never able
to
> get it working.
> 
> Thanks,
> -Ron

This issue has been solved with the following code:

				[button
					text="Save"
     					src="buttons/save.gif"
					hidetext=1
					form=ship_address
				]
					mv_check=save_shipping
				[/button]

[set save_shipping]
[value name=s_nickname set="[cgi s_nickname]" filter="nullselect
no_white" hide=1]
[userdb function=set_shipping]
[/set]

I failed to realize that the userdb functions were happening in mv_check
and the button tag generates mv_click.

Thanks,
-Ron