Welcome Guest, Not a member yet? Register   Sign In
Which Javascript library?
#11

[eluser]WolfgangA[/eluser]
I guess you mean something like autocomplete. You type in a word and get a list of words matching while you type.
If this is what you mean:
It is a simple usecase for AJAX / XHR combined with a database lookup.
You type or click, pass the content of your input field on each event via XHR to the server, execute a database query and send back the result via XHR to populate a widget like a combobox, menu or a simple div.
In terms of CI, you would call a controller/method, query a model and return the result in a view (that view can actually be very simple - even only JSON or XML).
#12

[eluser]maadmac[/eluser]
[quote author="Derek Allard" date="1197443599"]jquery is my new favourite... and I expect to work some kind of CI integration in there at some point. [/quote]

Holy schmoly! Seriously? I'm nuts for jQuery, would looooove to see it tied to CI. That's the best news I've heard all day... the jQuery "brand" isn't as slick and refined as, say, mootools (esp. its effects library), but as a DOM manipulation framework it is unmatched.

Thanks Derek!
#13

[eluser]ricklee[/eluser]
Mootools is a nice framework but don't expect much help from the community until you are already an expert on Mootools.
#14

[eluser]Vik[/eluser]
Here's another good word for jQuery. It's small, fast, and fairly easy to get up to speed on. I think it does a great job.
#15

[eluser]andreagam[/eluser]
Last but not least, in favour of JQuery a nice printed book is available at Packt (Learning Jquery).
It helped me a lot with real world examples, since I'm not a Javascript expert...
#16

[eluser]tobben[/eluser]
Ive been playing a bit with mootools before.. and jQuery now lately..

The last one seems more easy to learn.. I like the simplicity and the low "weight".

jQuery has also a big community and lots of tutorials, plugins etc to take a look on in the learning process.
#17

[eluser]Lone[/eluser]
Another vote for jQuery - taken a few days to get my head around it but now theres no more looking back Smile Plenty of plugins out there for it as well.

When looking for a js library just make sure it uses XPath as a minimum - very handy especially if you have experience with css.
#18

[eluser]kelye[/eluser]
i've started with jQuery, it has good documentation and even if you are new to JS you'll be ok

now i use MooTools which, my opinion, has the best animation effects

YUI is a bit too modular for my taste (you have to know it well to include only what you need)

if it's your first lib... go for jQuery ... alot of plugins and good documentation Smile
#19

[eluser]marlar[/eluser]
Thanks, jQuery does indeed look very good.

WolfgangA: I don't mean autocomplete. It's not going to work on text being typed, it's plain html where some words has a little popup (context) menu with alternatives to the word in question. As such it could be any popup menu combined with ajax (the highlighted word will be updated) and I have found a couple of them on dynamicdrive.com. But I would very much prefer not to mix different libraries, that is why I am searching for such a feature in, say, jQuery.
#20

[eluser]maadmac[/eluser]
[quote author="CI andrea" date="1197553625"]Last but not least, in favour of JQuery a nice printed book is available at Packt (Learning Jquery).
It helped me a lot with real world examples, since I'm not a Javascript expert...[/quote]

Another vote for the book: 9/10, superb. Extremely useful... no video tutorials for jQuery, but this is the next best thing. Karl Swedberg is also extremely active in the jQuery Google Group.




Theme © iAndrew 2016 - Forum software by © MyBB