Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

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

New Here ,
Aug 19, 2008 Aug 19, 2008
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
307
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Aug 19, 2008 Aug 19, 2008
Other then <cfform action="anotherPage.cfm?urlVar=aVaule"...>

Then what is your goal?
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Mentor ,
Aug 19, 2008 Aug 19, 2008
What are you setting as your action attribute in your CFFORM and what is your method (POST or GET)?

Phil
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Aug 19, 2008 Aug 19, 2008
LATEST
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.
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources