jQuery
New Wave Javascript


discuss » JQuery in my First Commercial App.


Posted: Wed Mar 15 06:34:32 EST 2006
From: Mark Panay <markpanay at gmail.com >

Hi John,

Thanks for your feedback. Very useful. I'll have a look at
implementing your suggestions.

I really want to overhaul the "add feed" page as well, to make it more
intuitive, but every time I look at the page I realise that to be
honest my knowledge of JS and AJAX is not currently what it should
be... If you have any suggestions here, that would be good too.

Any talented AJAX types that think they could help, let me know... :)

I'll keep you posted.

Mark.


On 14/03/06, John Resig <jeresig at gmail.com> wrote:
> Very neat - I like! ... and I have plenty of suggestions :-)
>
> The hide/show effect isn't noticable enough, imo. I think there's some
> ways it could make it extra cool.
>
> - First, I recommend using slideDown/slideUp instead of hide/show, it
> ends up being more graceful that way.
> - Second, the flash of unloaded content, which then fades in, hurts
> the eyes. One way that I've found to smooth it is by creating a temp
> div, so that it looks like this:
> <div id="tmp" style="display:none;"></div>
> <div id="main">All your 'old' content is in here...</div>
> Then, you do this AHAH:
> $("#tmp").load("foo.html",function(){
> $("#main").slideUp("slow");
> $(this).slideDown("slow",function(){
> $("#main").remove();
> $(this).set("id","main").prepend("<div id='tmp' style='display:
> none;'></div>");
> });
> });
> This way you're constantly loading new content gracefully, then
> replacing the old content when the animation is done - much smoother
> this way.
> - Also, having some sort of spinner next to the links would be really
> nice, I use this generic one for my projects:
> http://ideashrub.com/images/indicator.gif
> - Finally, I think having the music category links positioned into a
> side column next to the AHAH-loaded content would make it much more
> obvious what's going on, imo.
>
> Let me know if this makes sense at all. Let us know if you make any
> more big changes/additions - this is good stuff!
>
> --John
>
> On 3/14/06, Mark Panay <markpanay at gmail.com> wrote:
> > Hi All,
> >
> > This is basically a big thank you (again) to John for the wonderful JQuery.
> >
> > I've just implemented some JQuery AJAX into my start-up's website,
> > tunecast.co.uk. The inclusion is nothing major from a technical point
> > of view, but replaces, the "behaviour, prototype and AHAH" scripts
> > there before, thus saving me about 150k... :) and making the code
> > cleaner and easier to modify. Only took 30 mins as well...
> >
> > www.tunecast.co.uk/music.aspx
> >
> > All feedback welcome (good or bad!!!)
> >
> > best
> >
> > Mark.
> >
> > --
> > Mark Panay
> >
> > www.markpanay.com
> > Jargon Free Web Development
> >
> > _______________________________________________
> > jQuery mailing list
> > discuss at jquery.com
> > http://jquery.com/discuss/
> >
>
>
> --
> John Resig
> http://ejohn.org/
> jeresig at gmail.com
>
> _______________________________________________
> jQuery mailing list
> discuss at jquery.com
> http://jquery.com/discuss/
>


--
Mark Panay

www.markpanay.com
Jargon Free Web Development