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

Re : Stop/Start routing

Oh, that is a good one. I will have to investigate that further. I'm assuming state is a construct I create? Or is this something built in I missed?

View Article


Re : Stop/Start routing

I usually make it an Observe that I pass to different Controls to share state information. Much like can.route is an Observe that contains the window hash state.var appSate = new can.Observe({});var...

View Article


Re : Mustache views and deferreds

You're right. I'll check out why. Could actually be a bug (it should at least work when using a separate view file).

View Article

Re : Mustache views and deferreds

I tried to do it with mustache templates loaded via steal - no, it does not work.

View Article

Re : Stop/Start routing

Nice. Thank you for this. Even after half a year of non-stop CanJS programming, I still find myself not implementing things with an observable even though it makes life so much easier.

View Article


How to select DOM elements within EJS file

I was wondering what the easiest way is to select DOM elements in an EJS file?  I have an EJS file with the following contents:<table id='mytable'><tr>    <td><%= message...

View Article

Mustache template not rendering null string value correctly ??

Hi guysWith live binding it seems to me that values rendered in the interface should *exactly* match those in the defining context object(s). But for null strings they don't.A simple mustache...

View Article

Re : Mustache template not rendering null string value correctly ??

What version are you using? This should be fixed at least in 1.1.6.

View Article


Re : Mustache template not rendering null string value correctly ??

DaffI'm on 1.1.5I'll checkout the 1.1.6 upgrade, thanks for the swift response.Ron

View Article


Mustache live binding bug with empty arrays

More Mustache Madness (:-)Previous issue with null values rendering incorrectly is indeed fixed in 1.1.6, thanks daff.However, another bug has surfaced. At least I'm pretty sure it's a bug.I'm endering...

View Article

Re : Mustache live binding bug with empty arrays

For clarification :I am pop/pushing to amend the array ...Ron

View Article

Re : Mustache live binding bug with empty arrays

How are you iterating through the array? If you are using the each helper, that bug was fixed in this pull request

View Article

Re : How to select DOM elements within EJS file

First, please get used to using the console to log things - alerts are for other things.  Next, I would make a strong argument for doing what you are trying to do from your controller.  The controller...

View Article


Updating a live binded Observable object

HiI have an observable object on a user:user = {   name:'Name',   addresses:[      {         'id':'1',         'street':'Street'      },      {         'id':'2',         'street':'Street'      }...

View Article

Re : Updating a live binded Observable object

Update the original user with its .attr() method. Sent from my iPhoneOn Jun 29, 2013, at 2:43 AM, JavaScriptMVC Forum <noreply@zohodiscussions.com> wrote:

View Article


Re : Updating a live binded Observable object

Thanks JustinSo what you are saying is that the only way to get the live update to trigger is to modify the existing object.Do I then need to go in and run .attr on every single property in the...

View Article

Re : can.Observe.List indexOf

I just expierienced the same problem and found out, that it works on a can.Construct object.See your updated jsfiddle: http://jsfiddle.net/qYdwR/883/

View Article


Re : what is difference between map and paths in steal config file?

May I know specific case where map should be used and paths doesn't work?

View Article

Code review: caching frequently used model objects using custom cacheOne...

Hi AllPlease review cacheOne method in MyApp.BaseModel class. Please let me know if there is a better way to do this."cacheOne" : (function () {                        // private variables var model;...

View Article

Re : what is difference between map and paths in steal config file?

Have a look at line 736 and following in steal/steal.js file. It's explained there.https://github.com/bitovi/steal/blob/3b8f26cd678636038c602e94b025830039015eea/steal.js#L736

View Article
Browsing all 3491 articles
Browse latest View live