src/eric7/Documentation/Source/eric7.WebBrowser.Tools.Scripts.html

branch
eric7
changeset 10479
856476537696
parent 9209
b99e7fd55fd3
equal deleted inserted replaced
10478:de9106c55c3d 10479:856476537696
5 <link rel="stylesheet" href="styles.css"> 5 <link rel="stylesheet" href="styles.css">
6 </head> 6 </head>
7 <body> 7 <body>
8 <a NAME="top" ID="top"></a> 8 <a NAME="top" ID="top"></a>
9 <h1>eric7.WebBrowser.Tools.Scripts</h1> 9 <h1>eric7.WebBrowser.Tools.Scripts</h1>
10
11 <p> 10 <p>
12 Module containing function to generate JavaScript code. 11 Module containing function to generate JavaScript code.
13 </p> 12 </p>
13
14 <h3>Global Attributes</h3> 14 <h3>Global Attributes</h3>
15
16 <table> 15 <table>
17 <tr><td>None</td></tr> 16 <tr><td>None</td></tr>
18 </table> 17 </table>
18
19 <h3>Classes</h3> 19 <h3>Classes</h3>
20
21 <table> 20 <table>
22 <tr><td>None</td></tr> 21 <tr><td>None</td></tr>
23 </table> 22 </table>
23
24 <h3>Functions</h3> 24 <h3>Functions</h3>
25
26 <table> 25 <table>
27
28 <tr> 26 <tr>
29 <td><a href="#completeFormData">completeFormData</a></td> 27 <td><a href="#completeFormData">completeFormData</a></td>
30 <td>Function generating a script to fill in form data.</td> 28 <td>Function generating a script to fill in form data.</td>
31 </tr> 29 </tr>
32 <tr> 30 <tr>
76 <tr> 74 <tr>
77 <td><a href="#setupWindowObject">setupWindowObject</a></td> 75 <td><a href="#setupWindowObject">setupWindowObject</a></td>
78 <td>Function generating a script to setup window.object add-ons.</td> 76 <td>Function generating a script to setup window.object add-ons.</td>
79 </tr> 77 </tr>
80 </table> 78 </table>
79
81 <hr /> 80 <hr />
82 <hr /> 81 <hr />
83 <a NAME="completeFormData" ID="completeFormData"></a> 82 <a NAME="completeFormData" ID="completeFormData"></a>
84 <h2>completeFormData</h2> 83 <h2>completeFormData</h2>
85 <b>completeFormData</b>(<i>data</i>) 84 <b>completeFormData</b>(<i>data</i>)
86
87 <p> 85 <p>
88 Function generating a script to fill in form data. 86 Function generating a script to fill in form data.
89 </p> 87 </p>
88
90 <dl> 89 <dl>
91 90
92 <dt><i>data</i> (QByteArray)</dt> 91 <dt><i>data</i> (QByteArray)</dt>
93 <dd> 92 <dd>
94 data to be filled into the form 93 data to be filled into the form
110 <hr /> 109 <hr />
111 <hr /> 110 <hr />
112 <a NAME="getAllImages" ID="getAllImages"></a> 111 <a NAME="getAllImages" ID="getAllImages"></a>
113 <h2>getAllImages</h2> 112 <h2>getAllImages</h2>
114 <b>getAllImages</b>(<i></i>) 113 <b>getAllImages</b>(<i></i>)
115
116 <p> 114 <p>
117 Function generating a script to extract all image tags of a web page. 115 Function generating a script to extract all image tags of a web page.
118 </p> 116 </p>
117
119 <dl> 118 <dl>
120 <dt>Return:</dt> 119 <dt>Return:</dt>
121 <dd> 120 <dd>
122 script to extract image tags 121 script to extract image tags
123 </dd> 122 </dd>
132 <hr /> 131 <hr />
133 <hr /> 132 <hr />
134 <a NAME="getAllMetaAttributes" ID="getAllMetaAttributes"></a> 133 <a NAME="getAllMetaAttributes" ID="getAllMetaAttributes"></a>
135 <h2>getAllMetaAttributes</h2> 134 <h2>getAllMetaAttributes</h2>
136 <b>getAllMetaAttributes</b>(<i></i>) 135 <b>getAllMetaAttributes</b>(<i></i>)
137
138 <p> 136 <p>
139 Function generating a script to extract all meta attributes of a web page. 137 Function generating a script to extract all meta attributes of a web page.
140 </p> 138 </p>
139
141 <dl> 140 <dl>
142 <dt>Return:</dt> 141 <dt>Return:</dt>
143 <dd> 142 <dd>
144 script to extract meta attributes 143 script to extract meta attributes
145 </dd> 144 </dd>
154 <hr /> 153 <hr />
155 <hr /> 154 <hr />
156 <a NAME="getFeedLinks" ID="getFeedLinks"></a> 155 <a NAME="getFeedLinks" ID="getFeedLinks"></a>
157 <h2>getFeedLinks</h2> 156 <h2>getFeedLinks</h2>
158 <b>getFeedLinks</b>(<i></i>) 157 <b>getFeedLinks</b>(<i></i>)
159
160 <p> 158 <p>
161 Function generating a script to extract all RSS and Atom feed links. 159 Function generating a script to extract all RSS and Atom feed links.
162 </p> 160 </p>
161
163 <dl> 162 <dl>
164 <dt>Return:</dt> 163 <dt>Return:</dt>
165 <dd> 164 <dd>
166 script to extract all RSS and Atom feed links 165 script to extract all RSS and Atom feed links
167 </dd> 166 </dd>
176 <hr /> 175 <hr />
177 <hr /> 176 <hr />
178 <a NAME="getFormData" ID="getFormData"></a> 177 <a NAME="getFormData" ID="getFormData"></a>
179 <h2>getFormData</h2> 178 <h2>getFormData</h2>
180 <b>getFormData</b>(<i>pos</i>) 179 <b>getFormData</b>(<i>pos</i>)
181
182 <p> 180 <p>
183 Function generating a script to extract data for a form element. 181 Function generating a script to extract data for a form element.
184 </p> 182 </p>
183
185 <dl> 184 <dl>
186 185
187 <dt><i>pos</i> (QPoint)</dt> 186 <dt><i>pos</i> (QPoint)</dt>
188 <dd> 187 <dd>
189 position to extract data at 188 position to extract data at
205 <hr /> 204 <hr />
206 <hr /> 205 <hr />
207 <a NAME="getOpenSearchLinks" ID="getOpenSearchLinks"></a> 206 <a NAME="getOpenSearchLinks" ID="getOpenSearchLinks"></a>
208 <h2>getOpenSearchLinks</h2> 207 <h2>getOpenSearchLinks</h2>
209 <b>getOpenSearchLinks</b>(<i></i>) 208 <b>getOpenSearchLinks</b>(<i></i>)
210
211 <p> 209 <p>
212 Function generating a script to extract all open search links. 210 Function generating a script to extract all open search links.
213 </p> 211 </p>
212
214 <dl> 213 <dl>
215 <dt>Return:</dt> 214 <dt>Return:</dt>
216 <dd> 215 <dd>
217 script to extract all open serach links 216 script to extract all open serach links
218 </dd> 217 </dd>
227 <hr /> 226 <hr />
228 <hr /> 227 <hr />
229 <a NAME="scrollToAnchor" ID="scrollToAnchor"></a> 228 <a NAME="scrollToAnchor" ID="scrollToAnchor"></a>
230 <h2>scrollToAnchor</h2> 229 <h2>scrollToAnchor</h2>
231 <b>scrollToAnchor</b>(<i>anchor</i>) 230 <b>scrollToAnchor</b>(<i>anchor</i>)
232
233 <p> 231 <p>
234 Function generating script to scroll to a given anchor. 232 Function generating script to scroll to a given anchor.
235 </p> 233 </p>
234
236 <dl> 235 <dl>
237 236
238 <dt><i>anchor</i> (str)</dt> 237 <dt><i>anchor</i> (str)</dt>
239 <dd> 238 <dd>
240 name of the anchor to scroll to 239 name of the anchor to scroll to
256 <hr /> 255 <hr />
257 <hr /> 256 <hr />
258 <a NAME="sendPostData" ID="sendPostData"></a> 257 <a NAME="sendPostData" ID="sendPostData"></a>
259 <h2>sendPostData</h2> 258 <h2>sendPostData</h2>
260 <b>sendPostData</b>(<i>url, data</i>) 259 <b>sendPostData</b>(<i>url, data</i>)
261
262 <p> 260 <p>
263 Function generating a script to send Post data. 261 Function generating a script to send Post data.
264 </p> 262 </p>
263
265 <dl> 264 <dl>
266 265
267 <dt><i>url</i> (QUrl)</dt> 266 <dt><i>url</i> (QUrl)</dt>
268 <dd> 267 <dd>
269 URL to send the data to 268 URL to send the data to
289 <hr /> 288 <hr />
290 <hr /> 289 <hr />
291 <a NAME="setCss" ID="setCss"></a> 290 <a NAME="setCss" ID="setCss"></a>
292 <h2>setCss</h2> 291 <h2>setCss</h2>
293 <b>setCss</b>(<i>css</i>) 292 <b>setCss</b>(<i>css</i>)
294
295 <p> 293 <p>
296 Function generating a script to set a given CSS style sheet. 294 Function generating a script to set a given CSS style sheet.
297 </p> 295 </p>
296
298 <dl> 297 <dl>
299 298
300 <dt><i>css</i> (str)</dt> 299 <dt><i>css</i> (str)</dt>
301 <dd> 300 <dd>
302 style sheet 301 style sheet
318 <hr /> 317 <hr />
319 <hr /> 318 <hr />
320 <a NAME="setStyleSheet" ID="setStyleSheet"></a> 319 <a NAME="setStyleSheet" ID="setStyleSheet"></a>
321 <h2>setStyleSheet</h2> 320 <h2>setStyleSheet</h2>
322 <b>setStyleSheet</b>(<i>css</i>) 321 <b>setStyleSheet</b>(<i>css</i>)
323
324 <p> 322 <p>
325 Function generating a script to set a user style sheet. 323 Function generating a script to set a user style sheet.
326 </p> 324 </p>
325
327 <dl> 326 <dl>
328 327
329 <dt><i>css</i> (str)</dt> 328 <dt><i>css</i> (str)</dt>
330 <dd> 329 <dd>
331 style sheet to be applied 330 style sheet to be applied
347 <hr /> 346 <hr />
348 <hr /> 347 <hr />
349 <a NAME="setupFormObserver" ID="setupFormObserver"></a> 348 <a NAME="setupFormObserver" ID="setupFormObserver"></a>
350 <h2>setupFormObserver</h2> 349 <h2>setupFormObserver</h2>
351 <b>setupFormObserver</b>(<i></i>) 350 <b>setupFormObserver</b>(<i></i>)
352
353 <p> 351 <p>
354 Function generating a script to monitor a web form for user entries. 352 Function generating a script to monitor a web form for user entries.
355 </p> 353 </p>
354
356 <dl> 355 <dl>
357 <dt>Return:</dt> 356 <dt>Return:</dt>
358 <dd> 357 <dd>
359 script to monitor a web page 358 script to monitor a web page
360 </dd> 359 </dd>
369 <hr /> 368 <hr />
370 <hr /> 369 <hr />
371 <a NAME="setupWebChannel" ID="setupWebChannel"></a> 370 <a NAME="setupWebChannel" ID="setupWebChannel"></a>
372 <h2>setupWebChannel</h2> 371 <h2>setupWebChannel</h2>
373 <b>setupWebChannel</b>(<i>worldId</i>) 372 <b>setupWebChannel</b>(<i>worldId</i>)
374
375 <p> 373 <p>
376 Function generating a script to setup the web channel. 374 Function generating a script to setup the web channel.
377 </p> 375 </p>
376
378 <dl> 377 <dl>
379 378
380 <dt><i>worldId</i> (int)</dt> 379 <dt><i>worldId</i> (int)</dt>
381 <dd> 380 <dd>
382 world ID for which to setup the channel 381 world ID for which to setup the channel
398 <hr /> 397 <hr />
399 <hr /> 398 <hr />
400 <a NAME="setupWindowObject" ID="setupWindowObject"></a> 399 <a NAME="setupWindowObject" ID="setupWindowObject"></a>
401 <h2>setupWindowObject</h2> 400 <h2>setupWindowObject</h2>
402 <b>setupWindowObject</b>(<i></i>) 401 <b>setupWindowObject</b>(<i></i>)
403
404 <p> 402 <p>
405 Function generating a script to setup window.object add-ons. 403 Function generating a script to setup window.object add-ons.
406 </p> 404 </p>
405
407 <dl> 406 <dl>
408 <dt>Return:</dt> 407 <dt>Return:</dt>
409 <dd> 408 <dd>
410 generated script 409 generated script
411 </dd> 410 </dd>

eric ide

mercurial