SitePoint Sponsor

User Tag List

Page 2 of 2 FirstFirst 12
Results 26 to 27 of 27
  1. #26
    Unobtrusively zen silver trophybronze trophy
    paul_wilkins's Avatar
    Join Date
    Jan 2007
    Location
    Christchurch, New Zealand
    Posts
    14,676
    Mentioned
    99 Post(s)
    Tagged
    4 Thread(s)
    Quote Originally Posted by ryoka012 View Post
    Hi,

    I have change my code documents.forms['transfer'] to this.submit(); but still the old error appear on the browser "Object doesn't support this property or method"
    On further investigation, it seems that you are also using inline event handlers, which have no useful this keyword for their context.

    I see that you've passed the this keyword to the function as a jQuery wrapped value, so something like this should work:

    Code javascript:
    sVal.parents('form').submit();

    and likewise for the similar function that uses uVal
    Programming Group Advisor
    Reference: JavaScript, Quirksmode Validate: HTML Validation, JSLint
    Car is to Carpet as Java is to JavaScript

  2. #27
    SitePoint Zealot
    Join Date
    Mar 2011
    Posts
    173
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Hi,

    It works..Thanks for your help..


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
  •