Forum Moderators: open

Message Too Old, No Replies

onClick and script for button

works as text, not as button

         

Bo_Dill

6:42 pm on Feb 13, 2009 (gmt 0)

10+ Year Member



Webmaster,
Knowing that your rules forbid links, I'm not sure I can properly present this problem, so I am asking for your advice.
I have a page in my website wherein you can click on buttons to perform some functions, and of course the usual ones like "Submit" work well. I am having trouble with a button that must be customized with an "onClick" and a related script. I have found that just about anything I've tried works in Firefox, but nothing has worked in IExplorer. Right now, I have the page working with a little text box instead of a button, but it doesn't look the same, and it doesn't change the curser like a button. What I need is someone to show me how to write the script and "onClick" to make this button work.

The reason I don't know how to show it to you without a link is that the button sends a copy of a photo (jpg) to another page, where it is opened in a form. My guess is that if I was good enought to make a sample of this without the link, I could probably solve this myself.

Is there any way that I can show you the stuff on my actual site without getting into trouble?

Thank you,
Bo Dill

kaled

1:03 am on Feb 15, 2009 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Assuming that the code is reasonably simple, post what you have that works in Firefox (but translate any reference to your domain name to mydomain.com). Include a simplified portion of the relevant html code together with the javascript.

Armed with the knowledge of what you are trying to do, making it work in Internet Explorer should not be too difficult.

Kaled.

Fotiman

5:47 am on Feb 15, 2009 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



Note, do not refer to your domain as mydomain.com. Instead, use example.com.