Solved

triggering cflocation on click

Posted on 2006-07-03
4
634 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
4 Comments
 
LVL 13

Accepted Solution

by:
usachrisk1983 earned 300 total points
ID: 17037950
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
ID: 17038106
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
ID: 17039394
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
ID: 17208961
thanks!
0

Featured Post

Resolve Critical IT Incidents Fast

If your data, services or processes become compromised, your organization can suffer damage in just minutes and how fast you communicate during a major IT incident is everything. Learn how to immediately identify incidents & best practices to resolve them quickly and effectively.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

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…
Introduction This article explores the design of a cache system that can improve the performance of a web site or web application.  The assumption is that the web site has many more “read” operations than “write” operations (this is commonly the ca…
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…

726 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