MySpace Developer Platform

A Place For Developers

Welcome Developers!

in

Welcome!

in

javascript error in IE7, on comment postTo

Last post 05-09-2008 1:57 PM by Chris Cole. 3 replies.
Page 1 of 1 (4 items)
Sort Posts: Previous Next
  • 05-09-2008 11:20 AM

    • Geoff
    • Top 500 Contributor
    • Joined on 03-08-2008
    • Posts 13

    javascript error in IE7, on comment postTo

    i am seeing a js error when my app throws up a comment postTo, when i am using ie7...

    here is a screenshot of when the js error is thrown:

    http://www.grabup.com/uploads/03a980c531ebf4e8409b9fffa4d0b1ad.png

    and here is a screenshot of what code throws it, in the IE JustInTime debugger:

    http://www.grabup.com/uploads/67a3e10eee4514ebde536c5ae67bbd67.png

    anyone else seen this? is MySpace working on it?

    Geoff

    Filed under:
  • 05-09-2008 12:39 PM In reply to

    Re: javascript error in IE7, on comment postTo

    I am not able to replicate this using our test app in IE7: http://profile.myspace.com/index.cfm?fuseaction=user.viewprofile&friendid=364361327  

    Can you install that app and see if you get the same error - if so, can you clear your cache and try again.

  • 05-09-2008 12:42 PM In reply to

    Re: javascript error in IE7, on comment postTo

     Is the profile URL you're sending in null?  It may be trying to access it and choking on it.. just a guess.

  • 05-09-2008 1:57 PM In reply to

    Re: javascript error in IE7, on comment postTo

     I see the code path where the error would occur.  This would not be IE7 specific.  If the profile link value is not set/null the link DOM element will not be constructed.  We'll go ahead and fix that.  Normally this will never be the case.  It could be that the app in question is not fully constructing a person object.  If you don't specify the profile URL when constructing the person this error would occur.

    //per is a person object

    per.setField(opensocial.Person.Field.PROFILE_URL, some_url); 

     

    If you are hand-coding (instead of using a newFetchPersonRequest call) a person object this would occur.  Regardless, we'll make this code more robust.

     

     

Page 1 of 1 (4 items)