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

Re : can.Control initialisation

Thanks for the suggestion. We are more familiar with JSMVC 3.2 Controllers and Models and have already done quite a lot of work with can.Control in this project. But if I get the time, I'll definitely...

View Article


Re : Moving DOM Elements Containing Components

You're inserting component in DOM again, you'll have to make a manual check if the component was inserted already.

View Article


Re : Moving DOM Elements Containing Components

Here's actually how I ran into this. I was working on an app that was using Colorbox. When I inserted a can.Component tag into the content to be displayed in the Colorbox, I noticed that the "inserted"...

View Article

FuncUnit .click() not hitting canJS component's click handler

I'm new to both canJS and FuncUnit and am trying to develop a demo app using TDD.  I have used Jasmine in the past so I decided to continue to try it here.  The app is very similar to the todo sample...

View Article

Re : Custom view render

Ah, I just noticed that the link in my previous post didn't go to the most recent revision were all my code comments were, so here's a new one:  http://jsfiddle.net/air_hadoken/6LpSs/4/So with Mustache...

View Article


Re : Moving DOM Elements Containing Components

The inserted event will trigger every time a components element is inserted, which will happen every time the element is "inserted" into a dom node, including appending/moving. What you're seeing is...

View Article

Re : Getters and setters with can.Map

OK, that is a pretty cool selling point which should be made an example of on the front page, because I see certain use cases I had in the past where such a behaviour could greatly simplified......

View Article

Steal + can.js won't include my first file

I'm seeing some strange results with steal and can.js (the version packaged with JMVC 3.3)Previously, I had encountered some problems with getting steal to build things at all, which I posted here:...

View Article


Component, Control or Both

Let's say you wanted to develop a jQuery UI-like tabs widget using CanJS. This widget will take existing DOM elements/structure and convert them into tabbed format.What would be the correct way develop...

View Article


Re : How to generate documentation in javascriptmvc3.3? I didn't find doc.bat...

Yes, same issue. But I found it's a bit interesting. This issue only occurs when I use the app generator in an UPDATED canjs & documentjs environment.If I just use the pre-packaged...

View Article

Using a compute as a property of a Map

Hi I'm trying to create a compute as a property of a Map. But I've been unable to correctly combine the two. Any guidance would be appreciated. We're using version canjs 1.1.8 with jquery. var Contact...

View Article

Re : Component, Control or Both

The can.Component documentation includes a tabs widget example: http://canjs.com/docs/can.Component.htmlI don't understand what you mean by modifying existing DOM... can you give an example of what the...

View Article

Re : Component, Control or Both

Is there a way to create a simple, reusable widget from a can.Component?People use jQuery UI widgets because they are pretty easy to use. Set up some DOM content and then instantiate the widget on a...

View Article


Re : Using a compute as a property of a Map

This is only possible in 2.0

View Article

Re : Using a compute as a property of a Map

Thank you.We're using JavascriptMVC 3.3 but want to take advantage of the new CanJS features. Would you recommend we upgrade to CanJS 2.0.5? Looking at the migrating documentation the process doesn't...

View Article


Re : Component, Control or Both

Depends on what you want to create and where to use it. I thin can.js components is better to use in can.js web apps or big widgets. You can create self-sufficient components users of which will not...

View Article

Re : Re: Data-Driven Javascript Controls -- What about checking checkboxes?

Thanks for the replies. I spent some time playing around with can.Component and using its scope as a makeshift/implicit ViewModel -- I think I have a much better grasp of this as a whole now.I ended up...

View Article


Re : Component, Control or Both

When you define a component, the resulting constructor has a Control property -- there might be some way to make this work on its own.As a rough test, this snipped seemed to give me a control instance...

View Article

Re : Component, Control or Both

Well what if I want to create a reusable piece of code that anyone else can plug into their site/app?I used jQuery UI tabs as an example and matthew pointed me at the can.Component tabs example....

View Article

Download/export documentation?

I've been asked to put the JSMVC documentation on our wiki. Since our system cannot connect to the Intertubes, is there a way to download/export the docs and reconstitute them on the wiki...

View Article
Browsing all 3491 articles
Browse latest View live