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
2
votes
1 answer

Django return .html file directly without parsing for template tags at all

I'm writing a single view Javascript application with a Django backend that only needs to return the initial index.html and all other templates come from a CDN. My problem is that this first index.html file is parsing out some of my "{{}}"…
bitwit
  • 2,589
  • 2
  • 28
  • 33
2
votes
3 answers

AngularJS - open controller in a dialog (template loaded dynamically)

I'm playing around with AngularJS. I'm using a controller and a templateUrl to have things done automagically :) Currently the layout has only
directive into which all the things are loaded. I'd like to open the modal…
2
votes
1 answer

Large shared code base, extend functionality

Our application is a large scale Javascript application, using the Javascript MVC framework. We are using the MVC app folder across all of our sites via an SVN:external, and each site also has their own files. The settings files are specific to the…
Scott Warren
  • 243
  • 3
  • 12
2
votes
1 answer

Difference between JavaScriptMVC and CanJs

Call me stupid, but I'm quite confused. Are they the same and can.js is simply its successor? They seem to share quite a lot of functionality. As JavaScriptMVC is not updated as regulary as CanJs I think about switching to the latter. Does anyone…
hugo der hungrige
  • 12,382
  • 9
  • 57
  • 84
2
votes
2 answers

Why do we need javascript mvc?

When would one go for using Javascript MVC ? I mean why there was a need for JS-MVC ? Is it only because this design pattern was famous in other languages, for code maintenance,readability and many web apps are shipping client side ? How does it…
furiabhavesh
  • 416
  • 3
  • 17
2
votes
1 answer

Finding the name of the Control attached to a element in CanJs

I am using Canjs to build my Web application . Now i have a issue while i am working on it. The controllers get changed on a Single HTML element and the controllers that got attached to that particular element does not get destroyed when the new…
user1299972
2
votes
2 answers

JavascriptMVC: Listen to event of instantiated Controller in wrapper Controller

I have 2 controllers: $.Controller('App.Browse', /** @Static */ { defaults : {} }, /** @Prototype */ { init : function(){ $('#map').app_map(); }, // how can I listen here for an event of app_map()…
user1236048
  • 5,542
  • 7
  • 50
  • 87
2
votes
0 answers

JavascriptMVC bind-unbind fails on Observe

I'm having this strange problem when creating-deleting JavascriptMVC Observe. Every so often, an "Uncaught TypeError: Object # has no method 'apply'" pops up in this part of code. $method = function( name ) { return function( eventType,…
Bizniztime
  • 1,016
  • 10
  • 22
2
votes
3 answers

Maintaining private key between https and http

I'm working on a new site that utilizes a service-oriented architecture, with pure JavaScript on the front-end, accessing web services for data via RESTful AJAX calls. It shouldn't be of particular importance but my stack…
Grinn
  • 5,370
  • 38
  • 51
2
votes
1 answer

EmbjerJS vs BackboneJS vs JavascriptMVC

My this question is about not learning or asking the basic structure and changes among all of them, its just about having the most strong criteria of all you GURUs who pretended the another framework over to one. I know this question had been asked…
Hamza Waqas
  • 224
  • 1
  • 12
2
votes
1 answer

javascriptMVC singleton with AJAX initializer design pattern

I'm trying to work out the correct pattern to use for a Singleton that initializes with an AJAX call. This is a simplified example of what I have working already. It works as expected, but I have a feeling this is not the "correct" way and that…
cliveholloway
  • 368
  • 1
  • 2
  • 13
2
votes
1 answer

How to steal build an app of two html files with shared dependencies in JavascriptMVC

I have an application with two html files: app/page1.html app/page2.html These pages share dependencies, i.e -jquery / plugins and I want to use the "steal build" script to build them efficiently. I found some examples and questions that describe…
Shai Reznik - HiRez.io
  • 8,748
  • 2
  • 33
  • 33
1
vote
3 answers

How to simulate disabled button with custom button tag?

jsbin link: http://jsbin.com/axevid/2 <- open using Webkit browser (Chrome or Safari) When regular button is disabled, all events are disabled too. I created a custom tag (part of the requirement of the project) for a custom button. But how can I…
Sherzod
  • 5,041
  • 10
  • 47
  • 66
1
vote
2 answers

How to make funcunit close the new browser window after tests

I'm using funcunit for testing my JavascriptMVC application. It opens a new browser window where it runs my application. I wish it also closed the window after tests. How to do that?
raimohanska
  • 3,265
  • 17
  • 28
1
vote
1 answer

steal/buildjs throws an error with no explanation during the build of an app - Javascript MVC

I am trying to do a build using steal/buildjs of Javascript MVC, which should wrap all js and css files into production.js and production.css, and it throws an error and just prints some function (I assume). I am doing it inside of terminal by…
Sherzod
  • 5,041
  • 10
  • 47
  • 66