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

Image may be NSFW.
Clik here to view.

Re : CanJS and Ruby On Rails

Nice to hear Mohamed Cherif BOUCHELAGHEM

View Article


Re : When using a Component, when do I choose between the init method of the...

you may look in can/component.js the order of init actions.

View Article


How to change data passed into child can.Component

Please see this fiddle:http://jsfiddle.net/marshallswain/N9d4B/10/I've successfully passed data to the child component through the use of the html name attribute in the parent component's template....

View Article

Re : How to change data passed into child can.Component

You don't want to pass in the string value. You want to pass a reference to the active.name property. So get rid of the {{ and name shouldn't be '@'.  That will fix it for...

View Article

Re : How to change data passed into child can.Component

Simple.  Thank you!  It plays tricks on the mind to pass a reference to a variable between double quotes.  :)

View Article


Image may be NSFW.
Clik here to view.

Steal build cannot handle utf-8 properly?

Hi, Can you make steal to build utf-8 template properly? My new project has to deal with Chinese mustache template. Everything is in utf-8 format. The template works fine in dev mode, but after steal...

View Article

Re : Steal build cannot handle utf-8 properly?

To solve this I would make a helper that would return utf-8 string .

View Article

Nested resource views

Hi AllI am building a small demo application that has nested resource views. For example:#!accounts - takes you to a view with a list of accounts on the left#!accounts/2 - takes you to a view with the...

View Article


Re : Nested resource views

why you are not using can.Component? It would make things much cleaner.

View Article


Re : authentication and routing

Trying to have an authentication page for my simple application (Let's say an application that have left nav and content). Below is the index.html    <!doctype html>    <html lang="en">...

View Article

Re : Nested resource views

Hi AlexI fail to see how component is going to help me, could you elaborate?Thanks,Sebastian

View Article

Re : Nested resource views

Hi, you mean how to handle related data? Maybe you need to change the way you retreive data from the fixture (backend), Im doing some boilerplate work if you are interesting...

View Article

Image may be NSFW.
Clik here to view.

Re : Nested resource views

I mean how to handle the instantiation of nested views when hitting different routes. For example:#!accounts - Should instantiate an accounts control (show the orange navigation in the image...

View Article


Re : Nested resource views

I Updated my code hope it can helps.Mohamed Cherif BOUCHELAGHEM

View Article

Re : Steal build cannot handle utf-8 properly?

@alex thank you! I tried a mustache helper and it does not work.I believe I have to forget it and move on. I have wasted too much time on steal.

View Article


Unable to set desired context using mustache #with

First of all, thanks for a great framework.I have a use case when using #with helper with a nested can.Map. My data passed in to the view is in the form:var data = { map : new can.Map({a : {b : 'test'...

View Article

Re : Nested resource views

Hi,http://jsfiddle.net/xKc3H/339/here is a simple example with can.Component that shows how to glue your two widgets together (instantiate account view depending on what account is currently selected)...

View Article


Re : Steal build cannot handle utf-8 properly?

what do you mean it does not work? helper should just return a string you may keep the dictionary (of strings) some where. another way is not to use precomiled views (just string views, they will be...

View Article

Re : execution of steal causes DOM nodes to lose data attribute data

You are right, the source of my problems is that a 2nd version of jQuery that is being loaded.My code was derived from this examplehttp://jquerypp.com/#swipehttp://jsfiddle.net/Daff/abaZN/show/Its...

View Article

Re : authentication and routing

Is there any sample code for this ? Planning to have login page before the home page. 

View Article
Browsing all 3491 articles
Browse latest View live