Can we create the controls using Scriptaculous.js and prototype.js or this library is for giving the effects on control - scriptaculous

I am New for the technology.
I want to know that "Can we create the controls using scriptaculous.js and prototype.js or this library is for giving the effects,Drag n Drop,Auto Completer?." Because i have seen in dojo.js they have their own controls as we create in dojo.(Button,CheckBox etc...)
I want to know about which is the best library to used for Effects,Animation etc.
(scriptaculous.js,prototype.js vs dojo.js vs jQuery vs YUI).
Please comment on it.
Regards,
Mauunusanghi

Yes, you can create controls using prototype. You'd typically be using Element.insert. You can also use all scriptaculous/prototype functions on the newly created element.
The "which is best" question is answered elsewhere on SO.

Related

How To Create a Standalone Swift SDK

I would like to create a SDK to use without iOS or Xcode.
Let me explain. I would like to use Swift language to create a framework with which to develop front-end. In few words with this framework I would like create html pages for web and substitute HTML, CSS and javascript with swift. The idea get from what Apple does with iOS. If you look how is made a xib or storyboard you can see xml file. I would like to do the same thing or take the idea and applicate for the web.
To do this I need to create an SDK that is not connected to iOS but that I can use in any IDE like VSCode or similar or also in a my own IDE created by me.
An other thing that could help you to understand what I mean is Javascript. In javascript there is a command createElement that let you to create an element, adding class, attribute and, yes, style. But create UI in this way, you understand well that is very hard. So, I Would like create a framework in iOS style, to create frontend in simpler and easier way.
I would like create create this framework (if it's possible) in Xcode and I don't want have any interference by iOS.
So, have you any suggests about how to start?
thank you
XIB layout is constraint-based, which means you describe your view hierarchy and constraints, and autolayout system does the layout for you every time according to constraints you've provided. Technically, inside it converts constraints to a system of linear equations and solves it in run-time, thus calculating frames for every UIView. And .xib file is just an XML with all the views, their properties and constraints. (that's a bit simplified, but you've got the idea)
HTML layout is totally different: HTML is a declarative way to describe elements on a page, i.e you describe every element with tags, and every tag (or its parent, or CSS file) already contains all necessary information about its positioning and appearance, so browser just parses and renders a page accordingly.
Theoretically, you could've reinvented a web browser: write your HTML parser, then write UI to somehow render it, and add feature to alter HTML tags by moving the page elements with mouse. But that would've taken a lot of time and effort :)
There are many website constructors on WWW, which allow you to build simple sites only with drag-and-drop (no coding needed). Also, you can inspect element in your browser, and then change some attributes of some element right in the debug window, and see changes in realtime.
P.S Im not a web/frontend developer, but I suppose that IDE's popular among frontenders already have some features or plugins that allow them to render HTML/CSS code and see changes in realtime, just like browser's debug menu.

IOS- use setting bundle in app ?

My app need an inside setting view, and I want to create a custom view with setting bundle.It suggests two way:
use a table view and UISwitch,UISlider...
use some open source framework like InAppSettingsKit.
Which is better? Or is there a better way for this solution?
I suggest you use CoreData to saving setting value,than you can use custom componts
Settings page of the app have a lot of limitations, you cannot use custom layouts, controls, only that which are available in the Settings.bundle. So you can use only them and construct that page in "manual mode" or use that library which you have mentioned in your question. The result will be same, it is totally opinion based and which is easier for you would be the right way

How do I simply send my rails website to my designer so he can finish the design?

Basically I need to send to my designer a non-finished rails website.
My Designer doesn't have ruby / Rails environnement installed and should be able to:
modify the CSS
add some html elements
I can manually check the diff after he worked.
Is there a way that I can make an easy extraction of my app or giving an access to the deployed one with capacity to re-root the css from his files?
Based on your question, your designer, in addition to the design, also writes code: he creates css files, and edit your views files. That makes him an integrator.
As such, he should learn the basics of source control management, such as git, svn or any system you prefer (my favorite is Bazaar, for its simplicity).
It is a best practice that will allow you to save some time and avoid a lot of headaches when merging your revisions. A nice side effect: he will be able to easily roll-back to a previous working version of the code, should anything bad have happened.

rich text editor with image hosting

is there a rich text editor that has image hosting with it?
eg with stackoverflow they are using imgur to host images.
or is there another way eg using an api? im using asp.net mvc/c#
ckeditor(text)+ckfinder(image)
They are the brothers :)
ckeditor
Try this SO question: https://stackoverflow.com/questions/1801458/free-image-hosting-with-open-api
There are a few possible options, but you're looking at writing your own connector for the text editor to interface with the API - but having said that, for the most part you'd probably be writing a connector for the image uploading anyway, or at least searching around looking for one that works since most (free) RTEs don't supply file / image upload functionality built-in.
Not sure if this is entirely what you're after, but it might be worth having a look at using Yahoo's YUI editor + Flickr for hosting the images: http://developer.yahoo.com/yui/examples/editor/flickr_editor.html
jquery tinymce is a best option. Since there are many plugins for image upload that can be easily integerate into editor
Tinymce
http://tinymce.moxiecode.com/download/download.php
There would be default image upload. if u need use some third party plugins like this
refer it. http://www.danieloshea.com/products/806-image-selection-and-upload-plugin-for-tinymce
If you are looking for free stuff, use FCKEditors, it contains image uploader already plugged in.
Try this , this works for me: I used tinymce RTE roxyfileman

OpenXml SDK - Image Reuse

I am creating a Word document based on a template. The template contains a image in the header section which I would like to re-use elsewhere in the document.
The image is stored in the package -> word/media/myImage.jpeg so I need to somehow add a relationship to my each section that I wish to display the image again. I have attempted this successfuly manually, the question is how using the sdk 2.0.
Using the AddImagePart() method is useless as this just adds the image again which is silly as I only need one copy rather than several duplicates stored in the package.
Anyone shed some light?
My experience with the SDK 2.0 is primarily in SpreadsheetML, but assuming the same principles are used in WordprocessingML, you need to create a relationship to the existing ImagePart, by obtaining its ID (using the GetIdOfPart() method) and then calling the CreateRelationshipToPart() method on the part that will hold the secondary reference to it.
Best way is to open up the document in DocumentReflector.exe and have a look on the code generated
Eric has some blog posts about that http://blogs.msdn.com/ericwhite/

Resources