Javascript / ASP beginner question

  1. #1
    RKuser is offline Newbie

    Javascript / ASP beginner question

    Hello DAL gang!

    I hope this question isnt too stupid, but im new to this so will let my fingers do the talking.

    Ok I am a first year student reviewing a sites code, to tell the truth im getting a bit lost in the code and cant seem to locate how the login process is working. Anyway here is the site i am reviewing: www.jinx.com
    and here is the code i managed to locate:

    form name=”globalForm” method=”post” action=”login.aspx?

    <script type="text/javascript">
    <!--
    var theForm = document.forms['globalForm'];
    if (!theForm) {
    theForm = document.globalForm;
    }
    function __doPostBack(eventTarget, eventArgument) {
    if (!theForm.onsubmit || (theForm.onsubmit() != false)) {
    theForm.__EVENTTARGET.value = eventTarget;
    theForm.__EVENTARGUMENT.value = eventArgument;
    theForm.submit();
    }
    }
    // -->

    these seem to be the best snippets i could find, not sure if they are along the correct lines. I am taking a stab in the dark that JS is validating what the user is doing, then asp is passing to the server and back.

    any help or pointer in the correct direction would be greatly appreciated


  2. #2
    RKuser is offline Newbie
    Tackle the Web with $5.99 .COM's from Go Daddy!
    Ah perhaps these too:

    input name="txtLoginEmail" type="text" maxlength="100" id="txtLoginEmail"
    input name="txtLoginPassword" type="password" maxlength="100" id="txtLoginPassword"

+ Reply to Thread