Difference between revisions of "SAVEITEM"

From iMacros
Jump to: navigation, search
 
Line 1: Line 1:
 +
SAVEITEM has two uses:
 +
 +
1. As regular command:
 +
 
SAVEITEM saves the document that is currently displayed in the web browser, for example a PDF file.
 
SAVEITEM saves the document that is currently displayed in the web browser, for example a PDF file.
 +
 +
2. When used with a TAG command, it saves the element that is marked by the TAG command. It copies the element from the browser cache. So the element (typically a picture) is not loaded again.
  
 
=== Syntax ===  
 
=== Syntax ===  
 +
 +
1. As regular command:
  
 
  SAVEITEM
 
  SAVEITEM
 +
 +
2. Used for elements
 +
 +
  TAG POS=1 TYPE=INPUT:IMAGE FORM=NAME:frmImpact2 ATTR=ID:mapimg CONTENT=EVENT:SAVEITEM
 +
 +
  TAG POS=1 TYPE=IMG ATTR=HREF:http://*.jpg CONTENT=EVENT:SAVEITEM
  
 
=== Parameters ===  
 
=== Parameters ===  
Line 10: Line 24:
  
 
=== Examples ===  
 
=== Examples ===  
 
+
1. As regular command: [[Demo-SavePDF]]
[[Demo-SavePDF]]
+
2. Used with (picture) elements: [[Demo-ImageDownload]]
  
 
=== See Also ===
 
=== See Also ===

Revision as of 01:42, 10 November 2007

SAVEITEM has two uses:

1. As regular command:

SAVEITEM saves the document that is currently displayed in the web browser, for example a PDF file.

2. When used with a TAG command, it saves the element that is marked by the TAG command. It copies the element from the browser cache. So the element (typically a picture) is not loaded again.

Syntax

1. As regular command:

SAVEITEM

2. Used for elements

 TAG POS=1 TYPE=INPUT:IMAGE FORM=NAME:frmImpact2 ATTR=ID:mapimg CONTENT=EVENT:SAVEITEM 
 TAG POS=1 TYPE=IMG ATTR=HREF:http://*.jpg CONTENT=EVENT:SAVEITEM

Parameters

None

Examples

1. As regular command: Demo-SavePDF 2. Used with (picture) elements: Demo-ImageDownload

See Also