View Full Version : submit links
ghell
06-07-2003, 12:03 PM
anyone got any ideas on how to submit a form to an asp page by clicking on a text or image hyperlink?
ghell
06-07-2003, 12:22 PM
never mind, i found a way of doing it in javascript using
document.formname.submit()
suury7
06-09-2003, 11:19 AM
By Using document.location="href"
we can go to the desired location.
ghell
06-11-2003, 05:14 PM
***** Useless and offensive comments (and follow up posts) deleted by Whammy *****
Do NOT post like this again! Other moderators may not be so nice as just to delete your posts - you'll probably be banned if you do it again.
:(
Spudhead
06-11-2003, 06:37 PM
1. Don't swear. You want to swear, post on some other forum.
2. Don't criticise people who take their time to offer suggestions for your benefit, no matter how you personally rate their help.
3. If you're going to start a thread in an ASP forum that asks something that took even you only 20 minutes to work out was solvable using one line of javascript, think carefully before using the term "dumb".
This place is for people who want to becomme better coders. Everyone that posts here is just trying to help you;
- by offering suggestions, sollutions, code-snippets
- by pointing you to the posting guidelines
- by asking you to be polite and behave in an adult manner
We all make mistakes. I surely. But you to.
Your question is about a clientsided issue and shouldn't have been posted here. Your sollution wount even work for clients that do not have javascript enabled (they to are important) but your behaviour is not realy encouraging anyone to go into your initial problem. They probably just sit back and think; "Ah, let him go flap on his face. He'll learn in time ..."
arnyinc
06-11-2003, 07:56 PM
Using document.location and appending the variables into the querystring will give the same result as using document.formname.submit().
If you don't understand how someone's answer will work, it's a lot easier to ask them and maybe they will be nice and slow down to explain it to you. Calling them dumb sure isn't the way.
vBulletin® v3.8.2, Copyright ©2000-2012, Jelsoft Enterprises Ltd.