Questions tagged [javascriptmvc]

JavaScriptMVC is an open source jQuery-based JavaScript framework for developing JavaScript application using traditional MVC architecture.

JavaScriptMVC is an open-source Rich Internet Application framework based on and OpenAjax. It extends those libraries with a model–view–controller architecture and tools for testing and deployment. As it does not depend on server components, it can be combined with any web service interface and server-side language.

It consists of the following standalone components:

JavaScriptMVC is MIT licensed with the following exceptions:

  • Rhino - JS command line (MPL 1.1) Selenium
  • Browser Automation (Apache 2)

More Information

191 questions
0
votes
1 answer

How to make can.Model send JSON data when update?

I have this code: var SotriesModel = can.Model.extend({ findAll: 'GET /api/stories/', create: function(story) { console.log(story) return $.ajax({ url: '/api/stories/', type: 'POST', …
nvcnvn
  • 4,991
  • 8
  • 49
  • 77
0
votes
1 answer

CanJS - how does the views .ejs get populated at the index.html

I've just started with CanJS. After viewing a tutorial from http://net.tutsplus.com/tutorials/javascript-ajax/diving-into-canjs/ I was wondering how does contactsList.ejs knows where to place it's data inside index.html? It placed it's data…
Steve Ng
  • 1,189
  • 1
  • 13
  • 35
0
votes
1 answer

What is the folder structure to work with Javascript MVC framework?

I want to work with Javascript MVC framework to implementing GUI's. what is the folder structure and how do I create that folder structure. what are the steps I have to follow? which server will support to work with Javascript MVC framework.
0
votes
1 answer

How to get only loaded JSON keys and values from jquerymx Model?

I'm trying to write an ejs Template, which shows all key's and values from an javascript MVC Model. According to this this answer, I've tried the following: Person.findOne({id: 51}, function(person) { …
luckyluke
  • 491
  • 7
  • 16
0
votes
1 answer

How to organize paths to view templates with Controllers using inheritance in JavaScriptMVC?

I'm struggling almost the whole day now with the following: I have two controllers, where controller A extends $.Controller and B extends controller A. Controller A provides event handlers for some common events on it's element and Controller B…
Thorsten Schöning
  • 3,501
  • 2
  • 25
  • 46
0
votes
1 answer

Going through JavascriptMVC 'rapid start' tutorial getting a 403 error

I'm getting started with JavascriptMVC, going through the rapid start todo sample application. I'm getting a 403 error on the first step. Here is my code: todos.html
    user1743524
    • 655
    • 1
    • 7
    • 14
    0
    votes
    1 answer

    JavasctiptMVC keypress event

    My work in JavascriptMVC is capturing the enter press event and i have steal ('jquery/event/key') plugin and my code is 'input keypress': function(ev){ alert("inside"); alert(ev.key()); if(ev.key() == '\r') { alert("enter"); } }, but it doesn't…
    rajapallavan
    • 101
    • 1
    • 7
    0
    votes
    1 answer

    CanJS and Mustache

    I'm having problem using mustache in my application. I've stolen 'can.....mustache' and I've a Model object with this structure: // widgets Models.LayoutWidget = can.Model({ findAll: 'GET /pages/{id}/layouts/widgets' }, {}); Then with a…
    th3n3rd
    • 375
    • 1
    • 3
    • 20
    0
    votes
    1 answer

    CanJS url changed back to #! when can.route.ready(true) executed

    Code is here: http://jsfiddle.net/cTpPx/, but view the live example here http://fiddle.jshell.net/cTpPx/show/, because I want you to observe the url changes. Please disable Chrome cache when visit this page (Tick the relevant box in the built in…
    user469652
    • 48,855
    • 59
    • 128
    • 165
    0
    votes
    1 answer

    Javascript MVC Controller and Click Events

    I'm having a problem with the click events not working using a Javascript MVC Controller. TEST.Assignments.AssignmentsController = function (element) { var elements = { activeAssignmentsPanel: $('#lpn-activeAssignments_Cont'), …
    pfunc
    • 1,305
    • 2
    • 24
    • 52
    0
    votes
    1 answer

    Javascript MVC Url routing Component, routing in both side

    i am making my own small jsmvc lib, and now i want a simple routing lib for my small framwork, i am just wiring up open source libs together to make it work according to my needs, and now i want a simple url routing componet in my framwork, which…
    dev.meghraj
    • 8,542
    • 5
    • 38
    • 76
    0
    votes
    1 answer

    EmberJs ,could one action to many view?how to get list view from list item?

    1.what's the relation between controller and action and view? i guess i mix something of them. 2.if i define a 'userController' .does it control user list view? should i define a 'usersController' to show user list? if recommend some sample…
    0
    votes
    1 answer

    JavascriptMVC and Bootstrap

    I am trying to setup a project to use javascriptmvc and twitter bootstrap. I used the app generator built into javascript mvc to create the file structure, and then added a resources directory. -AppRoot -documentjs -funcunit -jquery …
    Nath5
    • 1,665
    • 5
    • 28
    • 46
    0
    votes
    1 answer

    Backbone.js Collection's fetch call is erroring out

    Still wrapping my head around Backbone, and running into an issue where my Collection won't populate when I'm passing it JSON from a file. The fetch() call is erroring out, but I'm not sure how to debug it exactly, as my console.log()'s aren't…
    0
    votes
    1 answer

    Backbone: trying to figure out the basic control flow, could someone tell me if this is sane?

    I'm building a simple Backbone application with a search form and some results. I'd like to: allow the user to change the value of an 'order by' select field, and update the URL and results appropriately ensure that when the user arrives via a…
    Richard
    • 62,943
    • 126
    • 334
    • 542