Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
documentation:latest:formreplay [2014/07/09 17:15]
fxdeltombe
documentation:latest:formreplay [2017/11/20 14:43]
xguimard
Line 20: Line 20:
 ===== Configuration ===== ===== Configuration =====
  
-You should grab some informations:+You should grab information:
   * URI of the html page which contains the form   * URI of the html page which contains the form
   * URI the html form is sent to   * URI the html form is sent to
Line 32: Line 32:
   * Form page URI: /login.php   * Form page URI: /login.php
   * Target URI: /​process.php (if you let this parameter empty, target URI is supposed to be the same as form page URI)   * Target URI: /​process.php (if you let this parameter empty, target URI is supposed to be the same as form page URI)
-  * jQuery URL: <​nowiki>​http://​ajax.googleapis.com/​ajax/​libs/​jquery/​1.11.1/​jquery.min.js</​nowiki>​ (if you let this parameter empty, jQuery is supposed to be already loaded; you can also set "default" ​to point to jQuery URL of LL::NG portal)+  * jQuery URL: <​nowiki>​http://​ajax.googleapis.com/​ajax/​libs/​jquery/​1.11.1/​jquery.min.js</​nowiki>​ (if you let this parameter empty, jQuery is supposed to be already loaded; you can also set ''​default'' ​to point to jQuery URL of LL::NG portal)
   * jQuery form selector: #loginForm (if you let this parameter empty, browser will fill and submit any html form)   * jQuery form selector: #loginForm (if you let this parameter empty, browser will fill and submit any html form)
   * jQuery button selector: button.validate (if you let this parameter empty, the form will be submitted but no button will be clicked; if you set it to "​none",​ no button will be clicked and the form will be filled but not submitted)   * jQuery button selector: button.validate (if you let this parameter empty, the form will be submitted but no button will be clicked; if you set it to "​none",​ no button will be clicked and the form will be filled but not submitted)
   * Fields:   * Fields:
-    * login: $uid (uid of the user) +    * postuid: $uid 
-    * password: $_password (password of the user) +    * postmail: $mail 
-    * static: 'StaticValue'​ (a static ​value) +    * poststatic: '​static'​
-    * remember: '1' ​(checked box)+
  
-Then go in Manager, "​Virtual Hosts" » //​virtualhost//​ » "Form replay"​ and click on "New form".+Go in Manager, "​Virtual Hosts" » //​virtualhost//​ » "Form replay"​ and click on "New form replay".
  
-{{ :​documentation:​manager-formreplay-newurl.png |}}+{{ :​documentation:​manager-form-replay.png?​nolink ​|}}
  
 Fill values here: Fill values here:
Line 52: Line 51:
   * **jQuery button selector**: button.validate   * **jQuery button selector**: button.validate
  
-Then click on ''​New ​POST data''​ and add all data with their values, for example:+Then click on ''​New ​variable''​ and add all data with their values, for example:
  
-{{ :​documentation:​manager-formreplay-newdata.png |}}+{{ :​documentation:​manager-form-replay-vars.png?​nolink ​|}}
  
 <note tip>You can define more than one form replay URL per virtual host.</​note>​ <note tip>You can define more than one form replay URL per virtual host.</​note>​