NetTalk Central

NetTalk Web Server => Web Server - Ask For Help => Topic started by: Thomas on April 21, 2008, 02:40:46 PM

Title: PNG on Button problem
Post by: Thomas on April 21, 2008, 02:40:46 PM
Hello,
in my own projekt I put a Button on a webform. The button has a text and a PNG image. The image is one of the images of the Accounts(31) example - customers.png.
It is displayed correctly in Accounts example - but not in my own project. What I'm doing wrong ? (IE 7 on Vista, NT4.30)
TIA, Thomas
Title: Re: PNG on Button problem
Post by: Mike Grigsby on April 21, 2008, 05:54:40 PM
You have a copy of it in your project's web/images directory?
Title: Re: PNG on Button problem
Post by: Thomas on April 21, 2008, 10:26:52 PM
Hi Mike,
double checked before posting ;-)
regards, Thomas.
Title: Re: PNG on Button problem
Post by: Thomas on April 22, 2008, 12:49:19 AM
Ok - solved, I was mislead...
I looked at the Accounts(31) example and build my own buttons in the very same way. In Accouunts(31) the Buttons type is shown as "Submit", hence the problem in my project. The generated HTML for ym button was a <input... After changing the Type to "Button" everythings works well, even PNG's are displayed.
Strange thing anyway, the display of "Submit" as type in the Accounts example.
Regards, thomas
Title: Re: PNG on Button problem
Post by: Bruce on April 22, 2008, 02:18:26 AM
Hi Thomas,

It really all depends on what you want the button to do - sometimes it's a submit button (ie sends all the form fields) sometimes that's not necessary.

Cheers
Bruce