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

Image may be NSFW.
Clik here to view.

Re : Nested model canjs

Thanks for the reply, but the given example at the above link is not working, I understood some part of that, but the basic problem with nested model is that, when I am creating a new library, at that...

View Article



Re : Nested model canjs

Nested models are used here

View Article

jQueryMX dowload page not working

Hi, I've been trying since yesterday download the last version of jQueryMX but something is wrong with the page.¿Am I doing something wrong? I tried with different browsers.Thank you!

View Article

steal/buildjs not able to parse js file encoded in UTF-8 with BOM?

Hello,I had a few JavaScript files encoded in UTF-8 with BOM and I tried to run buildjs to minify the files but some error parsing messages showed up.Then I changed the encoding to UTF-8 without BOM...

View Article

steal/generate functionality?

Is the generate functionality still supported? ./js steal/generate/controller [NAME]    Generates a Controller file./js steal/generate/model [TYPE] [NAME] Generates a Model filePatrick

View Article


Re : steal/generate functionality?

not via steal.  Only the jmvc-generators are supported like:./js jmvc/generate/app appName

View Article

Re : jQueryMX dowload page not working

There is no jQueryMX download anymore.  It's been split into 2 different projects:http://canjs.comhttp://jquerypp.com

View Article

Re : jQueryMX dowload page not working

Ok, thank you. I was trying to make a custom download from http://javascriptmvc.com/builder.html assuming that jQueryMX was splitted in canJS and jQuery++.Regards

View Article


Re : Justin - Added failing testcase - Is there a better way to load base...

JustinThere are 3 issues but only first 2 are critical.Also is the approach correct? Is there a better way to do?Here is the failing test case. https://github.com/bitovi/steal/pull/162

View Article


Re : can.Component

Is this stuff just proof of concept or do you have any working code?Where do you see a can.Component fitting into the MVC paradigm? Seems like it is a mini MVC in it own.Do you feel this is moving away...

View Article

Re : can.Component

Working test code:https://github.com/bitovi/canjs/blob/canComponent/component/component_test.js#L13https://github.com/bitovi/canjs/blob/canComponent/component/component_test.js#L141It's not moving away...

View Article

Re : can.route mangles hash value when you change it to a value including...

I encountered this too. The problem is once additional & is appended after #!, the route definition is not found anymore.

View Article

how do i access the data in the template?

In show.ejs:<%= JSON.stringify(this) %> results in {}<%= JSON.stringify(info) %> error message "ReferenceError: info is not defined" Controller:steal('can','./init.ejs','./show.ejs',...

View Article


Re : how do i access the data in the template?

Does a Hotspot instance have a property named info?What's going on in the show function? You are rendering your Hotspot instance into this.element twice.

View Article

Re : how do i access the data in the template?

console.log(hotspot) result:{"info":{"id":"L199667","locID":"L199667","countryCode":"US","lat":"37.2406147","lng":"-121.869003","locName":"Alamitos Creek...

View Article


Re : how do i access the data in the template?

this.info or info would work to access the info property of the hotspot. If you want to use livebinding, you'll want to use this.attr(...). Of course, if you are in a can.each, $.each or similar, the...

View Article

Re : how do i access the data in the template?

The show.ejs is there.ReferenceError: info is not defined this results in {}

View Article


Re : how do i access the data in the template?

You are passing the showEJS renderer function to the .html function in the first line of show(). .html is expecting the name of a template or the path to one, not a renderer function.In the steal...

View Article

Issue with jsonp

I'm trying to get data from a service that returns it wrapped in a function but it doesn't seem to be working and I'm not sure why. I can see the data coming back fine, but then nothing else happens....

View Article

Re : how do i access the data in the template?

I think I am in business now. It seems the renderer does not work with a deferred for me.This is the solution: show : function(locID){ this.element.html('birds/controls/hotspots/show.ejs',...

View Article
Browsing all 3491 articles
Browse latest View live




Latest Images