Awesome! For those of you who don't subscribe to Ray's blog--he's turned
this into an entry with some excellent explanations.

http://www.coldfusionjedi.com/index.cfm/2010/1/8/Interesting-ColdFusion-Ajax-IssueBug

Happy jQuerying! [?]


On Thu, Jan 7, 2010 at 3:54 PM, David Mineer <[email protected]> wrote:

>
> The answer came from the jedi master himself Ray Camden:
>
> if you put the click handler in the root document,
> and switch it to Live(), then it will work.
>
> So changing the event handler to
>       $("#checkboxall").live("click",function()  {
> Makes it work.
>
> Even Ray was a little surprised that Live() was needed in this case.  I
> never even heard of Live() cause I don't use jQuery that much, I should
> start.
>
> But it works now, thanks All.
>
> On Thu, Jan 7, 2010 at 1:39 PM, Qing Xia <[email protected]> wrote:
>
> >
> > I am a jQuery newbie so I definitely feel your pain.  One method that has
> > worked for me is to the bottom-up approach.
> >
> > Start with a bare-bone simple form with just the jQuery stuff and then
> add
> > the other stuff you want in, one by one.  Make sure to also strip down
> your
> > CSS file to just those definitions directly relating to the jQuery
> > stuff. This way you can figure out when it stops working and then narrow
> it
> > down to the prime suspect.
> >
> > The other thing is to test the stuff at each stage in all browsers you
> > have.
> >  If it doesn't work in any of them, then you know the problem is your
> code.
> >
> > On Thu, Jan 7, 2010 at 3:07 PM, David Mineer <[email protected]> wrote:
> >
> > >
> > > It was on the target page (the page that is called by
> > coldfusion.navigate,
> > > checkbox2.cfm)
> > >
> > > Moving it to the parent page (checkboxtest.cfm) actually gets rid of
> the
> > > error message, but the function does not work.
> > >
> > > On Thu, Jan 7, 2010 at 12:30 PM, Martin Franklin <
> > [email protected]
> > > >wrote:
> > >
> > > >
> > > > Have you tried including the jQuery library on target page?
> > > >
> > > > ----- Original Message -----
> > > > From: "David Mineer" <[email protected]>
> > > > To: "cf-talk" <[email protected]>
> > > > Sent: Thursday, January 07, 2010 12:09 PM
> > > > Subject: ***SPAM*** jquery javascript coldfusion.navigate cflayout
> > cfdiv
> > > >
> > > >
> > > > >
> > > > > We cannot get a simple jquery function to work using
> > > coldfusion.navigate,
> > > > > cflayout and a cfdiv.  One of those 3 or a combination is causing
> us
> > > > fits.
> > > > >
> > > > > page 1: checkbox2.cfm
> > > > > ----------------------
> > > > > <script src="
> > > > > http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js
> > > > "></script<
> > > >
> > >
> >
> http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js%22%3E%3C/script
> > > > >
> > > >  >>
> > > > >
> > > > > <script>
> > > > > $(document).ready(function(){
> > > > >
> > > > > $("#checkboxall").click(function()
> > > > >  {
> > > > >   var checked_status = this.checked;
> > > > >   $("input[name=mapid]").each(function()
> > > > >   {
> > > > >    this.checked = checked_status;
> > > > >   });
> > > > >  });
> > > > >
> > > > > });
> > > > > </script>
> > > > >
> > > > > <label for="checkboxall">Select All<input id="checkboxall"
> > > > type="checkbox"
> > > > > />
> > > > >
> > > > > <FORM>
> > > > > <input name="mapid" type="checkbox" /><BR>
> > > > > <input name="mapid" type="checkbox" /><BR>
> > > > > <input name="mapid" type="checkbox" /><BR>
> > > > > </form>
> > > > > --------------------
> > > > > Page 2: checkboxtest.cfm
> > > > >
> > > > > <cflayout type="border" name="layoutborder">
> > > > >  <cflayoutarea name="Center" position="center">
> > > > >    <a
> > > href="javascript:ColdFusion.navigate('checkbox2.cfm','catz')">Click
> > > > > Here</a>
> > > > >  </cflayoutarea>
> > > > > </cflayout>
> > > > > <cfdiv id="catz">
> > > > > </cfdiv>
> > > > >
> > > > > ---------------------------
> > > > >
> > > > > The first page, by itself works just fine.  The second page gives
> an
> > > > error
> > > > > and we cannot figure out a solution.  I really like the dynamic
> > nature
> > > of
> > > > > using coldfusion.navigate to load a page into the cfdiv on the fly.
> > > > >
> > > > > How can I make the second page work?
> > > > >
> > > > > --
> > > > > David Mineer Jr
> > > > > ---------------------
> > > > > The critical ingredient is getting off your
> > > > > butt and doing something. It's as simple
> > > > > as that. A lot of people have ideas, but
> > > > > there are few who decide to do
> > > > > something about them now. Not
> > > > > tomorrow. Not next week. But today.
> > > > > The true entrepreneur is a doer.
> > > > >
> > > > >
> > > > >
> > > >
> > > >
> > >
> > >
> >
> >
>
> 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Want to reach the ColdFusion community with something they want? Let them know 
on the House of Fusion mailing lists
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:329503
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

Reply via email to