|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
Get inside! Sample the range of functionality easily built with JMSL Library for Time Series Data Analysis, Heat Maps, Portfolio Optimization, Monte Carlo Simulation, Stock Price Charting and more. Download Now! |
|
#1
|
||||
|
||||
|
came across this problem had a page in an inline frame that had to cflocate to another page problem was the new page didnt fit in the iframe so i had to add the target="_top" so that the page being cflocated to replaced the entire page.
THIS IS IMPOSSIBLE with CFLOCATION heres how you do it. Code:
<SCRIPT language="JavaScript"> top.location.replace("http://www.yourpage.com"); </SCRIPT>
If you want to just relocate without the target erase top and use location.replace the person who uses this will probably do so in like 3 years when he runs a search here. oh well ![]() |
|
#2
|
||||
|
||||
|
ColdFusion = Server
JavaScript = Client In other words, <cflocation> in no way equals window.location! The target attribute is in reference to the client's browser and cannot be manipulated in any way by a server-side language. People take CF's versatility for granted too often, I think. |
|
#3
|
|||
|
|||
|
Exactly. CFLOCATION executes an HTTP redirect. The server has no idea what "_top" is on the client's machine, it simply executes another HTTP request.
__________________
Ask if you have a question, but also help answer questions that you have knowledge of! Thanks, Brian. How to Post a Question in the Forums |
|
#4
|
||||
|
||||
|
umm *cough* bocmaxima dont want to make you feel crunchy but did you not read that i wrote "THIS IS IMPOSSIBLE with CFLOCATION" hence you should take the next logical step of utilizing brain power to see that i offer a javascript as a workaround to cflocation not being able to target since Yes it is server and Yes javascript is client. Gosh a little reading goes a long way
PS. et tu kiteless? had to jump me too. Quote:
|
![]() |
| Viewing: Dev Shed Forums > Programming Languages - More > ColdFusion Development > Heres how-CFLOCATION and Target="_top" |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|