very nice idea using the server side, I will start working on it, please you have something previously similar done let me know. thanks
>From: Andy Engle <[EMAIL PROTECTED]> >Reply-To: A mailing list about Java Server Pages specification and >reference <[EMAIL PROTECTED]> >To: [EMAIL PROTECTED] >Subject: Re: off topic (form, javascript question) >Date: Tue, 4 Jun 2002 14:35:04 -0700 > >sufi malak <[EMAIL PROTECTED]> wrote: > > > I'm working on a form , they would like to provide an incentive to > > users to get them to fill out these forms. Can anyone suggest a way > > that a random user could get a message letting them know that they > > have won something (prize to be determined at a later time) this > > would probably occur monthly. > >If I were designing this, I would have the JSP/servlet that is serving >the page with the form on it to include some Javascript in the code >that would alert the user of their winning when they complete the form. > This way, you would be able to more closely control just how many >"winning pages" were served. Perhaps only a small percentage of the >pages would have some extra Javascript included that would alert folks >of their winnings. > >Another person wrote something similar previously, but their suggestion >was to use client-side Javascript. This would be fine if you didn't >want as much control over the winnings. But, since you are most likely >giving stuff away that hopefully has some degree of value, I would go >with the server-side route to be able to more strictly control just how >many winning pages are served. > >The other option I would say is to have users alerted by the server >when they submit the form. Maybe when you return your "Thank you for >sending your info", you could also say "by the way, we would like to >thank you for your time by mailing you a $1 million check." That way >you wouldn't have to horse around with writing Javascript, which I >would think to be a good thing. > > >Andy > > >__________________________________________________ >Do You Yahoo!? >Yahoo! - Official partner of 2002 FIFA World Cup >http://fifaworldcup.yahoo.com > >=========================================================================== >To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff >JSP-INTEREST". >For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST >DIGEST". >Some relevant FAQs on JSP/Servlets can be found at: > > http://archives.java.sun.com/jsp-interest.html > http://java.sun.com/products/jsp/faq.html > http://www.esperanto.org.nz/jsp/jspfaq.jsp > http://www.jguru.com/faq/index.jsp > http://www.jspinsider.com _________________________________________________________________ Join the world’s largest e-mail service with MSN Hotmail. http://www.hotmail.com =========================================================================== To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST". Some relevant FAQs on JSP/Servlets can be found at: http://archives.java.sun.com/jsp-interest.html http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.jsp http://www.jguru.com/faq/index.jsp http://www.jspinsider.com