Skip to main content
Participating Frequently
August 19, 2008
Question

Is there anyway to link to another page on click with a cfinput button?

  • August 19, 2008
  • 2 replies
  • 353 views
On a update password page, I have an entry submission button. When the button is clicked, is there anyway to have it hyperlink to another page and pass a url variable?

<cfinput type="button" name="Submit5" Value="Save Password" onClick="validate('Password', OldPassword, NewPassword, ConfPassword);" width="150">

Thanks,
Nick Butler
    This topic has been closed for replies.

    2 replies

    Participating Frequently
    August 19, 2008
    What are you setting as your action attribute in your CFFORM and what is your method (POST or GET)?

    Phil
    Participating Frequently
    August 19, 2008
    We are using method post. This software I am working on was built by two previous interns who hardly documented anything. Here is part of the scrips:

    <cfform action="#cgi.script_name#" method="post" name="profile" preservedata="true" preloader="yes" format="flash" height="705" width="730" style="#formstyle#" timeout="3600" wmode="transparent" onload="#onFormLoad#">

    <cfinput type="hidden" name="server" value="#service#">
    <cfformitem type="script"> function Update(UpdateType, item1, item2, item3, item4, item5, item6, item7, item8, item9, item10){
    mx.managers.CursorManager.setBusyCursor();
    mx.controls.Alert.titleStyleDeclaration = "windowStyles"; <cfoutput>
    //create connection
    var connection:mx.remoting.Connection = mx.remoting.NetServices.createGatewayConnection(" http://#cgi.HTTP_HOST#/flashservices/gateway/");
    //declare service
    var myService1:mx.remoting.NetServiceProxy;
    var UserName = '#Session.UserName#';
    </cfoutput>
    var returnID = '';
    var responseHandler1 = {};

    I am trying to fix this page where the update password feature does not work. I think it is something with the scrips, but since I don't know this script language they are using, I want to try to tackle this problem in ColdFusion. I am also using dreamweaver which does not provide any help with the script coding.
    Inspiring
    August 19, 2008
    Other then <cfform action="anotherPage.cfm?urlVar=aVaule"...>

    Then what is your goal?