Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Web Programming > JavaScript > Javascript How-To
|
Javascript How-To Ask your "How do I do this with Javascript?" questions here.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Javascript How-To section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old August 26th, 2003, 12:38 AM
Registered User
 
Join Date: Aug 2003
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default Getting the submitted fields in a form

I am trying to display a links bar which contains the links that the user has visited. I am using Javascript here. I have a function called addLink which takes name and the URL as parameters. Every page that is visited by the user would add itself to the links bar by calling addLink.

The problem that I am facing is to find out the URL by which the page is getting loaded. In our system, few pages use GET and few other pages use POST. In case of a page loaded by using GET, document.location.href helps me to get the URL. But I don't know how I would access the parameters that are submitted by form submission. In fact, we don't have any submit button in our pages. We just have links which are calling some Javascript function, which then submits the form. I think that we can capture the form parameters and create an URL. But I am not sure whether this is the right way to do it, and whether it would work?






Similar Threads
Thread Thread Starter Forum Replies Last Post
Form Fields Terry J Daichendt JSP Basics 2 September 15th, 2008 05:53 PM
How do I clear a form after it has been submitted? u2clone ASP.NET 2.0 Basics 7 February 12th, 2008 04:00 PM
copy fields from Form to new form - openargs justabeginner Access VBA 1 February 4th, 2007 01:28 PM
form fields value retaining Dheeraj BOOK: Beginning JavaServer Pages 0 May 23rd, 2006 01:45 AM
Disabling Form Fields MooMan65 HTML Code Clinic 3 November 4th, 2004 07:07 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.