Object doesn't support this property or method

I get an error Object doesn't support this property or method line 86 and a syntax error line 101.
<?php
session_cache_limiter('none');
session_start();
ob_start();
 
define('THIS PAGE', 'store');
 
include('../store/templates/header.php');
include ("vsadmin/db_conn_open.php");
 
if(isset ($_GET["url"])){
	$url = $_GET["url"];
}
 
$cardbg = $_POST["cardbg"];
echo $cardbg;
 
?>
<input type=hidden name='cardbg' value=".$cardbg;">
 
 
<script type="text/javascript" language="javascript1.2">
 
function HotSpot(target) {
	if (target != 'target-0') new Effect.Fade('target-0', {duration : .3});
	if (target != 'target-1') new Effect.Fade('target-1', {duration : .3});
	if (target != 'target-2') new Effect.Fade('target-2', {duration : .3});
	if (target != 'target-3') new Effect.Fade('target-3', {duration : .3});
	new Effect.Appear(target,{delay : .3, duration : .3});
	return false;
	}
</script>
 
<script type="text/javascript">
  function utmx_section(){
  }
  function utmx(){
  }
  ( function() {
      var k = '0790041258', d = document, l = d.location, c = d.cookie;
      function f( n ) {
        if( c ) {
          var i = c.index0f( n + '=' );
          if ( i >- l ) {
            var j = c.index0f( ';', i );
            return c.substring( i + n.length + 1, j < 0 ? c.length : j )
          }
        }
      }
      var x = f ('__utmx'), xx = f( '__utmxx' ), h = l.hash;
      d.write( '<sc'+'ript src="'+'http'+(l.protocol=='httpd:'?'s://ssl':'://www')+'.google-analytics.com'+'/siteopt.js?v=1&utmxkey='+k+'&utmx='+(x?x:'')+'&utmxx='+(xx?xx:'')+'&utmxtime='+new Date().valueOf()+(h?'&utmxhash='+escape(h.substr(1)):'')+'" type="text/javascript" charset="utf-8"></sc'+'ript>' )
     }
  )();
</script> 
 
<script>
 
} utmx("url",'A/B');
</script>
 
-<div id="body">
	<div id="body_container">
    	<!--<a href="products.php"><img src="../images/clear.gif" alt="clear" width="870" height="160" align="middle" border="0" />
        </a>-->
	<!--<div class="index-left">
    	<div class="box">-->
        	<div id="hotspot-target">
            </div>
        </div>
    </div>
<script>
if(typeof(urchinTracker)!='function')document.write('<sc'+'ript src="'+'http'+(document.location.protocol=='https:'?'s://ssl':'://www')+'.google.analytics.com/urchin.js'+'"></sc'+'ript>')
</script>
<script>
try {
_uacct = 'UA-6193748-1';
urchinTracker("/0790041258/test");
} catch (err) {}
</script>
 
<?php include "vsadmin/db_conn_open.php" ?>
<?php include "vsadmin/inc/languagefile.php" ?>
<?php include "vsadmin/includes.php" ?>
<?php include "vsadmin/inc/incfunctions.php" ?>
 
<!--#BeginLibraryItem -->
<!--"/Library/minicart.lbi"-->
<!--	<div align="right">
		<img src="images/shopping_cart.gif" width="135" height="16" align="right" alt="Shopping cart"/><br/>
</div><br/>
-->
<div style="position: absolute; left: 1290px; top: 50px; height: 400px; width: 100px"><?php include "vsadmin/inc/incminicart.php" ?>
<!--#EndLibraryItem-->
</div>
<form method="post" target="_self">
 
<p style="position: absolute; left: 375px; top: 175px;">Select your card and press Next</p>
<div style="position: absolute; left: 375px; top: 265px; height: 400px; width: 100px"><input type=radio align=middle value="0000004" name=cardbg></div>
<div style="position: absolute; left: 400px; top: 225px; height: 400px; width: 100px"><img src="../store/cardbg/cardbg_0004.png" border="0" height=100 width=200></a>
</div>
<div style="position: absolute; left: 375px; top: 380px; height: 400px; width: 100px"><input type=radio align=middle value="0000001" name=cardbg></div>
<div style="position: absolute; left: 400px; top: 340px; height: 400px; width: 100px"><img src="../store/cardbg/cardbg_0001.png" border="0" height=100 width=200></a>
</div>
<div style="position: absolute; left: 375px; top: 500px; height: 400px; width: 100px"><input type=radio align=middle value="0000002" name=cardbg></div>
<div style="position: absolute; left: 400px; top: 460px; height: 400px; width: 100px"><img src="../store/cardbg/cardbg_0002.png" border="0" height=100 width=200></a>
</div>
<div style="position: absolute; left: 635px; top: 380px; height: 400px; width: 100px"><input type=radio align=middle value="0000003" name=cardbg></div>
<div style="position: absolute; left: 660px; top: 340px; height: 400px; width: 100px"><img src="../store/cardbg/cardbg_0003.png" border="0" height=100 width=200></a>
</div>
<div style="position: absolute; left: 635px; top: 265px; height: 400px; width: 100px"><input type=radio align=middle value="0000005" name=cardbg></div>
<div style="position: absolute; left: 660px; top: 225px; height: 400px; width: 100px"><img src="../store/cardbg/cardbg_0005.png" border="0" height=100 width=200></a>
</div>
<div style="position: absolute; left: 800px; top: 600px;"><input type="image" name="cardbgtype" value="" src="images/next.png">
</div>
</form>
<?php
echo "<input type=hidden name='cardbg' value=$cardbg>";
 
$cardbg = $_POST["cardbg"];
 
//echo $cardbg;
 
$_POST[cardbg] == $_POST["cardbg"];
 
//once the submit button has been clicked
if(isset($_POST["cardbg"])) {
        $cardbg = $_POST["cardbg"];
        //$host = $_SERVER['HTTP_HOST'];
        //$uri = rtrim(dirname($_SERVER['PHP_SELF']), '/\\');
        //header('Location: http://192.168.221.128/dvrg04222009/store/?card_id=$cardbg'); //the page to redirect to
	echo "<script type='text/javascript'><!--
						window.location = 'http://192.168.221.128/dvrg04222009/store/?card_id=".$cardbg."'
						//-->
						</script>";
	ob_end_flush();
	exit();
}
 
 elseif(!isset($_POST["cardbg"])) {
        $cardbg = "";
        header('_$GET["url"]);//Location: http://192.168.221.128/dvrg04222009/edstore/design.php');
}
?>
<?php
include('../store/templates/footer.php');                
?>
</body>
</html>

Open in new window

ecross102301Asked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

ecross102301Author Commented:
can anyone come up with a solution on these errors?
0
Michel PlungjanIT ExpertCommented:
Please post the view-source code of this.
The line you mention is a line in the RENDERED html
0
Michel PlungjanIT ExpertCommented:
and why redirect with JS instead of PHP?
0
tomaugerdotcomCommented:
I can't get your error line numbers to match up to the code you've provided.

However, I do notice that you're referencing Effect.Fade() and Effect.Appear() which are Scriptaculous method calls, but there is no reference to the scriptaculous.js script anywhere in the code you've posted.

It may be in the header.php file, but otherwise, I'd say that's where you should start looking. If your script is expecting to be able to access these special effect methods that are part of the scriptaculous library, you have to make sure you load the library first. Refer to the scriptaculous library documentation if you're not already familiar with it: http://script.aculo.us/

T
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
AJAX

From novice to tech pro — start learning today.