Register

If this is your first visit, please click the Sign Up now button to begin the process of creating your account so you can begin posting on our forums! The Sign Up process will only take up about a minute of two of your time.

Results 1 to 2 of 2
  1. #1
    Junior Member
    Join Date
    Mar 2009
    Posts
    3
    Member #
    18615
    Here is the pastey of my php script after server side compilation. http://pastey.net/113064

    There are three textboxes whom's content should be changed by javascript. The first two boxes changes successfully, but not the third. The Opera error console error states

    Quote Originally Posted by opera error console
    JavaScript - http://localhost:*****/confirmOrder....mp;%2FGraXXL=0
    Event thread: click
    Error:
    name: TypeError
    message: Statement on line 6: Cannot convert undefined or null to Object
    Backtrace:
    Line 6 of inline#1 script in http://localhost:*****/confirmOrder....p;%2FGraXXL=0: In function confirmed
    document.confirmform.confirmformcontent.value = "testcontent";
    Line 1 of function script
    confirmed()
    ...
    stacktrace: n/a; see 'opera:config#UserPrefs|Exceptions Have Stacktrace'
    Thanks for any help

  2.  

  3. #2
    Senior Member
    Join Date
    Jun 2005
    Location
    Atlanta, GA
    Posts
    4,146
    Member #
    10263
    Liked
    1 times
    Did you fix it? If not, it looks like an issue with it not finding the field, though the naming looks right. Regardless, you should not be accessing fields like that. Give them each an id and then use document.getElementById to get a hold of them, it will be easier.


Remove Ads

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
All times are GMT -6. The time now is 05:10 AM.
Powered by vBulletin® Version 4.2.3
Copyright © 2019 vBulletin Solutions, Inc. All rights reserved.
vBulletin Skin By: PurevB.com