add macro to form button

if i right click on the button...the assign macro line does not light up to
choose it.

so how do i add a macro to a button??
Carrie [ So, 23 Dezember 2007 20:42 ] [ ID #1892945 ]

Re: add macro to form button

Buttons in web pages often use the onclick event to "attach" a
javascript function - there are no macros. Or you referring to an
application other than FrontPage?
--
Ron Symonds - Microsoft MVP (FrontPage)
Reply only to group - emails will be deleted unread.

http://www.rxs-enterprises.org/fp




"Carrie" <Carrie [at] discussions.microsoft.com> wrote in message
news:7C20AB1A-F292-4688-A302-CB11CC971000 [at] microsoft.com:

> if i right click on the button...the assign macro line does not light up to
> choose it.
>
> so how do i add a macro to a button??
Ronx [ So, 23 Dezember 2007 22:16 ] [ ID #1892947 ]

Re: add macro to form button

I was trying to assign a macro to a button in Frontpage 2003. Judging by
your answer, I must be approacing it the wrong way. Can you point me to
something that would give me a step by step way to assign an action to a
button. I'm basically just trying to update a sum based on a number entered.
And like Carrie, I was trying to use a button to execute a macro to do it.

Thanks,
Susan

"Ronx" wrote:

> Buttons in web pages often use the onclick event to "attach" a
> javascript function - there are no macros. Or you referring to an
> application other than FrontPage?
> --
> Ron Symonds - Microsoft MVP (FrontPage)
> Reply only to group - emails will be deleted unread.
>
> http://www.rxs-enterprises.org/fp
>
>
>
>
> "Carrie" <Carrie [at] discussions.microsoft.com> wrote in message
> news:7C20AB1A-F292-4688-A302-CB11CC971000 [at] microsoft.com:
>
> > if i right click on the button...the assign macro line does not light up to
> > choose it.
> >
> > so how do i add a macro to a button??
>
>
Susan [ Do, 10 Januar 2008 21:33 ] [ ID #1904461 ]

Re: add macro to form button

You need to add a JavaScript Math function to your form, which can be a problem if you are also
using FP Form Field Validation. You can do a search for the following:

? JavaScript Form Math function

--
==============================================
Thomas A. Rowe
Microsoft MVP - FrontPage

http://www.Ecom-Data.com
==============================================


"Susan" <Susan [at] discussions.microsoft.com> wrote in message
news:6175D1DC-F4E4-4309-85C2-CE09196FE8C3 [at] microsoft.com...
>I was trying to assign a macro to a button in Frontpage 2003. Judging by
> your answer, I must be approacing it the wrong way. Can you point me to
> something that would give me a step by step way to assign an action to a
> button. I'm basically just trying to update a sum based on a number entered.
> And like Carrie, I was trying to use a button to execute a macro to do it.
>
> Thanks,
> Susan
>
> "Ronx" wrote:
>
>> Buttons in web pages often use the onclick event to "attach" a
>> javascript function - there are no macros. Or you referring to an
>> application other than FrontPage?
>> --
>> Ron Symonds - Microsoft MVP (FrontPage)
>> Reply only to group - emails will be deleted unread.
>>
>> http://www.rxs-enterprises.org/fp
>>
>>
>>
>>
>> "Carrie" <Carrie [at] discussions.microsoft.com> wrote in message
>> news:7C20AB1A-F292-4688-A302-CB11CC971000 [at] microsoft.com:
>>
>> > if i right click on the button...the assign macro line does not light up to
>> > choose it.
>> >
>> > so how do i add a macro to a button??
>>
>>
tarowe [ Fr, 11 Januar 2008 01:34 ] [ ID #1905289 ]

Re: add macro to form button

Expanding on Thomas' answer, you need to assign the math function to the
button onclick event.
<input type="button" value="Do some sums" onclick="MyMathsFunction()"
name="mathButton">

The javascript function MyMathsFunction() will contain javascript to do
the maths and write the answer somewhere (probably another form field).
The above assumes a form button is used. If the button is an image -

<a href="javascript:;" onclick="MyMathsFunction()"><img src="maths.gif"
alt="Maths Button" width="100" height="35" border="0"></a>

--
Ron Symonds - Microsoft MVP (FrontPage)
Reply only to group - emails will be deleted unread.

http://www.rxs-enterprises.org/fp




"Susan" <Susan [at] discussions.microsoft.com> wrote in message
news:6175D1DC-F4E4-4309-85C2-CE09196FE8C3 [at] microsoft.com:

> I was trying to assign a macro to a button in Frontpage 2003. Judging by
> your answer, I must be approacing it the wrong way. Can you point me to
> something that would give me a step by step way to assign an action to a
> button. I'm basically just trying to update a sum based on a number entered.
> And like Carrie, I was trying to use a button to execute a macro to do it.
>
> Thanks,
> Susan
>
> "Ronx" wrote:
>
> > Buttons in web pages often use the onclick event to "attach" a
> > javascript function - there are no macros. Or you referring to an
> > application other than FrontPage?
> > --
> > Ron Symonds - Microsoft MVP (FrontPage)
> > Reply only to group - emails will be deleted unread.
> >
> > http://www.rxs-enterprises.org/fp
> >
> >
> >
> >
> > "Carrie" <Carrie [at] discussions.microsoft.com> wrote in message
> > news:7C20AB1A-F292-4688-A302-CB11CC971000 [at] microsoft.com:
> >
> > > if i right click on the button...the assign macro line does not light up to
> > > choose it.
> > >
> > > so how do i add a macro to a button??
> >
> >
Ronx [ Fr, 11 Januar 2008 11:22 ] [ ID #1905301 ]
Microsoft » microsoft.public.frontpage.client » add macro to form button

Vorheriges Thema: Online Assessment Forms
Nächstes Thema: Searching contacts and journals stored in public folders