SitePoint Sponsor

User Tag List

Results 1 to 3 of 3

Thread: object required

  1. #1
    SitePoint Wizard simplecode's Avatar
    Join Date
    Jun 2006
    Posts
    1,129
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    object required

    In javascript I want to catch the error object required, how can I do this?

  2. #2
    SitePoint Wizard
    Join Date
    Nov 2004
    Location
    Nelson BC
    Posts
    2,310
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Code:
    try {
    	var thing = new myobject();
    } catch(e) {
    	alert("there was an error creating object");
    }

  3. #3
    SitePoint Wizard simplecode's Avatar
    Join Date
    Jun 2006
    Posts
    1,129
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    One page which is created after no. of files inclusion in its header now a script error is coming in the output err : Object required.
    I want to neglect this java script error in any case if it is occurring in the output page.

    instead of finding the err i want to neglect this java script error in any case


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
  •