how to reference a coldfusion object via ajax -


i'm working page in coldfusion , have instantiated object on page. let's call object myobject. i'm able access methods of object (such myobject.getname()) on page , pages included part of page flow.

but load page in via ajax, , want able reference same object, seems cannot that. further, on ajax-loaded page want remote-call methods part of object. can remote-call methods themselves, again, if these methods invoke other object methods using, instance, this.getname() things don't work.

is there way reference previously-created object in ajax-loaded page works seamlessly?

(i thought doing encapsulating object in session variable, , work, i'd prefer find solution can work in multi-server environment.)

i'm using railo, believe in turn supports cf8 functionality. i'm not using oo frameworks , can't project.

you can't reference object instantiated on page ajax. component you've instantiated serverside. ajax client side.

cfajaxproxy create javascript proxy component can call methods on component javascript directly.

you use ajax functions call component javascript remote object or webservice.


Comments

Popular posts from this blog

c++ - Convert big endian to little endian when reading from a binary file -

C#: Application without a window or taskbar item (background app) that can still use Console.WriteLine() -

unicode - Are email addresses allowed to contain non-alphanumeric characters? -