Re : get rid of data-view-id attribute on rendered html?
Why are you using .render? You should be just calling templateFunction. Sent from my iPhoneOn Feb 17, 2013, at 4:29 PM, JavaScriptMVC Forum <noreply@zohodiscussions.com> wrote:
View ArticleRe : get rid of data-view-id attribute on rendered html?
I wanted to get raw rendered HTML like with can.view.render, that was my question:https://forum.javascriptmvc.com/#Topic/32525000001151011and daff said that he added render method to view function.
View ArticleRe : How to use Google or Bing Maps in a view
Hello. I want to create a similar map on our sites: http://www.smilex.cz , http://www.levne-letenky-viza.cz and http://www.dovolena-zajezdy-letenky.czWe Could anyone help with this? Someone experienced...
View ArticleRe : canJS: load model with associations, but only save the “base” model
One potential way to only get updated info would be, as beno said, to check if the data .isDirty(). Also, I would add a check to see if the object being looked at is an instance of can.Model or...
View ArticleRe : IsReady Support For can.Control
I can definitely see where this kind of functionality would come in handy. I've had to come up with similar setups for controls that require server-side requests prior to completing their initialization.
View ArticleRe : IsReady Support For can.Control
If it's just to show that ajax requests are being made, why not use $.ajaxSetup or some ajax hook to show loading only while the number of requests > 0.
View ArticleRe : IsReady Support For can.Control
@justinmeyerWell there are other widgets on the page that periodically poll the server for updates. Wouldn't that affect checking the number of AJAX requests that need to be complete in order to remove...
View Articleconvert can.Observe to plain object
in JMVC3.3/canJS attributes set by attr() are no longer simple objects, but can.Observe objects. Whenever I try to use these data in an ajax request buildParams fails.example: var params = can.Observe(...
View ArticleRe : convert can.Observe to plain object
each observe instance has serialize() method for that.
View ArticleRe : convert can.Observe to plain object
But what if I just want to serialize a single attribute?
View ArticleRe : convert can.Observe to plain object
Nested object will be converted to Observes as well. So you can do observe.attr('singleAttribute').serialize().
View ArticleRe : convert can.Observe to plain object
ah. I had tried params.extent.serialize(), which failed. params.attr('extent').serialize() works indeed. Thanks.
View ArticleRe : How to use Google or Bing Maps in a view
i resolved my issue if i put the for the map not on the ejs view but on the html page
View ArticleRange with zoom
Hi,I have a div with some text in it, onmouseup i successfully being able to initiate a range using $.Range({ pageX: e.originalEvent.pageX, pageY: e.originalEvent.pageY }).when this div has a zoom the...
View ArticleCreating a Deferred object to return to a view
I've been trying to integrate the LocalStorage model from TodoMVC into the existing models in my project and I'm so close, yet can't figure out how to return the right object from my findAll such that...
View ArticleQuestion about Dependance Management in StealConfig
Rather then steal().then() I'm trying to define module dependancies in stealconfig but running into issues.In the comments in steal.js (v3.3) it says (about line 2554): 'shim': { 'module id': {...
View ArticleRe : Question about Dependance Management in StealConfig
That should work. It throws an error here:https://github.com/bitovi/steal/blob/master/steal.js#L2275?You are using the latest from github?
View ArticleRe : Creating a Deferred object to return to a view
I got things working. It probably isn't the optimal way of doing this (findAll gets called twice), but... My mistake in my original post was attempting to use the Instances object from the findAll...
View ArticleRe : Question about Dependance Management in StealConfig
Thanks Justin. This was totally a pebkac issue, I was in a rush and thought I synced the upstream remote in my git repo but didn't, ahhh deadlines. Everything is working as expected now.Thanks again...
View Article