Jump to content

matthewordie

Members
  • Posts

    9
  • Joined

  • Last visited

matthewordie's Achievements

Newbie

Newbie (1/7)

0

Reputation

  1. http://matc.studentsites.net/restorff/vico...final/shop.htmlThis is a mock shopping cart I made. It works fine testing on my computer. But online it acts strangely. When you add items and go to your shopping cart that's all fine. But once you fill out the forms on the cart page and submit them the next page says 'can't be displayed'. However if you refresh the page that won't display... it works just fine. It also does this with the page after that. Any idea what would do this? I've tried multiple browsers on multiple computers. Anyone mind taking a look?Edit: I figured it out. I changed my method to "get". Works correctly now.
  2. I'm using a simple asp script to send some form data to an email address. Right now I post the data to my asp page then the user has to hit the back button to get back to the website. How can I automatically redirect back to the site once the asp has sumbited my form data to my email?
  3. That was what I was looking for thanks. One othe question...On my "add" buttons on my page: http://matc.studentsites.net/restorff/vico...final/shop.htmlWhen you click it... it goes to my asp page. How would I submit it so it just sends the form data to the page while staying on the page?
  4. I'm still a little confused. So I submit my form data to an asp page with the "action="aspfile.asp". I then use the Request.Form to grab the data. How can I put the data back onto the page? So what would the code for the asp be? <%Session.Request.Form = variable%> I guess I'm really unclear about the whole thing still. ~_~
  5. Hi, first off I have zero knowledge of asp coding so go easy on me please. I'm trying to carry the value of my forms over from page to page. I'm looking for a very simple way to do this. My code is all javascript and I thought about using cookies, but my teacher suggested asp session variables since I have a small asp file that sends my form data to my email already. Anyways here is my page so you can see what I'm talking about...http://matc.studentsites.net/restorff/vico...final/shop.htmlI'd like the add button just to send the number of that item to a session variable or cookie. Then when the user goes to the "shopping cart" page, I can list the items and amount the user selected. Also I'd like to have a dollar amount attached to the items to make a total. Then I'd like to send that over to the checkout page as well. It will then email all the information to myself. As you can see its a very poor excuse for a shopping cart but its just for show. Any ideas what I can do? I can post my asp code if need be as well.
  6. That did it! Thanks alot for all the help, much appriciated.
  7. Thanks alot thats right on the track I was looking for. Here's what I got now...function PopWindow() { if (document.getElementById('btn1')) { window.open("itempage01.html", "myWindow", "status=1, height=450, width=550, resizable=0"); } else if (document.getElementById('btn2')) { window.open("itempage02.html", "myWindow", "status=1, height=450, width=550, resizable=0"); } else { }} Right now both buttons are popping up only "itempage01.html". Am I missing something in my condition?
  8. I mean just a button on my page. I'm looking to know how to use either the button's class or id in my conditional statement. Here's kinda what I got:function PopWindow() { if (condition) { window.open("itempage01.html", "myWindow", "status=1, height=450, width=550, resizable=0"); } else if (condition) { window.open("itempage02.html", "myWindow", "status=1, height=450, width=550, resizable=0"); } My problem is I'm not sure on the syntax for my conditional. ButtonA on my page has a class of BtnA. How would I use that in the condition?
  9. I'm trying to set it up where if you press button A, a pop up window opens for that picture. If you press button B. That picture opens instead. My problem is I don't know how to setup a condition for this to happen. I'm familiar with the if else statement, possibly even an arrary for this? Anyways, could I use the buttons class as the variable? How would I do this?
×
×
  • Create New...