Best jQuery TextEditor - javascript

Anyone know of a good Rich Text Editor preferably in jQuery, that has a good interface, is customize-able and easy to integrate in forms where submitting data is crutial?
I am making a website where people would need to send formatted texts..
I tried TinyMCE and i found it too much for what i wanted, then tried NicEdit, found some bugs in it, corrected some but it is a pain to get the typed HTML when i need to submit the form so i am looking for any alternative you might want to offer.
Thanks in advance

Try ckeditor. You can configure exactly which buttons you expose to your users, and it's possible even to have different configuration for differents users. I'm using it and have not found any important bug.

Simple but rich enough http://akzhan.github.com/jwysiwyg/

Related

How can you save an edited page using PHP?

Say I have an html page with several contenteditable attributes set to "true". I like to save the new information, like in WordPress. I prefer to use just PHP for this, but a little help from JavaScript is welcome.
I have searched, but I could not find exactly what I was looking for. How can I transmit the edited information to a PHP script, like submitting a form? Is there a $_GET/$_POST variable, can I use JavaScript to realtime update the information by ID's to inputs, or am I completely searching in the wrong direction?
As I understood your question this might be the one(click here) that you are looking for.You have demos and codes available here. Make sure you searched properly before asking such questions.

Simple Client Side Validations in Rails

Basically, I have 10 validations on a form in my Rails app. If there are errors, the page refreshes & shows the errors in a box.
How can I show the error box without refreshing? I would like the box to display after clicking submit.
I saw a railscasts episode on client side validations using a gem but it seemed a bit too much & complicated for what I'm going after, plus I couldn't get it working. Looking through some of SO's similar questions, I know I'll have to use jquery/java but I'm still sort of lost. Could someone point me in the right direction
Thank you in advance.
You may want to consider either rolling your own client-side solution, or using a Javascript/jQuery library.
Personally, I've had a lot of luck with jQuery.validationEngine. It enables configurable and extensible form validations which work well out-of-the-box:
And while I haven't tried it myself, jquery-validation seem to be another popular client side validation library.
There are surely many other libraries out there for doing what you're looking to accomplish, but I'm fairly confident there's a good reason why these two are among the most popular solution. Additionally, both are well-documented and lay out concise instructions for simple implementations on their respective GitHub pages.
You can try https://github.com/jbmyid/rails_jq_validations
This is too simple to use.
You can Check Here.. Very good documentation..
https://sunilsharma3639.wordpress.com/2013/11/11/jquery-ketchup-plugin-for-client-side-form-validation/

Fiximate replicate?

I want to create something similar to fiximate but the thing I want to do different is filter by venue instead of FIX version.
Having downloaded the FIXImate for offline use to get an idea of the design. It seems as though the developers used a tool which parses the FIX XML and spits out html pages based on field tag and body.
Does anyone have access to such a tool? Is there another way to design something similar which is less complicated?
Thanks
What you are asking about is not trivial. It is telling that there is a commercial product for this: https://fixspec.com/

How can you use Python to fill out HTML forms that also have Javascript?

I am making a python program that automatically enters information into a form on a website. I looked at a module called mechanize at first but then I realized that it didn't support javascript. Is there any way to take a piece of information and insert it into a "form" on a website that uses javascript?
The website I am using is www.locationary.com.
If you login and then go to a place/business page like this,
http://www.locationary.com/place/en/US/California/Los_Angeles/Z_Pizza-p1001157911.jsp
then you will see a bunch of spots that need to be filled in. I looked at the page source and this "form" uses javascript. I just need a way to fill in those blanks now. Like I said, I tried mechanize and it didn't work but I also googled it and got nothing.
The "form" uses "onclick"
If you could offer any advice, I would really appreciate it.
Thanks.
I think probably the best way to do this is to use a framework that can operate through a browser. There are several options, but the most pythonic is windmill http://www.getwindmill.com/
I've found it useful on a number of projects.

Is it appropriate to dispense with <form> tags when building an ajax application?

I'm working on an ajax application that makes extensive use of jQuery. I'm not worried about whether or not the application degrades gracefully.
So far I have been using Malsup's excellent jQuery form plugin to create forms that submit ajax requests. (For example, to submit updated record information.)
However I am considering dispensing with form tags altogether, and instead manually constructing $.post() statements when needed.
I'm wondering: What are peoples' thoughts on the best way to submit a large amount of information to the server - considering graceful degradation is not a requirement. Are there perils with just using $.post()?
Thanks in advance
Nope, not at all. That's all the plugin is doing anyway, under the hood.
The form tag does at least provide you with a nice structural grouping of your form tags, so that you can query for them more easily, though.
You've said it yourself - the peril is that it won't degrade gracefull!
Have jQuery add an extra field called UsingjQuery, then output your results based on whether this field is set or not.
This way users with javascript turned off (mobile clients, etc) will still be able to submit.
edit: Saw you mentioned 'degrades gracefully' but somehow didn't see it said 'not worried about' first!
Having a form tag does allow one javascript trick that jQuery doesn't support without: $('form').reset() ...
I stopped using FORM tags some time ago, but I also have a set of captured users that I know exactly what platform they are using.
I agree with David Pfeffer, however, I would also make the point that on occasion, form tags can get in your way. I've specifically had problems where I wanted multiple forms inside of a table, but that caused really ugly problems with positioning. So, I wound up dropping just the input elements in, copying them into a form that was elsewhere on the page, then submitting that form. It was a bit of a pain in the butt.
If you can do away with forms, and aren't worried about degradation, then I would highly consider it.

Categories