Go Back   CodingForums.com > :: Client side development > JavaScript programming > JavaScript frameworks

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 10-10-2008, 11:17 AM   PM User | #1
hinch
Regular Coder

 
hinch's Avatar
 
Join Date: Sep 2005
Location: UK
Posts: 921
Thanks: 25
Thanked 79 Times in 79 Posts
hinch is on a distinguished road
Easiest way to do edit forms?

I'm fairly sure you've all seen the type before you have a form of data, you click an edit button all the fields change from just being text to being inputs, you edit the data you click save.

Fairly straight forward i'd have thought.

Now the site I'm currently working on needs lots of these edit style sources. I'm currently using just plain old prototype for the site mainly for simply loading and adding new data all my edits currently use complete form posts and load a dedicated edit page.

I've been looking around the prototype docs (as crap as they are) and I've not found an easy way of doing it, easiest I can see is have an edit button that clears the display div then loads into there a complete form into it.

I looked at adding scriptaclous (sp?) and I ran up a small test script to attempt what I was after however it just threw lots of insane js errors with the proto libs as soon as I included the scriptaclous lib before i'd even written any of my own js.

Now I know vbulletin (these very forums) uses YUI and the quick edit for posts does effectively exactly what I want so I thought maybe use YUI for the whole lot but then perhaps thats a little overkill?

Basically from those of you with experience of the various frameworks can you give me some pro's and con's from your particular experience's which are good, crap, powerfull, lacking etc.

Thanks alot
__________________
A programmer is just a tool which converts caffeine into code

My work: http://www.fcsoftware.co.uk && http://www.firstcontactcrm.com
My hobby: http://www.angel-computers.co.uk
My life: http://www.furious-angels.com
hinch is offline   Reply With Quote
Old 10-14-2008, 01:41 PM   PM User | #2
ohgod
Regular Coder

 
ohgod's Avatar
 
Join Date: Jun 2008
Location: Ohio
Posts: 579
Thanks: 6
Thanked 69 Times in 69 Posts
ohgod is on a distinguished road
http://github.com/madrobby/scriptacu...-inplaceeditor

Check that ^^^ out. It's really easy to use.


remember to make sure the versions of prototype and scrtiptaculous you're trying are compatible. if you have one or the other that's outdated it'll get all pissed off.
ohgod is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 05:03 PM.


Advertisement
Log in to turn off these ads.