[Webinar] Streamline your web hosting managementRegister Today

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 633
  • Last Modified:

CFML - cflayout and refreshing pages

I would like to auto-refresh a cfml page with a cflayout (tab style) refreshing with the tab open the user was previously on. The cflayout  is generated from a query. Is that possible?

I'm just refreshing the parent window this page is on when they click one of the links:

<a href="searchAdmin/act_recordTracking.cfm?trackingID=#trackingID#&trackingSiteID=#trackingSiteID#&trackingSite=#trackingSite#" onClick="window.location.reload()" target="_blank">
<cflayout type="tab" name="unitTabs">
	
<cfloop query="qry_getUnits">
    
     <cflayoutarea name="#trackingUnit#" title="#trackingUnit#" style="height: 400px;">
       <table cellpadding="0" cellspacing="0" id="trackingList">
      	<tr>
        	<td colspan="6" class="trackingListHeader">1 column</td>
     	</tr>
         </table>
   </cflayoutarea>
  	</cfloop>
 
</cflayout>

Open in new window

0
traport
Asked:
traport
1 Solution
 
azadisaryevCommented:
your description/explanation of the problem is a bit confusing...

what exactly do you want to do:
a) load different content into the same tab when a user clicks a link inside a tab?
or
b) automatically refresh currently active tab content (without any user interaction)?

if it's a), then it is as easy as using ajaxlink() cf function in the href attribute of your link:

<a href="#ajaxlink('searchAdmin/act_recordTracking.cfm?trackingID=' & trackingID & '&trackingSiteID=' & trackingSiteID & '&trackingSite=' & trackingSite)#">

if it's b), then it is more complicated...

Azadi
0
 
traportAuthor Commented:
I'm sorry it took me so long to come back here. Yes, I meant a). Sorry I didn't word it clearly but you were very helpful! Thanks!
0

Featured Post

The new generation of project management tools

With monday.com’s project management tool, you can see what everyone on your team is working in a single glance. Its intuitive dashboards are customizable, so you can create systems that work for you.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now