i am running cfhttp
and getting the results back in a jquery container..
Now that cfhttp
has some links which i would like to ope inside the the container.
Either it should be like clicking on a link - make a cfhtp call again and bring the results in the same container
or it should be like appending with my url address to the linked address to open in my container again..
I am not writing any code here because at this point of time, i am not sure what to follow and how to start
please suggest something
Here is an Update two of them:
using a POST Actually a form is inside the filecontent
[<form id="qform" onsubmit="return Form1_Validator(this)" name="qform" action="http://mysearch.com/9.asp?type=299" method="post">]
another is link like:
http://mysearch.com/9.asp?action=&companyQ=&type=299&pagenum=1
Update #2
Now I added this
<cfset lnk = cfhttp.filecontent>
<cfset ldel = chr(7)>
<cfset already_parsed = "">
<cfset URLArray = REMatch("(http[s]?):\/\/[^\s\<"",]*",lnk) />
<cfloop array="#URLArray#" index="url_i">
<!--- Trim .,!,? off the end of the url --->
<cfset url_i = ReReplace(url_i,"(\?|\!|\.|,)$","")>
<cfif not listfind(already_parsed,url_i,ldel)>
<cfset already_parsed = listappend(already_parsed,url_i,ldel) />
<cfoutput>Currently outputting #url_i#<br /></cfoutput>
<CFSET lnk = replace(lnk, url_i, "originalpage.cfm?process=#Name#&u=" & url_i)>
</cfif>
</cfloop>
<cfoutput>#trim(lnk)#</cfoutput>
it shows me the url's like: Currently outputting http://mysearch.com/r=100&type=29
It shows the links and the data i get from the URL. When i click any link in the URL, it does nothing, do you think we need to call a cfhttp to fetch new contents and display in that same container again.
i think we need such call, i tried modifying as:
<cfset ldel = chr(7)>
<cfset already_parsed = "">
<cfset URLArray = REMatch("(http[s]?):\/\/[^\s\<"",]*",lnk) />
<cfloop array="#URLArray#" index="url_i">
<!--- Trim .,!,? off the end of the url --->
<cfset url_i = ReReplace(url_i,"(\?|\!|\.|,)$","")>
<cfif not listfind(already_parsed,url_i,ldel)>
<cfset already_parsed = listappend(already_parsed,url_i,ldel) />
<cfoutput>Currently outputting #url_i#<br /></cfoutput>
<CFSET lnk = cfhttp.url(url_i)>
</cfif>
</cfloop>
<cfoutput>#trim(lnk)#</cfoutput>
will the above work, i tried but it does not show up anything