Hi everyone,
I want to click on a link and pass some values and when that page is displayed, the address bar should not display the actual location of the file. Moreover I don't want to pass variables using url.
What i thought was that some function will be called whether hyperlink is clicked or a button is submitted and depending upon the values passed, either the corresponding file is directed using <cflocation> or file can be included.
But how to actually implement it.., no idea. I tried to use <cflocation in javascript but didn't work..
<script language="javascript">
function change(id){
<cfif id NEQ "">
<cflocation url="test.cfm">
</cfif>
}
</script>
This function is called on clicking the href, it entered the function and was displaying the correct value of id but didn't do anything.
Any suggestions are welcome.
Thanks
I want to click on a link and pass some values and when that page is displayed, the address bar should not display the actual location of the file. Moreover I don't want to pass variables using url.
What i thought was that some function will be called whether hyperlink is clicked or a button is submitted and depending upon the values passed, either the corresponding file is directed using <cflocation> or file can be included.
But how to actually implement it.., no idea. I tried to use <cflocation in javascript but didn't work..
<script language="javascript">
function change(id){
<cfif id NEQ "">
<cflocation url="test.cfm">
</cfif>
}
</script>
This function is called on clicking the href, it entered the function and was displaying the correct value of id but didn't do anything.
Any suggestions are welcome.
Thanks