Continue improving `ajax-and-forms`
Personne n'a encore pris cette issue.
Évaluation
- Difficulté
- 5/5
- Temps estimé
- Plus d'une semaine
- Accessibilité débutants
- 25/100
- Type d'issue
- Documentation
- Clarté
- Plutôt claire
- Activité
- À l'abandon
- Stack technique
- javascript, jquery
- Domaine
- documentation
Piste de recherche
Commencez par l’article ajax-and-forms, puis examinez la discussion dans #38 et le déplacement de prefilters demandé dans #62. Comparez le Form Plugin cité, l’exemple de serialize-to-object, les ressources sur la validation et l’exemple de deferreds avant de planifier les modifications de l’article. Le travail est terminé lorsque les sujets demandés sur les formulaires et la validation sont couverts, que le ton est ciblé et que la section prefilters a été déplacée.
Rédigé par le modèle d'indexation à partir du texte de l'issue.
Description
@connormontgomery's improvements have been really useful, but this can probably use even more fleshing out. This could include some of the following improvements:
- "Ajaxifying" existing forms
- Form Plugin - to follow up the discussion in #38, I actually think it's worthwhile to show how the plugin can be useful in doing the above ("ajaxification") and how doing so provides a considerably more familiar flow to form authoring than just serializing data and shoving it off to a url you type into your JS: (eg.
$.post("form_process.php", $form.serialize()) - Serialzing a form to an object (https://raw.github.com/cowboy/jquery-misc/master/jquery.ba-serializeobject.js, explain why this is left out of core (http://bugs.jquery.com/ticket/11002))
- Augmenting a form's data during a submit handler (for both traditional and AJAX submissions)
- Client side validation (all these changes might merit moving "validation" into its own article)
- discuss how to leverage native techniques before just defaulting to using JS.
- using a validation framework (jQuery Validation or a hand-rolled one) (in order to keep yourself from having the same
phoneNumberRegexor whatever similar actual validation logic dupliated throughout your app) - use of native validation APIs ?
- collecting and displaying client side errors (good vs. bad UX)
- Using deferreds to incorporate AJAX-validation of form data on the client side with client-side only checks
- Do some ajax validation and then do a normal form submit! (expand on http://jsfiddle.net/ajpiano/5tCp3/6/)
Stylistically, we should also move away from overly effusive phraseology ("extremely easy") and do our best to keep the tone focused on how it works, not how you'll feel as a user.
In addition, we should move the section on prefilters as per #62.
- Langage dominant
- JavaScript
- Étoiles
- 914
- Forks
- 472
- Métriques de merge des PR
- Aucune PR mergée en 30 j
Préparer son environnement
- Aucun Dockerfile ni fichier Docker Compose
- Aucun modèle de pull request
- Lire le guide de contribution
Par où commencer
- Lisez l'issue en entier, puis le guide de contribution du projet.
- Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
- Forkez le dépôt et travaillez sur une branche.
- Ouvrez une pull request qui référence le numéro de l'issue.
Autres issues de jquery/learn.jquery.com
-
Difficulté 2/5 1-3 heures Accessibilité débutants 76/100
jquery/learn.jquery.com#828 ·
-
Word(s) missing in article?Peut-être à nouveau libre Une pull request pour cette issue a été fermée sans être fusionnée. OuverteChapter: events
Difficulté 1/5 Moins d'une heure Accessibilité débutants 70/100
jquery/learn.jquery.com#751 ·
-
Difficulté 3/5 1-2 jours Accessibilité débutants 25/100
jquery/learn.jquery.com#814 · 1 commentaire ·
-
Chapter: jquery-core help wanted
Difficulté 2/5 1-3 heures Accessibilité débutants 45/100
jquery/learn.jquery.com#799 ·
-
Chapter: plugins
Difficulté 2/5 1-3 heures Accessibilité débutants 35/100
jquery/learn.jquery.com#796 ·
Toutes les issues de jquery/learn.jquery.com
Issues similaires
-
Difficulté 1/5 Moins d'une heure Accessibilité débutants 72/100
TMHSDigital/Free-Game-Dev-Assets#301 ·
Les mainteneurs répondent en général sous 1 jour
-
Difficulté 2/5 1-3 heures Accessibilité débutants 79/100
-
📦 expo-router Android contributor: external needs review sdk-58 severity: medium
Difficulté 2/5 1-3 heures Accessibilité débutants 78/100
expo/expo#53436 · 1 commentaire ·
Les mainteneurs répondent en général sous 1 jour
-
enhancement
Difficulté 1/5 Moins d'une heure Accessibilité débutants 78/100
angrymrt/wiskunde-fit#117 ·
Les mainteneurs répondent en général sous 1 jour
-
Poll votes are not receivedOuverte
Difficulté 2/5 1-3 heures Accessibilité débutants 78/100
raulpetruta/ha-wa-bridge#62 ·