Welcome Guest, Not a member yet? Register   Sign In
How to code a button
#1

[eluser]Redwhirl[/eluser]
Hi,

I know it's a stupid question, but your help would be useful.

Say I have 3 buttons where each must open a different view, View1, View2, View3
What code do I need to put in the button to make them work.

Thanks for your help

Hubert
#2

[eluser]Vheissu[/eluser]
Why don't you just have 3 different links pointing to 3 different controller functions or controllers, or even just pointing to one function and supplying a different parameter to it? Buttons are really for submitting forms and performing actions.

My personal preference for coding buttons that aren't actually buttons is to save the button image out and just put it in-between an a tag to make it appear as an image, but it is really a link.

Example like so;

Code:
<a href="controller/function/parametervalue"><img src="images/btn_image.png" /></a>
#3

[eluser]Redwhirl[/eluser]
Thanks Vheissu

I'll do it this way, it was what I was thinking to do, but didn't follow my idea

Hubert




Theme © iAndrew 2016 - Forum software by © MyBB