By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,528 Members | 1,324 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,528 IT Pros & Developers. It's quick & easy.

Javascript on a microsoft page

P: n/a

Hi everyone,

I'm not a javascript person myself but want to replicate the javascript at
the bottom of this page
on the microsoft website and include it on my website as a quick "was this
helpful form"

http://office.microsoft.com/assistan...EC010553071033

could someone take a look at this and help out or point me in the direction
of a download
you will be creditied for it on our site - I just don't have the time to
work out how it's done myself unfortunately.

TIA

Chris

=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+ =+=+=+=+=

Chris Dean, Schools Outreach Project, Vega Science Trust
University of Sussex, Falmer, Brighton. East Sussex. BN1 9QJ. UK.

Tel.: +44 (0) 1273 87 72 93
Email: ch***@christopher-dean.co.uk
Web: www.vega.org.uk

=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+ =+=+=+=+=
Jul 20 '05 #1
Share this Question
Share on Google+
3 Replies


P: n/a
Chris Dean wrote:
Hi everyone,

I'm not a javascript person myself but want to replicate the javascript at
the bottom of this page
on the microsoft website and include it on my website as a quick "was this
helpful form"

http://office.microsoft.com/assistan...EC010553071033

could someone take a look at this and help out or point me in the direction
of a download
you will be creditied for it on our site - I just don't have the time to
work out how it's done myself unfortunately.

TIA

Chris

=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+ =+=+=+=+=

Chris Dean, Schools Outreach Project, Vega Science Trust
University of Sussex, Falmer, Brighton. East Sussex. BN1 9QJ. UK.

Tel.: +44 (0) 1273 87 72 93
Email: ch***@christopher-dean.co.uk
Web: www.vega.org.uk

=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+ =+=+=+=+=


When it comes to a "Was This Helpful" function... there is a lot more
than meets the eye. You can do this without javascript very easily...

What you really need to have is a server-side handler for if it was
useful or not. I havent looked at the microsoft site, but I assume they
are only using Javascript for form checking, and/or form submittal,
which goes to their server-side application, which stores the results in
a database, for use in searching, and feedback to the developers.

Do you have server-side capabilities?

Brian

Jul 20 '05 #2

P: n/a
Yes full serverside capabilities, I am a php coder myself but felt this was
a nice JS solution that I wanted to use.

The post submission stuff is no problem at all it's the Javascript form that
I'm interested in,

Please take a look at the link I posted to see it - I think it's a little
unusal if you do a view source on it which is why I need help - not being a
JS guy myself

Thanks

Chris

"Brian Genisio" <Br**********@yahoo.com> wrote in message
news:40********@10.10.0.241...
Chris Dean wrote:
Hi everyone,

I'm not a javascript person myself but want to replicate the javascript at the bottom of this page
on the microsoft website and include it on my website as a quick "was this helpful form"

http://office.microsoft.com/assistan...EC010553071033
could someone take a look at this and help out or point me in the direction of a download
you will be creditied for it on our site - I just don't have the time to
work out how it's done myself unfortunately.

TIA

Chris

=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+ =+=+=+=+=

Chris Dean, Schools Outreach Project, Vega Science Trust
University of Sussex, Falmer, Brighton. East Sussex. BN1 9QJ. UK.

Tel.: +44 (0) 1273 87 72 93
Email: ch***@christopher-dean.co.uk
Web: www.vega.org.uk

=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+ =+=+=+=+=


When it comes to a "Was This Helpful" function... there is a lot more
than meets the eye. You can do this without javascript very easily...

What you really need to have is a server-side handler for if it was
useful or not. I havent looked at the microsoft site, but I assume they
are only using Javascript for form checking, and/or form submittal,
which goes to their server-side application, which stores the results in
a database, for use in searching, and feedback to the developers.

Do you have server-side capabilities?

Brian

Jul 20 '05 #3

P: n/a
Chris Dean wrote:
Yes full serverside capabilities, I am a php coder myself but felt this was
a nice JS solution that I wanted to use.

The post submission stuff is no problem at all it's the Javascript form that
I'm interested in,

Please take a look at the link I posted to see it - I think it's a little
unusal if you do a view source on it which is why I need help - not being a
JS guy myself

Thanks

Chris

Ok, I took a look. Basically, you have two buttons, each with a callback.

If you say Yes, it calls a function that uses a hidden IFRAME to send
the form with a query string, without reloading the page. It basically
sets the src of the IFRAME to the URL/Query String.

If you say No, it hides the DIV holding the buttons
(m_divFeedbackPanel1), and shows a new panel, which is dynamically
created, with the radio buttons, which then sends the data using the
same method as if you said Yes.

As for pulling it out of the MS site, and using it, there are a few
problems...

1. It is probably an illegal violation of copyright, and you dont want
to mess with MS, when it comes to this
2. It is hard to read
3. It does more than you want, since it handles other forms as well

I hope this helps,
Brian

Jul 20 '05 #4

This discussion thread is closed

Replies have been disabled for this discussion.