CF_Check form being generated automatically

Hi-

Some of my pages on my development website, http://dev.mymagickitchen.com, load slowly. WHen that happens and I go back to the code, I find that this has been somehow automatically generated several times:

<SCRIPT LANGUAGE="JavaScript" TYPE="text/javascript">
<!--

function  _CF_checkCFForm_1(_CF_this)
{
      return true;
}


//-->
</SCRIPT>

If I delete those, it is fast again. Is it because of this javascript which is on all of those pages?

<script type="text/javascript">
<!--
     function getQuote()     {
          var quote = new Array(
          "quote 1",
          "quote 2",
          "quote 3",
          "quote 4",
          "quote 5"
          );
          quote.innerHTML='<p class="quote">' + quote[Math.round(Math.random()*(quote.length-1))] + '</p>';
     }
 -->
</script>

<style type="text/css">
<!--
     #quote     {
       font-family: Arial, Helvetica, sans-serif; font-size: 8pt; font-style: normal; font-weight: normal; font-variant: normal; text-transform: none; color: #703FAF
     }
 -->
</style>


<script type="text/javascript">

<!--
     function getQuote()     {
          var quote = new Array(
          "One of the very nicest things about life is the way we must regularly stop whatever it is we are doing and devote our attention to eating.” <br><br>Luciano Pavarotti and William Wright",
          "We may live without poetry, music and art; We may live without conscience and live without heart; We may live without friends; We may live without books; But civilized man cannot live without cooks.<br><br>Edward Robert Bulwer-Lytton",
          "I find a recipe is only a theme, which an intelligent cook can play each time with a variation.<br><br>Madame Benoit",
          "I consider the discovery of a dish which sustains our appetite and prolongs our pleasures as a far more interesting event than the discovery of a star.<br><br>Henrion de Pensey",
          "Cooking is like love. It should be entered into with abandon or not at all.<br><br>Harriet Van Horne"
          );
          document.getElementById("quote").innerHTML = quote[Math.round(Math.random()*(quote.length-1))];
     }
 -->
</script>

And if so, are there any suggestions to stop that first code from being generated? Thanks!!
mel150Asked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

mvan01Commented:
Hi mel,

Are you using ColdFusion form validation code?

According to http://coldfusion.juxta.com/2452c15.PDF :

"All the ColdFusion form tags (CFINPUT, CFSELECT, CFTABLE, and so on) with the
exception of CFGRID and CFSLIDER provide two attributes that allow client-side
validation of required fields."

Farther down the article, we find an example, which begins:

<CFFORM METHOD=”POST” ACTION=”submit.cfm”>

and later:

When you do this, ColdFusion generates all the JavaScript code needed for form
validation:
<script LANGUAGE=JAVASCRIPT>
...
function _CF_checkCFForm_1(_CF_this)

and etc.

I hope this reference helps.

Peace and joy.  mvan

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
mel150Author Commented:
Thanks-I think that's the answer, I guess the question now is... how do I get rid of it? :)

Or is there a way to get it to generate it once, then have it go away?  Thanks-if you don't know the answer to that last, I'll accept your answer and close the question.

:)
mvan01Commented:
Sorry, 'dunno.  :-\

Peace and joy.  mvan
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Web Languages and Standards

From novice to tech pro — start learning today.