Easy Question For You Re: External Data

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • paynemdp
    New Member
    • Nov 2007
    • 10
    • 3.6.x

    Easy Question For You Re: External Data

    VB 3.6.8
    External Data Feed posting recent posts to an html page.

    PROBLEM: In IE (v7) only (not FF), this error message prevents feed from displaying in IE:

    Here's the error message:

    "Threads is undefined" line 635 (line 635 = "for (i in threads)"

    QUESTION: What is wrong with the "for (i in threads)"?

    Here's the code:

    <script src="http://fixmyuglycredit.com/forum/external.php?type=js" type="text/javascript"></script>

    <script type="text/javascript">

    <!--

    document.writeln("<ul style='color: #123456;list-style-position: inside;width:137px;padding:0px;margin:0px;padding-left:4px;' >");

    for (i in threads)

    {

    document.writeln("<li style='font-weight:bold;font-size:12px;color:#000000;padding-top:5px;' ><a href='#' style='font-weight:bold;font-size:12px;color:#000000;padding-top:5px;text-decoration:none;' >" + threads[i].title +"</a></li>");

    }

    document.writeln("</ul>");

    -->

    </script>


    I want to thank you in advance for helping me resolve this long-standing issue that received no response from vb tech support.

    Mike
  • calorie
    Senior Member
    • May 2003
    • 407

    #2
    Are you using anything to compress the HTML source code? What is the link to the page that contains that JavaScript?

    Comment

    • paynemdp
      New Member
      • Nov 2007
      • 10
      • 3.6.x

      #3
      Thanks, Carrie, for responding to my ongoing challenge with this feed.

      The page is protected by amember at http://www.fixmyuglycredit.com/members/membershome.html

      Nothing to compress the html.

      From vBulletin's js Data Feed Provider, the feed is supposed to appear in the right column.

      Mike

      Comment

      • vitoreis
        New Member
        • Nov 2005
        • 23
        • 3.8.x

        #4
        paynemdp, try
        PHP Code:
        for (var i in threads
        and tell us if it works

        Comment

        widgetinstance 262 (Related Topics) skipped due to lack of content & hide_module_if_empty option.
        Working...