From: mikezx10 on
I am trying to be consistant in display but I wrote code using a
submit button where the rest of the site uses an anchor & href with an
image.

old code
<a href="#"
onclick="javascript:window.frames('Cnt').ValidateForm();"><img src="../
images/go.gif" border="0"></a>

new code
<input type="submit" value="Go" />
From: Dooza on
On 22/03/2010 13:20, mikezx10(a)hotmail.com wrote:
> I am trying to be consistant in display but I wrote code using a
> submit button where the rest of the site uses an anchor& href with an
> image.
>
> old code
> <a href="#"
> onclick="javascript:window.frames('Cnt').ValidateForm();"><img src="../
> images/go.gif" border="0"></a>
>
> new code
> <input type="submit" value="Go" />

And the question is???

Let me try to guess, you want the client side validation script to fire
when you submit the form? Try

<form name="blah" action="blag" method="blah"
onsubmit="javascript:window.frames('Cnt').ValidateForm();">

Dooza
From: mikezx10 on
On Mar 22, 10:50 am, Dooza <stev...(a)SPAM.dooza.tv> wrote:
> On 22/03/2010 13:20, mikez...(a)hotmail.com wrote:
>
> > I am trying to be consistant in display but I wrote code using a
> > submit button where the rest of the site uses an anchor&  href with an
> > image.
>
> > old code
> > <a href="#"
> > onclick="javascript:window.frames('Cnt').ValidateForm();"><img src="../
> > images/go.gif" border="0"></a>
>
> > new code
> > <input type="submit"  value="Go" />
>
> And the question is???
>
> Let me try to guess, you want the client side validation script to fire
> when you submit the form? Try
>
> <form name="blah" action="blag" method="blah"
> onsubmit="javascript:window.frames('Cnt').ValidateForm();">
>
> Dooza

I see my post was not clear, I used a button, but that didnt look at
all like the image, i wanted to know how to submit with the <A> tag so
I could use the same link.

When i use the link i dont think the same process is followed as with
a submit button


I just started with classic asp & Javasript, can you tell me what
"javascript:window.frames('Cnt').ValidateForm();" does? How does it
validate a form, i dont see any validation logic
From: Dooza on
On 22/03/2010 15:15, mikezx10(a)hotmail.com wrote:
> On Mar 22, 10:50 am, Dooza<stev...(a)SPAM.dooza.tv> wrote:
>> On 22/03/2010 13:20, mikez...(a)hotmail.com wrote:
>>
>>> I am trying to be consistant in display but I wrote code using a
>>> submit button where the rest of the site uses an anchor& href with an
>>> image.
>>
>>> old code
>>> <a href="#"
>>> onclick="javascript:window.frames('Cnt').ValidateForm();"><img src="../
>>> images/go.gif" border="0"></a>
>>
>>> new code
>>> <input type="submit" value="Go" />
>>
>> And the question is???
>>
>> Let me try to guess, you want the client side validation script to fire
>> when you submit the form? Try
>>
>> <form name="blah" action="blag" method="blah"
>> onsubmit="javascript:window.frames('Cnt').ValidateForm();">
>>
>> Dooza
>
> I see my post was not clear, I used a button, but that didnt look at
> all like the image, i wanted to know how to submit with the<A> tag so
> I could use the same link.

Its still not really clear, especially since this group doesn't cater
for client side scripting.

> When i use the link i dont think the same process is followed as with
> a submit button

Thats correct, the onsubmit event doesn't fire when you don't you use a
button with the type set to submit.

> I just started with classic asp& Javasript, can you tell me what
> "javascript:window.frames('Cnt').ValidateForm();" does? How does it
> validate a form, i dont see any validation logic

That code doesn't make any sense to me, it might even be ASP.NET which
is certainly not on topic here.

There is loads of form validation scripts/examples out there, just
google it and see.

Good luck!

Steve