i have come across few problems where i couldn't find a satisfiable solution .
the problem in detail;;
1. in this web site there are several pages , that contains products. and when a user clicks on a product (clicks on a checkbox) the product should go to a shopping cart which is on another page or a pop up window.
2. when i select the checkbox , the present window gets updated with the product details, and the pop up window open seperately (but blank .. no items are displayed there)
3. and when i go to another page and click on a product the products i have alreadychosen gets replaced, by the new products.
i no this is not a good thing to do (i mean asking for help) , but i have tried all, to get this thing work.
i will enclose my javascript code could you be great enough to check it and tell me where i went wrong ...
code::::::::::::::;
Expand|Select|Wrap|Line Numbers
- var store= new Array();
- store[0]="these are just data"; // the data are stored in these arrays
- store[1]="jau";
- store[2]="s";
- store[3]="jr";
- store[4]="shiiii";
- store[5]="jpoler";
- store[6]="hhddfl";
- store[7]="jmaddddddder";
- function testButton (form){
- window.open ("pl.html","mywindow","menubar=1,resizable=1,width=350,height=250");
- window.write ("<table border = \"1\"" + "width = \"100\">");
- window.write ("<thread> <th width = \"100\"" + "align = \"left\"> Count<th align = \"left\">" + "Frequency</th></thread><tbody>");
- for (var sha = 0;sha < 100; sha++) {
- if (form.rad[sha].checked)
- { // the array is called so the data is displayed
- //store=sha;
- window.write ("<tr><td>" + store[sha] +"</td><td>"+ sha + "</td></tr>");
- }
- }
- window.write ("</tbody</table>>");
- }
[html]
<input type="button" value="hi" onClick="document.testform.submit();testButton(thi s.form)"/>
[/html]
plzzzz help................
and plzzz reply as soon as posible
regards