468,505 Members | 1,545 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 468,505 developers. It's quick & easy.

How to pass Data from One Html Page to Other using Javascript and/or Html Only

Hi...
I am creating a dummy project for collage.
Here I had choosen my project as Jewelleryshoping.
Now the scenerio is like that thier are jewellry item which I had display in table format with images using form tag for button.

Now the case is like I dont want to use any database like sql,serversite,php etc. I just want to use html or javascript or extremely XML.

Now I want that When any person select Add to cart to particular jewellery item then the Item cado and price is stored in another html page named "addtocart.html" if possible row and coloum wise.
I am just creating a static dummy site for my project.
here the code I used in main.html for jewellery items.

[HTML]<html>
<head>
<title>Arpit</title>
</head>
<body>
<table width=680 border=1 align="LEFT" cellPadding=0 cellSpacing=0>
<TBODY>
<TR>
<TD width=337 height="120" vAlign=top><br>
<form>
<img src="..\images\r1.gif" align=left>
<span class="tickertext1">
Item Code:R101<br>
Item Price:RS.9865</span><br> <input type="submit" Value="Detail"size=30%>
<input type="submit" Value="Add to List" size=30%>
</form>
</TD>

<TD vAlign=top width=337>
<form>
<img src="..\images\r2.gif"align=left><br>
<span class="tickertext1">
Item Code: R102<br>
Item Price:Rs.7584</span><br> <input type="submit" Value="Detail"size=30%>
<input type="submit" Value="Add to List" size=30%>
</form>
</TD>
</tr>


<TR>
<TD width=337 height="120" vAlign=top><br>
<form>
<img src="..\images\r3.gif" align=left>
<span class="tickertext1">
Item Code:R103<br>
Item Price:Rs.3466</span><br> <input type="submit" Value="Detail"size=30%>
<input type="submit" Value="Add to List" size=30%>
</form>
</TD>

<TD vAlign=top width=337>
<form>
<img src="..\images\r4.gif"align=left><br>
<span class="tickertext1">
Item Code: R104<br>
Item Price:Rs.7656</span><br> <input type="submit" Value="Detail"size=30%>
<input type="submit" Value="Add to List" size=30%>
</form>
</TD>
</tr>





<TR>
<TD width=337 height="120" vAlign=top><br>
<form>
<img src="..\images\r5.gif" align=left>
<span class="tickertext1">
Item Code:R105<br>
Item Price:Rs,8765</span><br> <input type="submit" Value="Detail"size=30%>
<input type="submit" Value="Add to List" size=30%>
</form>
</TD>

<TD vAlign=top width=337>
<form>
<img src="..\images\r9.gif"align=left><br>
<span class="tickertext1">
Item Code: R109<br>
Item Price:Rs,9865</span><br> <input type="submit" Value="Detail"size=30%>
<input type="submit" Value="Add to List" size=30%>
</form>
</TD>
</tr>








<TR>
<TD width=337 height=10 Align=center><br>
<form>

<a href="ring1.html" target="f3"><input type="Button" Value="<< PREVIOUS"size=30%></a>
</form>

</TD>
<TD width=337 height=10 Align=center><br>
<form>

<a href="ring2.html" target="f3"><input type="Button" Value="NEXT >>"size=30%></a>

</form>



</TD>
</TR>
</TBODY>
</TABLE>
</body>
</html>[/HTML]
Sep 26 '07 #1
1 2542
gits
5,390 Expert Mod 4TB
hi ...

welcome to TSDN ...

i've moved the thread from the js-articles section to the forum for you ... please don't post questions in the articles section

kind regards
Sep 26 '07 #2

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

3 posts views Thread by Chris | last post: by
2 posts views Thread by KFactor | last post: by
reply views Thread by NPC403 | last post: by
reply views Thread by fmendoza | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.