NetTalk Central

NetTalk Web Server => Web Server - Ask For Help => Topic started by: Niels Larsen on March 31, 2010, 03:30:55 AM

Title: NT5 WS - code inside button tag?
Post by: Niels Larsen on March 31, 2010, 03:30:55 AM
Hi

How to set options inside the tag of a button.
I would like to place my image after the value and put some more options on the tag.

Regards Niels
Title: Re: NT5 WS - code inside button tag?
Post by: Bruce on April 01, 2010, 01:16:15 AM
Hi Niels,

what button do you have in mind? Browse? Form?
One of my buttons or a custom button of yours?

cheers
Bruce
Title: Re: NT5 WS - code inside button tag?
Post by: Niels Larsen on April 01, 2010, 05:07:11 AM
Hi Bruce

On a form I have a button. In some situations I would like to disable the button (not hide). In that case it would be nice to have the option to enter ex. disabled="disabled" or some other options in the tag.
Today i take the packet before send and modify it but i don't think thats a very smart way to do it :-(

/Niels
Title: Re: NT5 WS - code inside button tag?
Post by: Bruce on April 01, 2010, 11:47:12 PM
Hi Niels,

Ok, well first things first - I've added a template option so you can set an expression which sets the button disabled or not.
The createButton method supports a "disabled" parameter, so it makes sense to expose that as a template field.
That'll be in the next build.

In terms of adding "free form" extra html inside the tag, many form fields (although not buttons) support the loc:extra approach. I'll add that to buttons as well, although that may take a bit longer.

cheers
Bruce

Title: Re: NT5 WS - code inside button tag?
Post by: Niels Larsen on April 02, 2010, 01:07:58 AM
Hi Bruce

That's greate! Just what i need.
Do you have an ETA of the next build ;-)

/Niels
Title: Re: NT5 WS - code inside button tag?
Post by: Bruce on April 02, 2010, 11:22:11 PM
Should be this weekend or Monday Niels...

cheers
Bruce
Title: Re: NT5 WS - code inside button tag?
Post by: Niels Larsen on April 03, 2010, 03:56:09 AM
Super.

Now that you're about to update the templates it would be nice if you could insert "CSS Outer Div Class" in the DIV surounding the buttons in a form.

Have a nice weekend - once you get to it... ;-)