Prototype/Scriptaculous/JavaScript Data Picker control - javascript

In a current project we need a calendar control that can display 2 months at a time rather than the standard 1 month. Unfortunately the project is heavily tied to the Prototype API and Scriptaculous, so the option of using jQuery or any other framework is unavailable. So the control needs to be written in Prototype, Scriptaculous or standard JavaScript.
Does anybody know of any such control?
Thanks,
Chris
NOTE: I forgot to mention it originally, but we are tied to the 1.5 version of Prototype.

Would this script be good for your project ?

Related

Magento jQuery themes

Is there such a thing as "jQuery" themes for Magento? Why are developers still writing themes in prototype?
Here are my concerns:
Themes rely rather heavily on the framework so much that so that without JS enabled (or indeed, if there's a bug which breaks JS), you can't add to basket, you can't checkout... that's bad, really, really bad.
Last update to prototype was 2012. It's not developed any more. We've just had to fix a bug where a Firefox update has broken a page. If it's not being developed in line with browser updates, it's self-destructive.
And yet all I see is themes written with prototype, which is just plain stupid. Someone please show me where the jQuery themes are.
If jQuery had come out sooner it would have probably have been in Magento, but it wasn't and prototype was a more well established framework at the time.
You can use jQuery with Magento if you really want to by using noConflict mode of jquery. If you absolutley need it. For the most part prototype works just fine, and there isn't always a reason to load 2 javascript frameworks into your site at a time.
I highly recommend http://youmightnotneedjquery.com/ if you're just looking to execute a few simple things.

Orchard CMS and javascript: Number.parseInvariant

I can't get certain jscript functions in Orchard. At this moment I am struggling with Number.parseInvariant function. This works fine when using a standard ASP.Net mvc3 web application, but when porting it into Orchard this function cannot be used. I think the same goes also for Sys object. My two pennies is that in ASP.net MVC another implementation of the scripting libraries is used then in Orchard.
Anyone knows how I can bypass this. Or maybe some alternatives to this specific function?
Number.parseInvariant and sys are extensions brought by Microsoft Ajax, it's not standard JavaScript. Microsoft Ajax is an obsolete library that you shouldn't be using. Please use more standard ways to do the same thing, such as parseInt.
I have added Microsoft.Ajax.js to the project and referenced it. I dont know if this is the best way. At least it works for me now.

ASP.NET MVC3 and right opinionated client side software development model?

I am currently evaluating how to create and maintain MVC3 web applications that have a level of client side richness we've never attempted before. I realize this will require a much more thought out usage of javascript.
This lead to me starting research on Dojo and Closure. Of course the amount of information (especially in context with various versions) is just overwhelming on this.
Does anyone have any good sources of guidance on working with tools such as these in the context of MVC2+ style applications? Such as which mesh well, and which have the highest barriers, personal success or failure stories and so on.
This is interesting, because I think Microsoft is leaning heavily toward wanting MVC users to use jQuery in their projects. jQuery is the only JavaScript framework included by default in the MVC project at creation. They are also actively developing plugins to use in MVC projects. Now I am not saying you should use jQuery for these reasons, but it is hard to ignore how much effort MS is putting towards jQuery and making it a large part of the MVC workflow.
jQuery all the way is the only way. MVC 3 libraries use it behind the scenes anyways now. Whats the issue with simply including the scripts as opposed to relying on the dogo.requires() ?
With jQuery - simple includes on your layout pages are all you need most of the time. There is some faultiness when you want validation to occur on an ajax loaded partial view in which you need to 'tell' jQuery about the new content to validate, but besides that its quite solid.
Just stumbled onto this question: not sure whether you're still interested in it.
There are several internal initiatives inside Dojo to build an MVC module and low-level "binding" functionalities into Dojo, and use automatic binding as the "glue" between the model object and the view (or widgets inside the view).
dojox.mvc is where most of this work is currently residing.
I have a small implementation of automatic binding (similar to WPF so you can actually do MVVM with Dojo) intended as a plumbing layer in Dojo. There is a small proof-of-concept test page here: http://www.mingleplace.com/test/bindingtest.html
So, the short answer is that MVC is actively being developed/pursued in Dojo, and experimental packages are already available. However, as far as when the actual API will be formalized into Dojo, you probably have to wait till 2.0...

Preferred calendar for ASP.NET

I search a good calendar for my business application.
The Microsoft ASP.NET calendar is perfect for my requirement, but I heard that this component is not longer supported by Microsoft. My apprehension is that I must in the near future program a new one.
Should I use a jQuery calendar ? Can I use a future-proof library ?
Why not the Calendar control from Ajax Control Toolkit?
http://www.asp.net/ajax/ajaxcontroltoolkit/samples/calendar/calendar.aspx
Also why take a calendar control very seriously ;-)?? If they stop support or change something its not going to be a show stopper. you will be able to update/change easily.
you might want to design your own interface or decade class to be future-proof. i think nothing is certain in this world. In my project, jquery UI is used but i treat it as normal textbox with certain input-format string. You might want to create a custom user control in ASP .NET, therefore even you change the front end UI with correct format; nothing need to be changed to C# code.
In my opinion, it is always adding a decade to 3th part component.
Take your pick from one of these jQuery Calendar plugins.
Calendar Extender AJAX Control Toolkit for ASP.Net 2.0 framework provides AJAX-based client-side functionality to choose the date of the extender control popup calendar.

