Click to See Complete Forum and Search --> : Java Error


neomaxin
06-06-2003, 05:12 AM
Im having trouble with my quantity list box in my cart!!! When another quantity is selected nothing happens and the database doesnt get updated!!!


Plus the status bar on browser says that there is an error on the page when a new quantity is selected!!!


Its a object expected error!!!



The code is as follows:



<script language="php">
// this creates the quantity select box for the item.
$itemname = $row["itemId"];
$totalOption = $row["itemoptions"];

printf("<select name=\"$itemname\" onChange=\"UpdateQty(this, '$totalOption')\">");
for($i = 1; $i <= 5; $i++)
{
echo "<option ";
if($row["qty"] == $i)
{
echo " SELECTED>" . $i . "</option>";
} else {
echo ">" . $i . "</option>";
}
}
// and the delete link
echo "</select><br><br><a href=\"cart.php?action=remove_item&itemId=$itemname&itemoptions=$totalOption\">";
echo "<font color=\"red\" size=\"1\"><b>Remove</b></font></a>";
</script>




Thanks for any help you can give me

neomaxin
06-06-2003, 05:27 AM
try adding this item to your cart then in the cart try changing the quantity!!!

http://www.ukcruisescene.com/shop/index.php?prodID=mon-mou-5.6-001



If you need any more information just let me know!!!

neomaxin
06-06-2003, 01:58 PM
can anyone help???:(

neomaxin
06-07-2003, 05:28 AM
???

Charles
06-07-2003, 05:42 AM
Considering that you are posting in a JavaScript forum a question titled "Java Error" - and JavaScript and Java are two very different languages - and that your question really seems to be about something that looks like it might be PHP - yet a third language, I would say that no, nobody on this JavaScript forum can help you.

neomaxin
06-07-2003, 05:53 AM
Originally posted by Charles
Considering that you are posting in a JavaScript forum a question titled "Java Error" - and JavaScript and Java are two very different languages - and that your question really seems to be about something that looks like it might be PHP - yet a third language, I would say that no, nobody on this JavaScript forum can help you.


well hopefully if it says Java then probs more people will look!!! and im sure if its very different then people will know soon enough ay :p

Alien Man
06-07-2003, 07:22 AM
Try posting or searching at one of these. It's dedicated to Java

http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi

Alien Man
06-07-2003, 07:34 AM
Try posting or searching at one of these. It's dedicated to Java

http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi

neomaxin
06-07-2003, 09:50 AM
Thanks;)