Please look at the attached code which i've simplified for purposes of my issue.
Now you can see that the index.cfm just declares a <CFDIV> for the purposes of loading content into it. The initial content is maincontent.cfm. Within maincontent.cfm i have used the ajaxlink function so that what it links replaces the current content within the cfdiv. Now my issue is this, is there a way to do this without calling the ajaxlink function? The link below it, which calls openEmailPage() is actually generated html from the cf code, and so can not plant an #ajaxlink()# around the link url. Currently the openEmailPage simply forwards to the emailpage.cfm, but i actually want the emailpage.cfm to embed within the cfdiv. How can i ammend the js code to acheive what i'm trying to do.
I don't think i'm doing anything out of the ordinary so i'm sure there's a standard way of doing this, i'm just don't know what that is! Can anyone help me out please? :)
Please ask questions if i haven't explained myself properly.
window.location = "emailpage.cfm";
<A href="#ajaxlink("contacts.cfm")#">go to contacts page</A>
<!--- this html link is generated from the result of a cfc call --->