Results 1 to 3 of 3

Thread: object expected error

  1. #1

    Thread Starter
    Frenzied Member
    Join Date
    Jun 2005
    Posts
    1,170

    Thumbs up object expected error

    I don't know what's going on but I have a js file, and I call it in my default page Page_load, but every time when I go to my default page, I am getting the object exprected error from javascript, but if I sign in and then redirect to that default page, the js code got executed correctly without any errors... I am clueless at this point.


    Code:
    ImgUsers.Attributes.Add("onload", "javascript:ResizeImage('ctl00_ContentPlaceHolder1_ImgUsers', '450', '400');");

  2. #2
    PowerPoster gep13's Avatar
    Join Date
    Nov 2004
    Location
    The Granite City
    Posts
    21,963

    Re: object expected error

    Hey,

    Can you post the ResizeImage javascript function?

    Gary

  3. #3

    Thread Starter
    Frenzied Member
    Join Date
    Jun 2005
    Posts
    1,170

    Re: object expected error

    This is pretty much the script... I just want to see if the function is called.

    Code:
    function ResizeImage(ImgControlID, newWidth, newHeight)
    {
       alert("test");
    }

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