... |
... |
@@ -205,10 +205,34 @@ |
205 |
205 |
<h2 id="H4.Formulareinbinden:" class="wikigeneratedid"><span>4. Formular einbinden:</span></h2> |
206 |
206 |
|
207 |
207 |
<div class="box"><div class="code"><span style="color: #008000; ">window</span>.renderForm <span style="color: #666666; ">=</span> <span style="font-weight: bold; color: #008000; ">function</span>(formId){<br> <span style="font-weight: bold; color: #008000; ">var</span> myBase <span style="color: #666666; ">=</span> |
208 |
|
- <span style="color: #BA2121; ">'https://help6.formcycle.eu/xwiki/bin/edit/Examples/IncludeFormViaExternalContext/'</span>;<br> <span style="font-weight: bold; color: #008000; ">var</span> fcBase <span style="color: #666666; ">=</span> <span style="color: #BA2121; ">'https://pro.formcloud.de/formcycle'</span>;<br> <span style="font-weight: bold; color: #008000; ">var</span> myFormContainer <span style="color: #666666; ">=</span> $(<span style="color: #BA2121; ">'#content'</span>);<br> <br> <span style="font-weight: bold; color: #008000; ">var</span> form <span style="color: #666666; ">=</span> $.ajax({<br> type<span style="color: #666666; ">:</span> <span style="color: #BA2121; ">"GET"</span>,<br> url<span style="color: #666666; ">:</span> fcBase <span style="color: #666666; ">+</span> <span style="color: #BA2121; ">'/form/provide/'</span> <span style="color: #666666; ">+</span> formId,<br> data <span style="color: #666666; ">:</span>{<br> <span style="font-weight: italic; color: #408080; ">//Render-Parameter<br></span> <span style="color: #BA2121; ">"xfc-rp-inline"</span><span style="color: #666666; ">:</span> <span style="font-weight: bold; color: #008000; ">true</span>, <span style="font-weight: italic; color: #408080; ">//Verwendete resourcen auflösen <br></span> <span style="color: #BA2121; ">"xfc-rp-form-only"</span><span style="color: #666666; ">:</span> <span style="font-weight: bold; color: #008000; ">true</span>, <span style="font-weight: italic; color: #408080; ">//Formular ohne HTML, BODY etc.<br></span> <span style="color: #BA2121; ">"xfc-rp-usejq"</span> <span style="color: #666666; ">:</span><span style="font-weight: bold; color: #008000; ">false</span>, <span style="font-weight: italic; color: #408080; ">//jQuery einbinden<br></span> <span style="color: #BA2121; ">"xfc-rp-keepalive"</span> |
209 |
|
- <span style="color: #666666; ">:</span><span style="font-weight: bold; color: #008000; ">false</span>, <span style="font-weight: italic; color: #408080; ">//Ping zur Sessionverlängerung <br></span> <span style="color: #BA2121; ">"xfc-rp-usecss"</span> <span style="color: #666666; ">:</span><span style="font-weight: bold; color: #008000; ">true</span>, <span style="font-weight: italic; color: #408080; ">//Use Formcycle CSS files<br></span> <span style="color: #BA2121; ">"xfc-rp-useui"</span> <span style="color: #666666; ">:</span><span style="font-weight: bold; color: #008000; ">true</span>, |
210 |
|
- <span style="font-weight: italic; color: #408080; ">//jQueryUI einbinden<br></span> <span style="font-weight: italic; color: #408080; ">//Prozess-Parameter<br></span> <span style="color: #BA2121; ">"xfc-pp-external"</span><span style="color: #666666; ">:</span> |
211 |
|
- <span style="font-weight: bold; color: #008000; ">true</span>, <span style="font-weight: italic; color: #408080; ">//Externer Formularrequest<br></span> <span style="color: #BA2121; ">"xfc-pp-base-url"</span> |
|
208 |
+ <span style="color: #BA2121; ">'https://help6.formcycle.eu/xwiki/bin/edit/Examples/IncludeFormViaExternalContext/'</span>;<br> |
|
209 |
+ <span style="font-weight: bold; color: #008000; ">var</span> fcBase |
|
210 |
+ <span style="color: #666666; ">=</span> <span style="color: #BA2121; ">'https://pro.formcloud.de/formcycle'</span>;<br> |
|
211 |
+ <span style="font-weight: bold; color: #008000; ">var</span> myFormContainer <span style="color: #666666; ">=</span> $(<span style="color: #BA2121; ">'#content'</span>);<br> <br> |
|
212 |
+ <span style="font-weight: bold; color: #008000; ">var</span> form <span style="color: #666666; ">=</span> $.ajax({<br> type<span style="color: #666666; ">:</span> |
|
213 |
+ <span style="color: #BA2121; ">"GET"</span>,<br> url<span style="color: #666666; ">:</span> fcBase |
|
214 |
+ <span style="color: #666666; ">+</span> <span style="color: #BA2121; ">'/form/provide/'</span> <span style="color: #666666; ">+</span> formId,<br> data |
|
215 |
+ <span style="color: #666666; ">:</span>{<br> <span style="font-weight: italic; color: #408080; ">//Render-Parameter<br></span> |
|
216 |
+ <span style="color: #BA2121; ">"xfc-rp-inline"</span><span style="color: #666666; ">:</span> |
|
217 |
+ <span style="font-weight: bold; color: #008000; ">true</span>, |
|
218 |
+ <span style="font-weight: italic; color: #408080; ">//Verwendete resourcen auflösen <br></span> |
|
219 |
+ <span style="color: #BA2121; ">"xfc-rp-form-only"</span><span style="color: #666666; ">:</span> |
|
220 |
+ <span style="font-weight: bold; color: #008000; ">true</span>, |
|
221 |
+ <span style="font-weight: italic; color: #408080; ">//Formular ohne HTML, BODY etc.<br></span> <span style="color: #BA2121; ">"xfc-rp-usejq"</span> |
|
222 |
+ <span style="color: #666666; ">:</span><span style="font-weight: bold; color: #008000; ">false</span>, |
|
223 |
+ <span style="font-weight: italic; color: #408080; ">//jQuery einbinden<br></span> |
|
224 |
+ <span style="color: #BA2121; ">"xfc-rp-keepalive"</span> |
|
225 |
+ <span style="color: #666666; ">:</span><span style="font-weight: bold; color: #008000; ">false</span>, |
|
226 |
+ <span style="font-weight: italic; color: #408080; ">//Ping zur Sessionverlängerung <br></span> <span style="color: #BA2121; ">"xfc-rp-usecss"</span> |
|
227 |
+ <span style="color: #666666; ">:</span><span style="font-weight: bold; color: #008000; ">true</span>, |
|
228 |
+ <span style="font-weight: italic; color: #408080; ">//Use Formcycle CSS files<br></span> |
|
229 |
+ <span style="color: #BA2121; ">"xfc-rp-useui"</span> |
|
230 |
+ <span style="color: #666666; ">:</span><span style="font-weight: bold; color: #008000; ">true</span>, |
|
231 |
+ <span style="font-weight: italic; color: #408080; ">//jQueryUI einbinden<br></span> |
|
232 |
+ <span style="font-weight: italic; color: #408080; ">//Prozess-Parameter<br></span> |
|
233 |
+ <span style="color: #BA2121; ">"xfc-pp-external"</span><span style="color: #666666; ">:</span> |
|
234 |
+ <span style="font-weight: bold; color: #008000; ">true</span>, |
|
235 |
+ <span style="font-weight: italic; color: #408080; ">//Externer Formularrequest<br></span> <span style="color: #BA2121; ">"xfc-pp-base-url"</span> |
212 |
212 |
<span style="color: #666666; ">:</span>fcBase, <span style="font-weight: italic; color: #408080; ">//URL zum FormCycle<br></span> |
213 |
213 |
<span style="color: #BA2121; ">"xfc-pp-success-url"</span><span style="color: #666666; ">:</span> myBase <span style="color: #666666; ">+</span> |
214 |
214 |
<span style="color: #BA2121; ">"/anfrage-versendet.html"</span>, <span style="font-weight: italic; color: #408080; ">//CMS Seite bei erfolg<br></span> |
... |
... |
@@ -215,8 +215,10 @@ |
215 |
215 |
<span style="color: #BA2121; ">"xfc-pp-error-url"</span><span style="color: #666666; ">:</span> myBase <span style="color: #666666; ">+</span> <span style="color: #BA2121; ">"/anfrage-fehler.html"</span> <span style="font-weight: italic; color: #408080; ">//CMS Seite bei Fehler <br></span> },<br> cache<span style="color: #666666; ">:</span> |
216 |
216 |
<span style="font-weight: bold; color: #008000; ">false</span>,<br> async |
217 |
217 |
<span style="color: #666666; ">:</span> |
218 |
|
- <span style="font-weight: bold; color: #008000; ">false</span>,<br> success<span style="color: #666666; ">:</span> <span style="font-weight: bold; color: #008000; ">function</span>(html){ <br> myFormContainer.html(html);<br> },<br> crossDomain |
219 |
|
- <span style="color: #666666; ">:</span> <span style="font-weight: bold; color: #008000; ">true</span> <br> });<br>}</div></div> |
|
242 |
+ <span style="font-weight: bold; color: #008000; ">false</span>,<br> success<span style="color: #666666; ">:</span> |
|
243 |
+ <span style="font-weight: bold; color: #008000; ">function</span>(html){ <br> myFormContainer.html(html);<br> },<br> crossDomain |
|
244 |
+ <span style="color: #666666; ">:</span> <span style="font-weight: bold; color: #008000; ">true</span> |
|
245 |
+ <br> });<br>}</div></div> |
220 |
220 |
<div class="wikimodel-emptyline"></div> |
221 |
221 |
<h2 id="H5.ErgebenisFormular:" class="wikigeneratedid"><span>5. Ergebnis Formular:</span></h2> |
222 |
222 |
<div class="hljs" id="content"> |