Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

Coding Forum


You are currently viewing our Coding Forum as a guest. Please register to participate.
Login



Reply
I cannot make sense of this error message
Old 08-27-2010, 09:52 PM I cannot make sense of this error message
Sleeping Troll's Avatar
Ultra Talker

Posts: 351
Name: Butch Begy
Trades: 0
copied from firebug console...

uncaught exception: [Exception... "Not enough arguments [nsIDOMWindowInternal.scroll]" nsresult: "0x80570001 (NS_ERROR_XPC_NOT_ENOUGH_ARGS)" location: "JS frame :: http://ticktach.biz/news/ :: <TOP_LEVEL> :: line 19" data: no]

Line 0

Follow this url, the one above is iframe contents: http://ticktach.com

This is the code for the page in the iframe that is causing the problem:

PHP Code:
<?php
$type
=$_REQUEST["Type"];
$term=$_REQUEST["Term"];
$count=$_REQUEST["Count"];
$menu=$_REQUEST["Menu"];
$ch curl_init(); 
$timeout 0// set to zero for no timeout 
curl_setopt ($chCURLOPT_URL"http://api.bing.net/json.aspx?AppId=97gyeg7gtt87tt7tf8t7vy70t7yv097ty4v97ytn57nn57n753&Market=en-US&Query=".$term."&Sources=".$type."&".$type.".Count=".$count."&JsonType=raw");
curl_setopt ($chCURLOPT_RETURNTRANSFER1); 
curl_setopt ($chCURLOPT_CONNECTTIMEOUT$timeout); 
$search curl_exec($ch); 
curl_close($ch);
$Response json_decode($search,true);
if (
$term == "Top")$term "Top News Stories";
$term str_replace("site:","",$term);  
$term explode("."$term);
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
     <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
    <meta http-equiv="X-UA-Compatible" content="IE=8" />
    <link href = "style.css" rel = "stylesheet" type = "text/css">
    <script type = 'text/javascript' src = '../scriptaculous/lib/prototype.js'></script>
    <script type = 'text/javascript' src = '../scriptaculous/src/scriptaculous.js'></script>
</head>
<body>
<div id = "container">
<div id = "text1" style = "top: '0px'">
<?php
foreach($Response['SearchResponse'][$type]['Results'] as $item)
{
    echo(
"
    <div onmouseover = \"clearInterval(Scroll)\" onmouseout = \"clearInterval(Scroll); Scroll = setInterval ('scroll()', 50)\">        
        <div class = 'Source'>
$term[0]</div>
        <div class = 'Title'><a href='
$item[Url]' target='_blank' style='color:yellow'><b>$item[Title]<b></a></div>
        <div class = 'Description' style='color:white'>
$item[Snippet]</div>
        <br>
    <div>
        "
);
}
?>
</div>
<div id = "text2" style = "top: '0px'">
<?php
foreach($Response['SearchResponse'][$type]['Results'] as $item)
{
    echo(
"
    <div onmouseover = \"clearInterval(Scroll)\" onmouseout = \"clearInterval(Scroll); Scroll = setInterval ('scroll()', 50)\">        
        <div class = 'Source'>
$term[0]</div>
        <div class='Title'><a href = '
$item[Url]' target='_blank' style='color:yellow'><b>$item[Title]<b></a></div>
        <div class='Description' style='color:white'>
$item[Snippet]</div>
        <br>
    <div>
        "
);
}    
?>
</div>
</div>
<?php
if(file_exists("../fills/$menu"))
{
    echo(
file_get_contents("../fills/$menu"));
}
?>
<script type = "text/javascript">
$("container").style.height = document.viewport.getHeight() + 'px';
$("container").style.width = document.viewport.getWidth() + 'px';
Scroll = setInterval ("scroll()", 50);
function Scroll()
{
        if (parseInt($('text1').style.top) == 0)
        {
            $('text2').style.top = $('text1').getHeight() + 'px';
        }
        if (parseInt($('text2').style.top) == 0)
        {
            $('text1').style.top = $('text2').getHeight() + 'px';
        }
        $('text1').style.top = parseInt($('text1').style.top) - 1 +'px';    
        $('text2').style.top = parseInt($('text2').style.top) - 1 +'px';            
}
</script>
__________________
Sleeping Troll, EMUSE, Mind Expansion...Truly serendipity!

Last edited by Sleeping Troll; 08-28-2010 at 12:55 AM..
Sleeping Troll is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Reply     « Reply to I cannot make sense of this error message
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.11696 seconds with 12 queries