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

JMVC Model Validation Queries

(JMVC not Can!)I've been reading through the JMVC Model Validation docs and have a few questions which I can't seem to obtain definitive answers for. I hope someone can help!Why is model validation...

View Article


Re : Can UI positionable flip fit question

If you specify two different collision methods, the first refers to horizontal and the second to vertical. If you specify one, it will apply to both horizontal and vertical.So "flip fit" means- if the...

View Article


Re : Can UI positionable flip fit question

Thanks, ok, got it. I thought that flip fit means that first it will try to flip and if it doesn't work try to fit. I would also consider adding the option of fitting not by nudging it, but by changing...

View Article

Re : Can UI positionable flip fit question

And one more, important thing: I didn't find a possibility to pass a containment element (intersecting with borders of which will actually cause the collision), is there a way?

View Article

Re : Can UI positionable flip fit question

You're right, resizing the element is not something that would make sense for the plugin. You can pass a using function that receives the calculated position and a feedback object. The actual...

View Article


Re : Can UI positionable flip fit question

I've aready added one https://github.com/bitovi/canui/issues/19

View Article

Re : JSMVC vs CanJS vs DoneJS

I was just about to ask the same question.How painfull will be the jQueryMX replacement in 3.3?Will I have to rewrite all the classes from $.Class to can.Construct or will it be an alias?Looking...

View Article

Re : JSMVC vs CanJS vs DoneJS

You don't need to wait, can.js is here quite a long time already. (http://canjs.com ) You will need to refactor all you classes/modules definitions, replace $. with corresponding can.  objects and...

View Article


Re : JSMVC vs CanJS vs DoneJS

Yep, that's the point.Refactoring would need a huge amount of time at this point.If the transition to CanJS does not work seamlessly it will have to wait until there is time for it.

View Article


Re : JSMVC vs CanJS vs DoneJS

To clarify,JMVC 3.3 is built on CanJS. So you'll have features like live-binding, etc. However, it comes with aliases as well.So:$.Controller === can.Control //behind the scenes.DoneJS === JMVC 4.0 and...

View Article

Re : JSMVC vs CanJS vs DoneJS

As you can see from https://github.com/bitovi/jquerypp/blob/master/controller/controller.js there will be aliases between CanJS and JMVC API which should make transition easy.

View Article

Re : JMVC Model Validation Queries

1) It is placed in the init() method because you are basically registering a validator for an attribute name. Init itself will only be called once when instantiating the Observe using the new...

View Article

Templated Event Handlers & Observe.List

Hi All,I have a Can.Control that essentially functions as a list of items.  I'd like to listen to attribute changes made to individual items in this list.The list is a Model.List, which is bound to my...

View Article


Re : Templated Event Handlers & Observe.List

Why is "{items} change" inefficient?

View Article

empty route does not fire on this JSFiddle

Code: http://jsfiddle.net/pJTWm/2/There is no error happen, but the empty route does not get called. What I missed here? Thanks.

View Article


Re : steal build silently fails, non deterministically, on some machines

A bit more investigation has shown further where the problem is. It appears there are actually two issues.The first is specific to EJS files, when the build completely fails (only outputs the first...

View Article

Re : steal build silently fails, non deterministically, on some machines

We also saw this, discussing what sounds like a connected issue in EnvJS 1.2:https://groups.google.com/forum/#!msg/envjs/kE8VvAlJ5-8/UThGH2X5CewJHas anyone successfully swapped over to EnvJS 1.3 ?

View Article


Re : Templated Event Listener Handler Debugging Tools

I did a lot of research on this tonight.I set up a sample Web page to examine this issue, which simply contains two links with different types of event handlers. The first uses jQuery .on(); the...

View Article

Re : Templated Event Listener Handler Debugging Tools

#1, #2You see the internals of CanJS, because technically that is the handler for the event. A breakpoint inside that function will point you towards the actual method in the Control that is...

View Article

Re : JMVC Model Validation Queries

Hello Daff,Thanks for the reply.OK, so if I had a model that had nested models how would I validate the nested models? AFAIK you invoke validation by either save() or this.attr() - how would I manually...

View Article
Browsing all 3491 articles
Browse latest View live