Suggestions for a JavaScript form builder? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 7 years ago.
Improve this question
I'm looking to integrate a form builder into a site I'm using, but I'm hoping to find a library that has some or most of the functionality I'm looking for.
I'm looking for a library that will give me a nice GUI for building the form, and a JSON (or XML, or similar) output that I can play with in the django backend. I'm planning to use django to output the finished form.
I tried running this through Google, but that only yields companies who make a business out of creating and hosting the forms online. But nothing in the form of a library.
Any suggestions?
I have the same requirement,
I will update this answer over time but bootstrap form builder ( PHP ) seems nice
https://github.com/minikomi/Bootstrap-Form-Builder
demo : http://minikomi.github.io/Bootstrap-Form-Builder/
If you dont mind spending a bit of cash you can look at:
Machforms : http://www.appnitro.com/
The form builder itself is entirely client side JS, so you would just need to post the output (which is JSON) to django instead of their php script.
A new JS library that's just popped up might be what you are looking for: http://dobtco.github.io/formbuilder/
Project page: https://github.com/dobtco/formbuilder
Here are some:
http://code.google.com/p/jquery-form-builder-plugin/
https://github.com/stas/jquery.formbuilder
you could also look at:
http://wordpress.org/extend/plugins/visual-form-builder/
http://wordpress.org/extend/plugins/formbuilder/
http://wordpress.org/extend/plugins/form/
Not sure about the Django piece since I haven't worked with that yet, but you may want to look into AlpacaJS: http://www.alpacajs.org/
I would recommend the awesome ExtJS framework to build such kind of application.
Here's an example.
ext/formbuilder
Add a form panel, then drop a textbox and so on...dead simple.
Ext JS 2.2 and 3.0 (not yet ready) are LGPL and GPL licensed, you have also commercial subscriptions available, I think it worth to have a look at it.
SpiffForm is similar to Appnitro, but free (AGPL), perhaps it fits your needs.
Patches welcome :-). (I am the author.)
There was a google Summer Of Code project last year that built a drag and drop form editor using the Dojo JavaScript toolkit. It's not 100% complete in terms of the functionality I'm guessing you would want.
It does dump a javascript object representing the form which you can convert to JSON to send over the wire.
Depending on your JavaScript skill set it should give you a head start on the problem.
The demo is here:
http://jbalogh.dojotoolkit.org/dojo-svn/release/dojo/soc/test.html
Blog posts by the person working on it:
http://www.dojotoolkit.org/blog/jbalogh
I don't think there is anything exactly like what you want out there; probably the closest would be a rich text editor such as FCKEditor or TinyMCE. These libraries are a bit like the UI you used to write your question in StackOverflow, except that they have toolbar buttons for the different FORM elements (or if they don't, you can easily add them yourselves).
A user faced with one of these editors (assuming you'd configured it to have buttons for FORM elements) would be able to lay out a form with basically no technical knowledge.
However, if a rich text editor doesn't work for you, then you're basically stuck with using something like the jQuery UI library (I'm thinking mainly of the Draggable sub-library) to build your own solution.
It depends on if you're ready to program it yourself. How dynamic do you want it? A simple form builder shouldn't be too hard to program using GWT, Dojo or your-favorite-js-library if you want to go that route. I'd recommend GWT because it's really fun, simple to use and takes care of the incompatibilities between browsers.
Here are some thoughts for possible inputs to each form/question:
Single line (for names etc)
RichTextArea (similar to FCKEditor)
Calendar date/time
Multiple choices (checkbox)
Single choices (list selector)
Each input needs a corresponding question, or a label. These need to be handled in your Model in Django, and represented as such in the forms view (and the editor).
I recommend you check out how to embed a GWT application into existing templates/html and how you can communicate between django and GWT using json
Hope this helps,
I you are using JSF you could use this formbuilder component:
http://code.google.com/p/jsf-form-builder/
A demo is available here:
http://www.reppe-itsolutions.at/jsf-form-builder/
Maybe this is not the right answer, but take a look anyway, it's awesome :
you put some very clear and simple to read code on a Java - server and you get a full AJAX /Javascript form.
Just take a look at the demo here.
I swear it's really, really awesome.
Olivier

Categories