DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

+ Reply to Thread
Results 1 to 2 of 2

Thread: hidden forms

  1. #1
    Kyle Guest

    hidden forms


    I have a form that displays the results of several calculations from data
    input into my DB. I don't really want users to have to click the submit button
    on the form to see the results. The form is on a page by itself, and I would
    rather that the users not even see it. How can I trigger the form so that
    the submit button is pressed, and the Response.Redirect automatically takes
    the user to the final page?

  2. #2
    George Guest

    Re: hidden forms


    "Kyle" <rkfinch@generationinformed.com> wrote:
    >
    >I have a form that displays the results of several calculations from data
    >input into my DB. I don't really want users to have to click the submit

    button
    >on the form to see the results. The form is on a page by itself, and I would
    >rather that the users not even see it. How can I trigger the form so that
    >the submit button is pressed, and the Response.Redirect automatically takes
    >the user to the final page?


    Do You Use OnReadyStateChange ?
    If You Don't --->

    function fnStartInit()
    {
    if (document.readyState=="complete")
    {
    document.forms(0).sumbit();
    }
    }
    And Put This In BODY Tag <BODY OnReadyStateChange = "fnStartInit()">
    This Property Will Work When The Document Is Downloaded To The User
    And It Will Submit You To Anything You Want.



Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


Top DevX Stories

Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL


Sponsored Links