• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

creating a html link as a button

 
Ranch Hand
Posts: 39
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello all, how can i generate a link which is resembled by a button. So the link refers to an action, but i want the link to be a button. Or can i just use the html:submit ??
 
Ranch Hand
Posts: 70
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Ling Chung,

Won't this solve your problem?




If not can you make it clear?

Nikhil Kanjulli Menon
 
Ling Chung
Ranch Hand
Posts: 39
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
problem is i generate a link using a href and i want to display this as a button.

So i have :



So this is the way i generate a link. How can i make this to generate a button. I want to go an action with a single parameter using an submit button.
 
pie sneak
Posts: 4727
Mac VI Editor Ruby
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
It looks like you are using one of the DispatchActions. I think the DispatchActions work great for links but are not very versatile for buttons.

I came up with a solution for this (a new DispatchAction actually) and I've been tweaking it in my spare time for the past week. I will post it Friday evening (I don't have the most recent version on this machine) at www.marcpeabody.com. Sorry if this is not soon enough for what you need.

Another option to consider is to make .gifs that look like buttons. That way you keep the anchor href but change the look from text to button-like.

Best of luck!
 
Ranch Hand
Posts: 81
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
can't you just go...



I'm confused.

Nate
 
Marc Peabody
pie sneak
Posts: 4727
Mac VI Editor Ruby
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Nate,

That's a good idea. Never thought of having a form for each button before. So how do you pass along the information of which item to add to the shopping cart? Hidden parameters?

ps - Multiple forms on a single page make me nervous.
 
Nathan Hook
Ranch Hand
Posts: 81
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Well, each form would need to have its own parameters.

We use the above example for all our cancel buttons. We don't do any behavior for our cancels except to redirect the user to a different page.

Best of Luck,

Nate
 
a wee bit from the empire
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic