Discussion: Drag and drop howto?
Afficher un message
Vieux 04/04/2008, 07h51   #7
Erwin Moller
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Drag and drop howto?

while-one schreef:
> On Apr 2, 9:22 am, Erwin Moller
> <Since_humans_read_this_I_am_spammed_too_m...@spam yourself.com> wrote:
>
>> I say:
>> 1) Learn JavaScript
>> 2) Learn DOM and build some drag-and-drop testingpages (and DO test on
>> all browsers you want to support. Do not join the IE-only or FF-only clubs.)
>> 3) Ajax which will be a breeze after 1) and 2). ;-)
>> Erwin Moller

>
> Good advice. I've had nothing but bad luck with Javascript, the
> browser wars
> still make it a browser sniffing nightmare, especially for anything
> involving
> complex mouse event tracking.


NOOOO!
Please don't start your JavaScript career with browsersniffing.
It has been damned, cursed, and thrown down the toilet (and flushed)
some years ago.

Warning: If you visit comp.lang.javascript, don't even mention it,
unless you love flames.

Instead of branching your code for different browsers using sniffing, a
much better approach exists: capability testing.
An age-old example: You want to change some images on your webpage?
Check if the images exist before trying to:
if (document.images) {
// do your stuff
} else {
// forget it. Browser doesn't support images.
}

Browsersniffing is very unreliable.
Always ask for in comp.lang.javascript if you think you must use
browsersniffing. They will almost always suggest a better solution.

>
> That's why I was thinking of Flash. Yes, it's true, not everybody has
> it
> installed. But Drag-and-drop forms and page editing is inherently a
> password protected, administrative capability. So maybe it's not such
> a bad thing: to require only the admin user to install Flash.


Aha. Well, in that case Flash might be a better option for you.
If I were you I would pick the solution (JavaScript, Flash, Java applet)
that best fits your competence.

>
> Gwt does a very good browser sniffing, javascript translation for you.
> So, the more I think about it, it has to be GWT or Flash.
> Roll your own javascript is too (because of browser wars)
> exapserating.
> You've ed straighten this out, for me.


I didn't want to push you to browsersniffing.

>
> I know Java and I don't know anything about flash. So I think I see
> Tomcat and java servlets in my future.


Good choice.
Personally I quited J2EE/Tomcat a few years back in favor of PHP.
Java is the most beautifull language I ever saw, but I deliver maybe 2-3
times quicker in PHP.
So if my clients don't care how I solve thier problem, then I solve it
in PHP. ;-)

Regards and good luck,
Erwin Moller
  Réponse avec citation
 
Page generated in 0,06411 seconds with 9 queries