matthewordie
-
Posts
9 -
Joined
-
Last visited
Content Type
Profiles
Forums
Events
Posts posted by matthewordie
-
-
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?
-
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?
-
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. ~_~
-
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.
-
That did it! Thanks alot for all the help, much appriciated.
-
Thanks alot thats right on the track I was looking for. Here's what I got now...If you've got the choice, go for id. Then you can use the relatively simple:document.getElementById('Object_ID');to access it.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?
-
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:No need for an array, but i'm unsure on what you mean by "button A". Is it a command button on the page? Or are you talking about the A key on the keyboard? Either is possible very simply =)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?
-
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?
Page not loading right away
in JavaScript
Posted