www.webdeveloper.com
Recent Articles
  • Finding Slow Running Queries in ASE 15
  • A More Advanced Pie Chart for Analysis Services Data
  • Adobe AIR Programming Unleashed: Working with Windows
  • Performance Testing SQL Server 2008's Change Data Capture Functionality
  • The ABC's of PHP: Introduction to PHP
  • How to Migrate from BasicFiles to SecureFiles Storage
  • Why the Twitter Haters Are Wrong
  • User Personalization with PHP: Beginning the Application
  • Whats in an Oracle Schema?
  • Lighting Enhancement in Photoshop
  •  

    Go Back   WebDeveloper.com > Server-Side Development > Other

    Other Discussion and technical support for any other scripting methods.

    Reply
     
    Thread Tools Search this Thread Rate Thread Display Modes
      #1  
    Old 10-11-2004, 04:02 PM
    CHENZ CHENZ is offline
    Registered User
     
    Join Date: Oct 2004
    Location: florida
    Posts: 18
    Cfm Html Java

    I GOT THIS CODE FOR MY SHORT FORM AND I WANT TO PUT A JAVA CODE IN A CFM FORM AND WAS WONDERING WHERE I HAVE TO PUT THE JAVA CODE AND IF THIS CODE CORRECT,,,,

    <FORM ACTION="interbd.cfm" METHOD="POST" style="margin-bottom: 0">
    <p> </p>
    <strong>
    <input type="hidden" name="recipient" value="info@.com">
    <input type="hidden" name="subject" value="partners Website Response Form">
    <input type="hidden" name="location" value="http://www..com/.html">



    </strong>

    <tr bgcolor="#FFFFFF">
    <td colspan="2"> <div align="right"><span style="background-color: #FFFFFF"><font color="#333366" size="2" face="Verdana, Arial, Helvetica, sans-serif"><strong>First
    Name </strong></font></span></div></td>
    <td> <div align="left"><strong><font color="#FFFFFF" size="2" face="Verdana, Arial, Helvetica, sans-serif">
    <input name="FirstName" type="text" id="FirstName" size="35" maxlength="100">


    </font></strong></div></td>
    </tr>
    <tr bgcolor="#FFFFFF">
    <td colspan="2"> <div align="right"><span style="background-color: #FFFFFF"><font color="#333366" size="2" face="Verdana, Arial, Helvetica, sans-serif"><strong>Last
    Name </strong></font></span></div></td>
    <td> <div align="left"><strong><font color="#FFFFFF" size="2" face="Verdana, Arial, Helvetica, sans-serif">
    <input name="LastName" type="text" id="LastName" size="35" maxlength="100">


    </font></strong></div></td>
    </tr>




    <tr bgcolor="#FFFFFF">
    <td colspan="2"> <div align="right"><span style="background-color: #FFFFFF"><font color="#333366" size="2" face="Verdana, Arial, Helvetica, sans-serif"><strong>Email</strong></font></span></div></td>
    <td> <div align="left"><strong><font color="#FFFFFF" size="2" face="Verdana, Arial, Helvetica, sans-serif">
    <input name="Email" type="text" id="Email" size="35" maxlength="100">


    </font></strong></div></td>
    </tr>




    <tr bgcolor="#FFFFFF">
    <td align="center" valign="top"><font color="#400080" size="+4" face="Agency FB">
    <input type="reset" name="Submit2" value="Reset Form">


    </font></td>

    <td align="center" valign="top"><font color="#400080" size="+4" face="Agency FB">
    <input name="submit" type="submit" id="submit2" value="Submit to MS">


    </font></td>
    </tr>
    <tr bgcolor="#FFFFFF">
    <td width="134" height="85" align="center" valign="top"><span style="background-color: #FFFFFF"><font color="#333366" size="2" face="Verdana, Arial, Helvetica, sans-serif">
    </font></span></td>
    <td width="141" align="center" valign="top"><span style="background-color: #FFFFFF"><font color="#333366" size="+4" face="Agency FB">
    </font></span></td>
    </tr>
    </form>
    </table>
    <p style="margin-bottom: 0;"> </p>
    </div></td>
    </tr>
    </table>

    OK SO THIS IS THE FORM THAT GETS SENT TO ME THRU COLD FUSION . IS THIS AND WHERE DO I INPUT THIS(THE CODE FROM JAVA FOR REQUIRED FIELD....

    <script>

    /*

    */

    function checkrequired(which){
    var pass=true
    if (document.images){
    for (i=0;i<which.length;i++){
    var tempobj=which.elements[i]
    if (tempobj.name.substring(0,8)=="required"){
    if (((tempobj.type=="text"||tempobj.type=="textarea")&&tempobj.value=='')||(tempobj.type.toString().cha rAt(0)=="s"&&tempobj.selectedIndex==-1)){
    pass=false
    break
    }
    }
    }
    }
    if (!pass){
    alert("One or more of the required elements are not completed. Please complete them, then submit again!")
    return false
    }
    else
    return true
    }
    </script>
    <!--webbot
    bot="HTMLMarkup" endspan --></font></p>

    CAN SOMEONE HELP APPRECIATE IT THANKS
    Reply With Quote
      #2  
    Old 10-11-2004, 04:48 PM
    Jupac's Avatar
    Jupac Jupac is offline
    David is the best
     
    Join Date: Jul 2003
    Location: Los Angeles California
    Posts: 1,109
    dont triple cross post!!!

    http://www.webdeveloper.com/forum/sh...threadid=46312
    http://www.webdeveloper.com/forum/sh...threadid=46311
    http://www.webdeveloper.com/forum/sh...threadid=46298
    __________________
    My Site|My Other Site




    Reply With Quote
      #3  
    Old 10-11-2004, 04:50 PM
    CHENZ CHENZ is offline
    Registered User
     
    Join Date: Oct 2004
    Location: florida
    Posts: 18
    OMG!!!!!!!!!!!!
    Reply With Quote
    Reply

    Bookmarks


    Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
     
    Thread Tools Search this Thread
    Search this Thread:

    Advanced Search
    Display Modes Rate This Thread
    Rate This Thread:

    Posting Rules
    You may not post new threads
    You may not post replies
    You may not post attachments
    You may not edit your posts

    BB code is On
    Smilies are On
    [IMG] code is Off
    HTML code is Off
    Forum Jump


    All times are GMT -5. The time now is 09:16 PM.



    Acceptable Use Policy

    internet.comMediabistrojusttechjobs.comGraphics.com

    WebMediaBrands Corporate Info


    Advertise | Newsletters | Feedback | Submit News

    Legal Notices | Licensing | Permissions | Privacy Policy

    Powered by vBulletin® Version 3.7.3
    Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.