Advertisement

06.11.2008 at 06:16AM PDT, ID: 23475582
[x]
Attachment Details

submit from a text link - with a twist

Asked by healthstatus in Hypertext Markup Language (HTML), JavaScript, CGI Scripting

Tags: html, any

I have a form and due to client demands they want to be able to click a text link to submit the form.  So the link looks like this: <a href="#" onclick="document.theForm.submit()">Click here to view</a>

the problems are, a) this is a cgi page, b) there is a <base> tag defined<base href="mydomain.com">. So clicking the link, actually takes me to mydomain.com/# instead of just leaving me at my current location.  Putting in the full path to the page in the href causes me to lose my form data.

Can anybody help me resolve this?Start Free Trial
 
Loading Advertisement...
 
[+][-]06.11.2008 at 06:25AM PDT, ID: 21759772

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zones: Hypertext Markup Language (HTML), JavaScript, CGI Scripting
Tags: html, any
Sign Up Now!
Solution Provided By: JohnSixkiller
Participating Experts: 1
Solution Grade: A
 
 
[+][-]06.11.2008 at 06:32AM PDT, ID: 21759839

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]06.11.2008 at 11:27PM PDT, ID: 21766584

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628