Solved

triggering cflocation on click

Posted on 2006-07-03
4
639 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

Building an interactive eFuture classroom

Watch and learn how ATEN provided a total control system solution including seamless switching matrix switch, HDBaseT extenders, PDU, lighting control to build an interactive eFuture classroom.

Question has a verified solution.

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

If you don't have the right permissions set for your WordPress location in IIS, you won't be able to perform automatic updates. Here's how to fix the problem.
When it comes to showing a 404 error page to your visitors, you do not want that generic page to show, and you especially do not want your hosting provider’s ad error page to show either. In this article, I will show you how to enable the custom 40…
This is a high-level webinar that covers the history of enterprise open source database use. It addresses both the advantages companies see in using open source database technologies, as well as the fears and reservations they might have. In this…
NetCrunch network monitor is a highly extensive platform for network monitoring and alert generation. In this video you'll see a live demo of NetCrunch with most notable features explained in a walk-through manner. You'll also get to know the philos…

688 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