Quantcast
Channel: JavaScriptMVC Forum
Browsing all 3491 articles
Browse latest View live

Re : CanJS for medium to large application with AMD

Yes it works without observe list and the route is the observe.Thank youMohamed Cherif BOUCHELAGHEM

View Article


Handling long dependency lists?

I have a few modules which have long lists of dependencies, which we aren't planning to refactor yet. The normal steal('dependency1', 'dependency2', function(d1, d2) { ... }); syntax still works, but...

View Article


Re : can.Observe.List() not working with mustache template

This is not fixed in 1.1.4 too I have the same problem and is fixed with this workaround.In my case I need ul li elements so it's ok but nice to know thisMohamed Cherif BOUCHELAGHEM

View Article

Re : can.Observe.List() not working with mustache template

This isn't fixed yet, but it will be fixed in 1.1.5 (scheduled for later this month).

View Article

Destroying All Models in a Model.List

Should I be able to iterate over a Model.List using .each and destroy each model in the list or will the size of the list get screwed up after one is destroyed.I haven't debugged it too much, but I...

View Article


First selected option in dropdown list?

Hi, look at this fiddle , please how I can select the first option on select element when first instantiate the widget.Mohamed Cherif BOUCHELAGHEM

View Article

Re : can.Observe.List() not working with mustache template

Thank you I see in the jquery template in jsfiddle that 1.1.5 is in pre version, maybe is soon.Mohamed Cherif BOUCHELAGHEM

View Article

Re : The best way to keep state of logged user?

Thank you for your time and your explaination, I ll try that and you will have my feedback later.Mohamed Cherif BOUCHELAGHEM

View Article


Re : First selected option in dropdown list?

Not sure what you mean...You can change the option selected using jQuery's val$('select').val(10) //-> YUIYou can also retrieve the value selected using jQuery's val() with no arguments.

View Article


Re : Destroying All Models in a Model.List

I haven't looked into this, but when you destroy an instance, the destroy event will modify all Lists that have that instance so that is what is messing with your loop (probably).Try using...

View Article

Re : Handling long dependency lists?

Accessing the internals of steal is pretty sketchy so I would avoid doing that.There is no syntactic sugar similar to RequireJS, but it looks like something that should be added to Steal especially...

View Article

Re : First selected option in dropdown list?

For the first element (in this case canjs) I want it to be selected automaticaly if the control is initialized the first time and the val is displayed .Mohamed Cherif BOUCHELAGHEM

View Article

Canjs and jquery problem

Hi,I'm experiencing a strange problem with canjs 1.1.4 and JQuery 1.9.1.I see a TypeError: contacts.count is not a functionwhen I create a list of objects, using fixture, and try to access to custom...

View Article


Re : Handling long dependency lists?

Here's the issue: https://github.com/bitovi/steal/issues/115I spent some time trying to prototype it into steal myself, but didn't really get anywhere -- the RequireJS approach feels hacky to me, but I...

View Article

Querying Document Fragment

Is it possible to query a document fragment and instantiate a can.Control on a specific element within and then add the whole fragment to the DOM?frag =...

View Article


Re : Circular Dependency With Steal: Model Data Modeling

Has this ever been addressed?Does steal handle circular dependencies?Thanks.

View Article

Production JS not right when creating simple "myapp" example...

... as described on the stealjs site:  http://bitovi.com/blog/2010/09/stealjs-script-manager.html Using: OSX 10.8.2, Java 1.6.0_43, Rhino 1.7 release 1 2008 03 06 , Rhino 1.7 release 4 2012 06 18 EDIT:...

View Article


Re : Build issue

I had exactly the same issue, made even more confusing by the fact that sometimes it would work, sometimes it wouldn't. It ran consistently on my local machine, but failed 90% of the time on my build...

View Article

Re : Querying Document Fragment

If you're using jQuery, it itself doesn't support queries within document fragments -- I think I'm wrong about that: simple navigation seems to work (.children(), .first(), etc) but the full sizzle...

View Article

Re : Querying Document Fragment

Yeah, I did some searching and it seems document fragments don't support the full sizzle engine.

View Article
Browsing all 3491 articles
Browse latest View live