Friday, 8 May 2009
Last post
1.
I've used the code for the shopping cart and it worked but when i tried to add delete (check box) in the shopping cart, it didnt work

(" value="1">)
I've used the code for the shopping cart and it worked but when i tried to add delete (check box) in the shopping cart, it didnt work
There was a button there which any time i cheked it and click on update button it didnt make any change to the shopping cart so i searched on google about the delete button and how it works in asp and found that for this code
i need to have asp codes in the asp section of the page which should be in the update sectio so that when i press update button if the delete box is checked, the item will be removed
before updating that asp codes i had these codes that are shown below:
IF Request( "updateQ" ) <> "" THEN
FOR i = 0 TO UBOUND( localCart, 2 ) n
ewQ = TRIM( Request( "pq" & localCart( CARTPID, i ) ) )
IF newQ = "" or newQ = "0" THEN
localCart( CARTPID, i ) = ""
ELSE
IF isNumeric( newQ ) THEN
localCart( CARTPQUANTITY, i ) = newQ
END IF
END IF
NEXT
END IF
and i had to add these codes to it so that the delete button will be connected to the update button and these are my coeds after editing it
IF Request( "updateQ" ) <> "" THEN
FOR i = 0 TO UBOUND( localCart, 2 )
newQ = TRIM( Request( "pq" & localCart( CARTPID, i ) ) ) deleteProduct = TRIM( Request ( "pd" & localCart( CARTPID, i ) ) )
IF newQ = "" or newQ = "0" or deleteProduct <> "" THEN
localCart( CARTPID, i ) = "" ELSE
IF isNumeric( newQ ) THEN
localCart( CARTPQUANTITY, i ) = newQ
END IF
END IF
NEXT
END IF
and now if i check the delete check box and click on update cart button it will remove the item from the shopping cart.
2.
The second problem that i faced, was page post.asp which didnt work so i searched ecommerce forum and on this link:
which nick has posted this message:
The server is a Windows 2003 server which doesn't support CDONTS but CDOSYS. However unfortunately the server is not able to send emails due to the set up of the University email system, Nick.
so i removed the asp codes from that page and the page worked but, obviously it doesnt send any email to the user
Wednesday, 11 March 2009
week 6
I've changed some of the stuff of the website and followed the style of storyboard from ecommerce forum and this is the webpage that i've submited for the course work 1


Sunday, 8 March 2009
week 5
I changed the homepage because it was too difficult to put the thing in the right place with layer, used tables, made a new logo in photoshop, put the london met logo in the bottom left-hand corner of the website and remove the stuff that i didn't need for coursework 1
I finished everything and every thing seems to be working and in the right place
Thursday, 26 February 2009
week4
This week i looked for other related websites to see how they design their websites and get some ideas about it.
I almost made the home page just need to make a better logo and find a better way to adjust the layers in order to display them in the right place and i think i need to make my images smaller and same size
Sunday, 22 February 2009
week3
In this week i defined site in dreamweaver and built my temporary home page and started working on the homepage.
First i had problem with my username and password so i emailed nick and he reset my account and the problem was solved
Then when i made the database connection successfully, the table didn't apear so first i searched for it on google and ecommerce forum and because i couldn't find anything, i submited a post in ecommerce forum but it didnt help me so searched more and found out that i need to empty the cache and it solved my problem and i got the records from database on my page but i couldn't get the image from it so i went to the ecommerce forum and looked for it and found out that the way that i was doing it was wrong because i was doing it the same way as other records and i had to use insert tab in dreamweaver and the image option and then use the sourse option and address the image metadata from database in order to get the image displayed.
In order to get 2 records from database on one page i had to use repeat region from server behavior but first time that i used it it just repeated one record and it didn't repeat the other records after couple of hours of searching with other student i found out from codes that because those records are not in the repeat section it doesn't repeat it so i copied the codes for the other records and put it in the repeat section and it worked; later on i found out that i need to choose all the records that i want repeat and then make the repeat region for all of them.
In this week i submitted my domain name and host name in search engines and exchanged links with other student and put my domain name in some forums signature that i'm a member of and submited my domain name in some backlink websites
Tuesday, 17 February 2009
Week 2
Subscribe to:
Posts (Atom)

