Results 1 to 5 of 5

Thread: Help me with this simple 2 lines javascript

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Oct 2000
    Location
    Québec, Canada
    Posts
    212

    Help me with this simple 2 lines javascript

    Simple and straight :
    what's wrong with

    Code:
    <Script Language="Javascript">
    <!-- 
    function atteindre(position){
    	document.frmMain.txtDebut.value=position
    	document.frmMain.submit}
    -->
    </Script>
    Cause it just doesn't submit ?!

    (Works w/ VbScript)
    Regards,

    El-Nino

  2. #2

    Thread Starter
    Addicted Member
    Join Date
    Oct 2000
    Location
    Québec, Canada
    Posts
    212
    Anyone ? I need this really bad.
    I'm a total javaloser so please help me lol
    Regards,

    El-Nino

  3. #3
    Frenzied Member sebs's Avatar
    Join Date
    Sep 2000
    Location
    Aylmer,Qc
    Posts
    1,606
    hmmmmm:

    did you try

    document.frmMain.submit();

  4. #4

    Thread Starter
    Addicted Member
    Join Date
    Oct 2000
    Location
    Québec, Canada
    Posts
    212
    Oh my god, when I said I was a total javaloser, I had no idea how true it was. You're right, i was missing the ().
    Shame on me (*turn red and start to run*)

    Thanks !
    Regards,

    El-Nino

  5. #5
    Frenzied Member monte96's Avatar
    Join Date
    Sep 2000
    Location
    Somewhere in AZ
    Posts
    1,379
    You also missing semicolons to end each line
    oOOo--oOOo
    __/\/\onte96
    oOOo--oOOo
    Senior Programmer/Analyst
    MCP
    [email protected]
    [email protected]


    Your results may vary.. some restrictions may apply.. pricing and participation may vary.. not available in all states.. professional driver closed course..quantities limited..

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width