How to add a date picker to a website? - javascript

tI am using rally developer (www.rallydev.com) and would like to use a date picker to insert date and time. However, I do not have the ability to upload any zip or images files into the website. I am constrained to using just one html page with css and javascript on it. In other words, I would like to find a way to use a date picker without having all the code for it with what I am developing.
Edit: Someone asked what the date picker will be used for. Obviously, the answer is to get the date and time. I would like to use the date and time as an input to do further processing in my code.

AppSDK 1.0 unfortunately does not include a DatePicker component. I don't believe there are plans to add a DatePicker component to AppSDK 1.0. Rally's recommendation for AppSDK 1.0 developers has typically been to use a calendar/picker component from JQuery or similar. Of course, as you note, since you don't have the ability to host such a component on rally1, you would end up referencing javascript libs external to the host, which could wind up generating security warnings in many browsers.
Rally's preview of AppSDK2, which is built on ExtJS 4, includes a fully-incorporated DatePicker component:
https://rally1.rallydev.com/apps/2.0p2/doc/#!/api/Rally.ui.DateField
You may be interested in starting to develop your App on the AppSDK2 framework, as this will soon be Rally's preferred platform for Javascript development, once it's out of preview. You can find more information here:
https://rally1.rallydev.com/apps/2.0p2/doc/

Here's some example, http://www.bitrepository.com/a-collection-of-free-javascript-date-pickers.html

Related

How to manage translating a complex React app

I am working on a relatively complex React project. It's integrated with WordPress and includes some static pages, as well as blog and product pages for e-commerce. I have been trying to add the ability for the user the choose the site language, i.e. English or Spanish. I have tried working with a package called react-auto-translate - for some reason, it doesn't work on all of the components with text, so that is probably not a viable option. I've also been trying out the GTranslate plugin for wordPress, which provides a language url, so if the user selects Spanish the JSON url changes to /es/wp-json, making all of the JSON data translated to Spanish. This would seem like the best option, except that it only takes care of the text coming from the JSON data, not the hardcoded text in the React app.
I have also attempted to use the Google Translate API directly, but was not successful in getting it to connect to my app.
Is anyone aware of any other solutions for handling translations in WordPress + React applications?
You can try this alternatives:
https://react.i18next.com/
Airbnb's Polyglot: https://airbnb.io/polyglot.js/
But take into consideration that none of this will work automagically, you may need to make changes to your project. Choosing an internationalization/localization solution may be one of the things you decided when designing your app.

Integration of FullCalendar into Apache Royale

I'd like to start a Apache Royale Project which needs Calendar/Scheduler functionality. I have been working a lot with FullCalendar which is a great library. Would it be possible to integrate FullCalendar in Royale and if so, how should I do it?
I'd started working on a basic way of doing this - wrapping up the JavaScript functionality that I found from FullCalendar 4.1.0 and using the 'default' sample as a model. Putting this into a simple AS3 class means that you can then use the functionality from within your MXML files or create it within AS3, and manipulate it as you would any other Royale UI element.
More work needs doing to this - i.e. supporting the other plug-in types (fairly straightforward to do) and extending the API that's supported. But it shows how it can be done.. feel free to suggest/contribute changes! I've put it into github here
Thanks

Modify NewForm.aspx Sharepoint Online

I'm new to SharePoint programming or modify form. I have a tenant with SharePoint Online and I created a list with calendar view: I'd like to modify the form when a user insert an event.
I tried to load the site with SharePoint Designer 2013 and tried to create a new form but obtained the error dialog with message "Could not save the list changes to the server."
After this, I tried to open the NewForm.aspx to see the code and maybe change it directly, but I can't see all the code: it seems that the part where there is the javascript is missing and there is a tag of missing assembly (sorry in the screenshot is in italian)
SPD missing assembly
So I tried with Visual Studio, but when I try to create a solution I obtain the error in the screeshot
VS create solution error
So the question is: I'm a beginner and I want to start with modify the NewForm.aspx so I can cancel some field to test: how to procede?
I found many links and references but it seems that SharePoint Online have different behaviour versus the old and on premise editions.
Any idea in what mode I can procede?
Editing or exchanging the Newform.aspx is the old way of customizing the SharePoint UI. The more modern way (and the only one which makes sense with SharePoint Online at the time of writing) is to use the JSLink Technology.
With JSLink you can attach custom JavaScript Rendering Code to Content Types, Fields etc. Check out the JS Link Introduction and the JS Link Tutorial

eclipse - how to extend the build-in javascript libraries?

While modifing my eclipse juno 4.2 with some WebDev-Features, I am currently stuck while adding library support for JQuery, JQMobi and other.
This is my situation:
(source: codespot.com)
This would be my goal:
The Problem
Is it only possible to manipulate the build-in JS-Libraries of Eclipse through plugins or manually too?
Because, when I click on Add JavaScript library, I don't get this:
In my case, there is only User Library - how can I add other ones?!
These links were kind of helpful, but don't show a solution to my problem:
https://stackoverflow.com/a/12892508/1370465
http://www.ibm.com/developerworks/library/os-eclipse-jsdt/
http://marketplace.eclipse.org/content/jsdt-jquery#.UVB0clfAm2U
A user library represent sets of JavaScript files chosen by a user and preset through the User Libraries preference page.
Everything else is provided by plug-ins.

WMD Markdown Editor with a custom preview

I'd like to use WMD with PHP Markdown Extra. I don't need any new buttons in the editor, but I need the live preview to reflect the use of the extra markdown features, most notably tables.
Is there a WMD configuration option to use a preview generated server-side? Similar to the previewParserPath value for MarkItUp? If not, what are my other options?
I'm working on a cross-language markdown implementation here: http://code.google.com/p/mdown/
It's a derivative of showdown, which is the Markdown implementation used in wmd.
It's currently 99% working in PHP and javascript, with one small non-critical bug in the javascript version.
I intend to add the features from PHP Markdown Extra ASAP, so they'll be available in both the javascript and PHP versions. In fact this was the whole reason I started this project...
So, it's not really an answer I guess, but if you're patient this should be ready by some time next week. Or, if you want to try adding it yourself, I can give you access to the project and you can take a shot at it.

Categories