Link to home
Start Free TrialLog in
Avatar of Malachy Devlin
Malachy Devlin

asked on

CFDIV & Coldfusion.Navigte

Hi,
I currently use a cfdiv to bind to a data file (data.cfm).
This data.cfm file simply creates a CFquery and a html Table..

When I use ColdFusion.Navigate I can refresh the above div (called div1) easily.

However I have changed m CfDiv into a std html div and I am trying to use the $ajax.load function to reload the div.

I believe my calling code is correct.

 $('#div1').load('data.cfm?id=100');

However it seems jquery just ignores the server side code in my data.cfm file.
If I makes a blank data.cfm with a few lines of html the do refresh ok.

But not my data.cfm with what I need.
cfquery and cfoutput & table.

Any help would be appreciated..
Avatar of Coast Line
Coast Line
Flag of Canada image

you should use this

$('#div1').load('data.cfm?id=100' + '#reload'); - it should know which div to load and check for network, and see what u get there
Avatar of Malachy Devlin
Malachy Devlin

ASKER

Thanks for putting me on the right track, I actually changed all the CFdivs to normal divs and used Jquery.
I actually changed all the CFdivs to normal divs and used Jquery.

That's actually a good idea.  CFDiv uses a different javascript library than jQuery. Mixing two event models is always problematic...
This question needs an answer!
Become an EE member today
7 DAY FREE TRIAL
Members can start a 7-Day Free trial then enjoy unlimited access to the platform.
View membership options
or
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.