Solved

triggering cflocation on click

Posted on 2006-07-03
4
623 Views
Last Modified: 2013-12-24
The codes are:

<a href="##" onClick="this.disabled=true;this.innerHTML='Please wait...';f=document.forms[0];f.TargetURL=this.href;f.submit();return false">Go Next</A>

<cflocation url="Cacl2.cfm">

I want to trigger <cflocation url="Cacl2.cfm"> ONLY when 'Go Next' (the link above) is clicked.
Otherwise, <cflocation url="Cacl2.cfm"> should remain inactive.

Any ideas?
0
Comment
Question by:ethanjohnsons
  • 2
4 Comments
 
LVL 13

Accepted Solution

by:
usachrisk1983 earned 300 total points
Comment Utility
CFLOCATION cannot be changed at runtime (exception: some type of complex AJAX implimentation may help, but would likely be more trouble than it's worth, if it worked).  Can you tell us exactly what you're trying to accomplish and perhaps there is a better way?
0
 

Author Comment

by:ethanjohnsons
Comment Utility
Simply, the cflocation HAS to be in effect when the link is clicked so that the page can stay the same as long as the link is not clicked.
0
 
LVL 7

Assisted Solution

by:bwasyliuk
bwasyliuk earned 200 total points
Comment Utility
The cflocation code is run server-side, whereas the onclick code (javascript) is run client-side in the browser.  One really has little to do with the other - the way you have it coded here.

Can you elaborate on what you mean by "cflocation has to be in effect"?

It looks like you dont need the cflocation code at all - the page will stay the same until the link is clicked.
0
 

Author Comment

by:ethanjohnsons
Comment Utility
thanks!
0

Featured Post

Highfive Gives IT Their Time Back

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Article by: kevp75
Hey folks, 'bout time for me to come around with a little tip. Thanks to IIS 7.5 Extensions and Microsoft (well... really Windows 8, and IIS 8 I guess...), we can now prime our Application Pools, when IIS starts. Now, though it would be nice t…
Meet the world's only “Transparent Cloud™” from Superb Internet Corporation. Now, you can experience firsthand a cloud platform that consistently outperforms Amazon Web Services (AWS), IBM’s Softlayer, and Microsoft’s Azure when it comes to CPU and …
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, Just open a new email message.  In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…
This video explains how to create simple products associated to Magento configurable product and offers fast way of their generation with Store Manager for Magento tool.

762 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now