I am still migrating :-) ... basically i have a jquery $.get that
gets an xml and then calls this.continue_to ... but appears not to be
working... has it been removed? searched the forums nothing..
All code worked in 1.5
If i just call the method then this.Class is UNDEFINED and i use
this.Class to save my vars when in a controller
Basically if on the callback i don't use this.continue_to then when it
arrives in processFaq the this.Class is undefined...
Here is the simple code
// Load in faq's
//$.get("content/xml/faq.xml", this.continue_to('processFaq'));
// Load in faq's
this.Class.test = ""; // this.Class is "VALID" here
$.get("content/xml/faq.xml", this.processFaq); // callback to
processFaq without this.continue_to
},
processFaq: function(data) {
// MORE CODE HERE - Removed..
this.Class.faqs = faqs; // this.Class is undefined
in my processFaq i need to store the faq which is an array that i
built from the XML file INTO a class variable
as i need access to it in the click event in the same controller ..
i.e.
var faqs = new Array();
// CODE TO BUILD FAQS variable.
this.Class.faqs = faqs; // STORE IN class level var so i can
access anywhere in controller
--
You received this message because you are subscribed to the Google Groups "JavaScriptMVC" group.
To post to this group, send email to javasc...@googlegroups.com.
To unsubscribe from this group, send email to javascriptmv...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/javascriptmvc?hl=en.
Thanks for the prompt reply.
On Dec 20, 7:01 pm, Alexandre Gomes <alexandre.r...@gmail.com> wrote:
> See
>
> http://javascriptmvc.com/#&who=jQuery.Model
>
> <http://javascriptmvc.com/#&who=jQuery.Model>Alex
> > javascriptmv...@googlegroups.com<javascriptmvc%2Bunsu...@googlegroups.com>