Advertisement

03.15.2006 at 06:13AM PST, ID: 21774599
[x]
Attachment Details
[x]
The Solution Rating System

With so many solutions, how can you tell which solutions are most likely to help you and which ones are not? To provide you with a tool to use, we rate our solutions based on various elements that most accurately determine if a solution is a quality solution. To explain what factors affect the solution rating, here are the elements we take into consideration when formulating our solution rating.

  • The Grade of the Solution
  • The Zone Rank of the Expert Providing the Solution
  • The Number of Author and Expert Comments
  • The Number of Experts Contributing
  • The Feedback of the Community

Your Input Matters
Because of the way the system is set up, the most important variable in this equation is you. As a member of Experts Exchange, you are able to cast your vote on the quality of the solutions in regard to how complete, accurate, helpful and easy to understand each solution is. When you provide your feedback, each rating is adjusted accordingly. So, if you see a solution that has a poor rating that you think is a good solution, let us know by rating it. As you do, the rating will be adjusted and will become more accurate for other members of our site.

If you have any suggestions that you would like to make for our rating system, please ask a question in the Suggestions Zone of Community Support.

Thank you!

8.8

Create form elements on the fly - problem

Asked by texaspete in JavaScript

Tags: , , ,

Hi There,

I've got a page that uses javascript to create form elements on the fly.
 
When the page first loads this HTML code creates the button. This is a button that pops up a calendar. The user selects a date and it passes the value back to a text box. In this case document.add.request_date.
 
<a href="javascript://;" onClick="return openCalendar('add', document.add.request_date);">
 
This all works fine but when the user click a button on the page I want it to create another date button below. The code below does create the button no problem but when I click it, nothing happens. No errors either. Even in the bottom left corner of browser (where js errors usually are).  Heres a snippet:
 
  var a = td2.appendChild(document.createElement('a'));
  a.innerHTML = '<IMG src="/include/images/calendar.gif" border=0 alt="Select Date">';
  a.href = 'javascript://;';
  a.onClick = 'return openCalendar("add", document.add.escalation_date' + row_no + ');';

Just to be clear the document.add.escalation_date' + row_no + ' bit above just adds a number to the end of the element name. e.g. escalation_date1, escalation_date2, escalation_date3 etc.

I've tried all the obvious things like replacing " with ' but still to no avail.

Any help would be much appreciated. Points will be upped for a speedy response.

TP
 

Start Free Trial
[+][-]03.15.2006 at 06:20AM PST, ID: 16194257

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 14-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]03.15.2006 at 06:38AM PST, ID: 16194453

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

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

 
[+][-]03.15.2006 at 08:25AM PST, ID: 16195623

View this solution now by starting your 14-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

Zone: JavaScript
Tags: javascript, form, create, element
Sign Up Now!
Solution Provided By: netsmithcentral
Participating Experts: 3
Solution Grade: A
 
 
[+][-]03.15.2006 at 09:15AM PST, ID: 16196219

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 14-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]03.15.2006 at 09:27AM PST, ID: 16196337

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 14-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]03.16.2006 at 05:20AM PST, ID: 16204606

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

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

 
[+][-]03.16.2006 at 06:56AM PST, ID: 16205499

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 14-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]03.16.2006 at 07:06AM PST, ID: 16205594

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

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

 
 
Loading Advertisement...
20081112-EE-VQP-43