Hey i was just wondering why i keep getting a problem with Uncaught TypeError: Object [object Object] has no method ‘editable’.
It only came up after i sorted Uncaught TypeError: Object [object Object] has no method ‘jWindowCrop’. It was due to the placement of the scripts before - although im not sure if thats the problem as they look neat now and jquery is before all.
Also i was wondering about onsubmit=“return checkCoords();” as that was also appearing that checkCoords() does not exist yet it used to work. I was using the jWindowCrop v1.0.0 script.
Thanks
Lewis
index.php
[php]
<form action="product_search.php" method="GET">
<div id="search_bar">
<input type="text" name="search_wine" id="search_wine">
<input type="submit">
</div>
</form>
<a id="shopping_wrapper">
<p>Cart (0 Bottles) ?</p>
<span style="font-family:arial,sans-serif; font-size:11px; color:#FF0000; float:left; margin-top:-10px; width:200px"> </span>
</a>
</div>
</div>
<div class="right">
<h1>Need Advice?</h1><h2><div class="edit_area1_2" id="6">019841241241</div></h2>
</div>
</div>
</div>
</div>
<div class="right">
<h1 class="edit_area1_1" id="5">Build your custom crates. 12 bottles per crate.</h1>
</div>
</div>
</div>
<div class="advertising_wrapper"></div>
</div>
<div id="right_side_page">
<div id="title_banner">
<p class="product1" id="5-product_name">marselan</p>
</div>
<div class="left">
<a id="profile_1" class="image_change"><img src="content/images/product_uploads/large/default.jpg" width="410px" style="margin-left:0px;" alt="Product"></a>
</div>
<div class="right">
<table cellspacing="0" cellpadding="8px" style="margin-top:5px; width:100%">
<tbody><tr><th>Availability</th>
<td style="padding:0px; margin:0px">
<img src="content/images/layout/cross.png" style="float:left; padding:0px; margin:0px; margin-top:10px; " alt="Cross">
<p style="float:left; margin:0px; padding:0px;"></p><div class="product3" style="height:16px; margin-top:6px; padding-top:10px; padding-left:30px;" id="5-stock_level">Out Of Stock</div><p></p></td>
</tr>
<tr>
<th>Product ID</th>
<td>5</td>
</tr>
<tr>
<th>Domaine</th>
<td style="text-transform:capitalize;" class="product1" id="5-domaine">Domaine Lalaurie</td>
</tr>
<tr>
<th>Principal Grape(s)</th>
<td style="text-transform:capitalize;" class="product1" id="5-dominant_grapes">Marselan</td>
</tr>
<tr>
<th>Origin</th>
<td style="text-transform:capitalize;" class="product1" id="5-origin">I.G.P Pays d'Oc</td>
</tr>
<tr>
<th>Colour</th>
<td style="text-transform:capitalize;" class="product4" id="5-colour">red</td>
</tr>
<tr>
<th>Vintage</th>
<td class="product1" id="5-vintage_year">2009</td>
</tr>
<tr>
<th style="color:#9E0739; border-bottom:0px;">
<p style="margin-top:0px;">Price</p>
</th>
<td style="color:#9E0739; border-bottom:0px; font-size:16px;">
<p style="float:left; margin:2px;">£</p>
<div style="float:left; margin:2px;" class="product5" id="5-bottle_price">12</div>
<p style="float:left; margin-top:2px; margin-left:0px; margin-right:0px;">.</p>
<div style="float:left; margin-top:2px;" class="product6" id="5-bottle_price2">12</div>
</td>
</tr>
</tbody></table>
<div class="product_text"><div class="product2" id="5-product_description">weeeeeeeeeeeeeeeeeeeeeeeee</div></div></div>
</div>
</div>
<iframe src="plus_cms/image_crop.php" style="width:100%; float:left; height:600px;"><p>Your Browser Is Out-Of-Date.</p></iframe>
</div>
</div>
</div>
</div>
<div class="bottom">
<div class="page_width_center">
<p>Copyright © <a href="plus_cms/login.php">oliverandbird.co.uk</a> - All Rights Reserved. Website Designed By <a href="http://www.tomlewismedia.co.uk" target="_BLANK">Tom Lewis Media</a>. </p>
</div>
</div>
Image Upload:
[code]
<!-- Javascript -->
<script type="text/javascript" src="javascript/jquery.js"></script>
<script type="text/javascript" src="javascript/bar.js"></script>
<!-- Stylesheets -->
<link type="text/css" rel="stylesheet" href="stylesheets/bar.css" media="screen"/>
Upload Image
Image Crop:
[code]<?php
$visited2 = $_COOKIE[“image_upload”];
$src1 = ‘…/content/images/product_uploads/large/’;
$src2 = ‘…/content/images/product_uploads/temp/’;
$first_image = $src1.“default.jpg”;
$second_image = $src2.“default.jpg”;
if (isset($_POST[‘image2’])) {
header(“Cache-Control: no-cache, must-revalidate”);
header(“Expires: Sat, 26 Jul 1997 05:00:00 GMT”);
header(“Location:image_crop.php”);
$targ_w = 300;
$targ_h = 500;
$im = @imagecreatetruecolor($targ_w, $targ_h) or die('Cannot Initialize new GD image stream');
$output_file = $second_image;
$img_r = imagecreatefromjpeg($first_image);
$image = imagecopyresampled($im,$img_r,0,0,$_POST['x'],$_POST['y'], $targ_w,$targ_h,$_POST['w'],$_POST['h']);
imagejpeg($im, $output_file);
}
?>
|
|