Advertisement

02.18.2006 at 12:36AM PST, ID: 21741892
[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!

9.2

type=submit not calling onsubmit javascript code for its action

Asked by joesp in JavaScript

Tags: , , ,

i can't figure out where my mistake is.  please help me get this html form to call the javascript function
it's not calling it at all now as the alert is not popping up.
<script ...............>
function fviewcomment_submit(f)
{
    var pattern = /(^\s*)|(\s*$)/g; // \s &#44277;&#48177; &#47928;&#51088;
    if (!f.getElementById('postText').value)
    {
        alert("please enter a comment");
        return FALSE;
    }

    alert ("here");
    alert (f.wr_key.value);
    if (typeof(f.wr_key) != 'undefined')
    {
        if (hex_md5(f.wr_key.value) != md5_norobot_key)
        {
            alert('the red letters don\'t match.  &#51088;&#46041;&#46321;&#47197;&#48169;&#51648;&#50857; &#48744;&#44036;&#44544;&#51088;&#44032; &#49692;&#49436;&#45824;&#47196; &#51077;&#47141;&#46104;&#51648; &#50506;&#50520;&#49845;&#45768;&#45796;.');
            f.wr_key.focus();
            return FALSE;
        }
    }

    return TRUE;
}
~
</script>
<div align=center>
<form name=postMsg action="index.php"  autocomplete="off"   method=post class=formStyle>
<table class=forums>

{$mainPostForm}

<tr>
<td class=caption5><INPUT TYPE=SUBMIT  onclick="javascript:fviewcomment_submit(document.postMsg);" VALUE="{$l_sub_post_msg}"  class=inputButton tabindex=5 ></td>
</tr>
</table>
<INPUT TYPE=HIDDEN NAME=subaction VALUE="pthread">
<INPUT TYPE=HIDDEN NAME=forum VALUE="{$forum}">
<INPUT TYPE=HIDDEN NAME=topic VALUE="{$topic}">
<INPUT TYPE=HIDDEN NAME=anchor VALUE="{$anchor}">
</form>
Start Free Trial
[+][-]02.18.2006 at 12:46AM PST, ID: 15987712

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

 
[+][-]02.18.2006 at 12:51AM PST, ID: 15987718

Assisted solutions are selected by the member who asked the question as a comment that contributed to their question's solution.

Start your 30-day free trial to view this Assisted Solution or ask the Experts your question.

 
[+][-]02.18.2006 at 01:00AM PST, ID: 15987754

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

 
[+][-]02.18.2006 at 01:02AM PST, ID: 15987770

View this solution now by starting your 30-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, onsubmit, submit, calling
Sign Up Now!
Solution Provided By: Roonaan
Participating Experts: 2
Solution Grade: A
 
 
[+][-]02.18.2006 at 01:04AM PST, ID: 15987785

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

 
 
Loading Advertisement...
20081112-EE-VQP-44