OrgCode null or not an object

Newsgator Forums
Home       Members    Calendar    Who's On
Welcome Guest ( Login | Register )
        



OrgCode null or not an object Expand / Collapse
Author
Message
Posted 10/29/2007 5:40:05 AM


Forum Deity

Forum Deity

Group: Moderators
Last Login: Yesterday @ 9:21:59 PM
Posts: 1,265, Visits: 3,869
My buzz boxes are showing up with the error:

 'orgCode' is null or not an object.

They show up with this error in preview as well as live.

here is the code if it helps:

HTML:

{if 
    LoadScript("http://clickcaster.com/plugin_assets/clickcaster_engine/javascripts/create_player.js", "window.create_player != null") &&
 LoadScript(BuzzAppUrl+ "../NGScripts/BuzzTemplates/buzzFooter.js", "window.returnBuzzFooter != null") &&
 LoadScript(BuzzAppUrl+ "../NGScripts/BuzzTemplates/videoPlayer.js", "window.returnVideoPlayer != null") &&
 LoadScript(BuzzAppUrl+ "../NGScripts/BuzzTemplates/adRotator.js", "window.returnAdRotator != null") &&
 LoadScript(BuzzAppUrl+ "/Toolbar/PLToolbar_v3.js", "window.NewsGator!=null")
}
<div class="ng_buzzContainer ng_summaryList">
 {for Post in Data}
  <div style="padding:2px; border-top:1px solid #eeeeee;" class="ng_post">
            <table cellspacing="0" cellpading="0" width="97%" class="ng_buzz_table">
            <tr>
              <td>
               <a href="${Post.HtmlUrl|html}" onclick="${AttentionClickJS(Post)}" class="ng_postTitle" target="_blank" id="post_title_${Post.PostId}">
                   ${Post.Title|default:"(no title)"}
                </a>
                <br />
                <span class="ng_postInfo">
                   Published ${Post.PubDate|timeSince} ${% (Post.FeedName != '' ? 'by ' + Post.FeedName : '') %}
               </span>
              </td>
              <td align="right" valign="top" nowrap>
               {if Post.MediaRSS && Post.MediaRSS.Contents[0]}
                <a href="void(0)" onclick="populateVideoHolder('${Post.MediaRSS.Contents[0].Url}', '', '${Post.HtmlUrl}', event);" class="ng_buzz_playLink">
                   Play video
                   </a>
               {elseif Post.EnclosureUrl}
                <a href="void(0)" onclick="populateVideoHolder('${Post.EnclosureUrl}', '', '${Post.HtmlUrl}', event);" class="ng_buzz_playLink">
                   Play video
                   </a>
               {/if}
              </td>
             </tr>
    <tr>
     <td colspan="2">
     <!-- new toolbar -->
      <div class="ng_toolbar" ngVersion="1.6" id="bg_toolbar_${Post.PostId}"
        ngEmail         = ""
        ngRatings       = ""
        ngComment       = "none"
        ngIM   = "none"
        ngSave    = "none"
        ngDeleteSave = "none"
        ngPostId        = "${Post.PostId}"   
        ngFeed          = "${Post.FeedId}"
        ngEmailTitle    = "${Post.Title}"
        ngEmailData     = ""
        ngOrg           = "${OrgCode}"
        ngImgEmail      = "${BuzzAppUrl}/images/IconEmail.gif"
        ngImgComment    = "${BuzzAppUrl}/images/IconComment.gif"
        ngImgIM         = "${BuzzAppUrl}/images/IconIM.gif"
        ngImgSave       = "${BuzzAppUrl}/images/IconSave.gif"
        ngImgDeleteSave = "${BuzzAppUrl}/images/IconSave.gif"
        ngImgRatings    = "${BuzzAppUrl}/images/star_ratings2.gif">
       </div>
       <textarea id="txt_desc_$Post.PostId" style="display:none;">${Post.Description}</textarea>
     </td>
    </tr>
            </table>
     </div>
 {forelse}
  No posts found.
 {/for}
${returnBuzzFooter(BuzzId,BuzzObj.apiToken)}
 </div>
${returnVideoPlayer()}
${returnAdRotator()}
{/if}

OK, just as soon as I pasted this into the edit box, the error has now changed to

'orgCode' is undefined

Is this just a transient issue on your end?

critter42

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

Note: I am not employed by NewsGator Technologies in any capacity

Post #32626
Posted 10/29/2007 12:30:07 PM
NewsGator

NewsGator

Group: Administrators
Last Login: Yesterday @ 10:25:23 AM
Posts: 44, Visits: 161
Hey Critter,
Thanks for letting us know this was happening to your stuff. We found the bug in our code and fixed it. Your widgets are displaying the RSS content again.

By the way, I noticed something else from looking at the code you copied. You have a bunch of vestigial code used for making the toolbar work, but you are not using any toolbar functionality in your widgets (toolbar functionality is the rating stars, email a post, IM a post, etc...). You could clean up your code quite a bit, and reduce some risk of page errors by stripping or commenting out several lines of code.






Dan Borrego
NewsGator Technologies,
Technical Support, Syndication Services
Post #32637
« Prev Topic | Next Topic »


All times are GMT -7:00, Time now is 6:18am

Powered By InstantForum.NET v4.1.4 © 2008
Execution: 0.172. 8 queries. Compression Disabled.

NewsGator.com | Support | Developers | Partners | Press | Company
© Copyright 2003-2008  NewsGator Technologies, Inc. All Rights Reserved.
Copyright Information | Privacy Policy | Terms of Service
Microsoft Gold Certified Partner