Win a copy of The Way of the Web Tester: A Beginner's Guide to Automating Tests this week in the Testing forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Submitting a page with a hiddenInput fieldwith javascript

evan k. stone
Posts: 16
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have a page in which there are several hyperlinks (at this point they're just standard anchor tags), and when the user clicks on a link, I'd like it to populate a hidden input field, submit the form, then render the same page based on the selection that was made...

I found this post:

...which gets me about 75% of the way there, but it doesn't address two other issues:

1. What's the best/accepted practice for submitting the form?
2. How do I interact with the hidden input field on the server side after it's submitted?

Perhaps I'm looking at this incorrectly, and I'll certainly seriously consider any other suggestions that are offered...

  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic