Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 5 of 5
  1. #1
    Senior Coder chump2877's Avatar
    Join Date
    Dec 2004
    Location
    the U.S. of freakin' A.
    Posts
    2,802
    Thanks
    19
    Thanked 157 Times in 148 Posts

    Error: Invalid Argument in IE7

    I'm getting this error on the following page: http://www.mediamogulsweb.com/client...stingHTML.html

    Error: Invalid Argument
    Only in IE7 so far...it works in Mozilla, with no errors...

    The error occurs when you click on a trash can, and say "Yes" (I want to delete the chosen record)...(Also, it's OK if you delete a record -- I haven;t coded the deleting part yet, so nothing will happen)...

    The error is preventing the "Working" div from loading....what is happening here?

    Thanks.
    Regards, R.J.

    ---------------------------------------------------------

    Help spread the word! Like my YouTube-to-Mp3 Conversion Script on Facebook !! :)
    [Related videos and tutorials are also available at my YouTube channel and on Dailymotion]
    Get free updates about new software version releases, features, and bug fixes!

  • #2
    Senior Coder A1ien51's Avatar
    Join Date
    Jun 2002
    Location
    Between DC and Baltimore In a Cave
    Posts
    2,717
    Thanks
    1
    Thanked 94 Times in 88 Posts
    It has an issue with

    workingBox.style.top


    Eric
    Tech Author [Ajax In Action, JavaScript: Visual Blueprint]

  • #3
    Senior Coder chump2877's Avatar
    Join Date
    Dec 2004
    Location
    the U.S. of freakin' A.
    Posts
    2,802
    Thanks
    19
    Thanked 157 Times in 148 Posts
    the problem appears to have been the argument I was using to detect browser, and the order in which I was detecting the browser:

    this works:

    Code:
                if (window.ActiveXObject)
                    document.getElementById('workingBox').style.top = document.body.scrollTop + 145 + 'px';
                else
                    document.getElementById('workingBox').style.top = window.pageYOffset + 145 + 'px';
    this doesn;t work:

    Code:
                if (window.XMLHttpRequest)
                    document.getElementById('workingBox').style.top = window.pageYOffset + 145 + 'px';
                else
                    document.getElementById('workingBox').style.top = document.body.scrollTop + 145 + 'px';
    Regards, R.J.

    ---------------------------------------------------------

    Help spread the word! Like my YouTube-to-Mp3 Conversion Script on Facebook !! :)
    [Related videos and tutorials are also available at my YouTube channel and on Dailymotion]
    Get free updates about new software version releases, features, and bug fixes!

  • #4
    Senior Coder A1ien51's Avatar
    Join Date
    Jun 2002
    Location
    Between DC and Baltimore In a Cave
    Posts
    2,717
    Thanks
    1
    Thanked 94 Times in 88 Posts
    Can I ask why are you not checking to see if the page.. and scroll.. are supported instead of some other unrelated property?

    It is sort of checking that it is a fruit when it can be an apple, grape, orange, etc.

    Eric
    Tech Author [Ajax In Action, JavaScript: Visual Blueprint]

  • #5
    Senior Coder chump2877's Avatar
    Join Date
    Dec 2004
    Location
    the U.S. of freakin' A.
    Posts
    2,802
    Thanks
    19
    Thanked 157 Times in 148 Posts
    Good point...

    Code:
            if (window.pageYOffset)
                document.getElementById('workingBox').style.top = window.pageYOffset + 145 + 'px';            
            else
                document.getElementById('workingBox').style.top = document.body.scrollTop + 145 + 'px';
    Regards, R.J.

    ---------------------------------------------------------

    Help spread the word! Like my YouTube-to-Mp3 Conversion Script on Facebook !! :)
    [Related videos and tutorials are also available at my YouTube channel and on Dailymotion]
    Get free updates about new software version releases, features, and bug fixes!


  •  

    Posting Permissions

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