Interface view modes
HTTP Commander can work in a stand-alone window and inside iframe.
You can also use iframe view - it allows you to place the interface into any existing page.
Your site can be built on ASP.NET, PHP platform or contain only static content.
HTTP Commander may be installed on the same server or on another one.
With just one line of code, you can place HTTP Commander interface inside a region on any page.
See how it looks on our site in the image below or
at our website or
even at your local PC!
How to use the iframe view mode:
- Install application and check if it works in stand-alone browser window.
- Set "IsEmbeddedtoIFRAME" parameter to the "true" at Application settings.
-
Place the code on any page on your site:
Replace "https://demo.element-it.com/iframe/Default.aspx"
with the path to the default page of your HTTP Commander instance.
-
Note 1! Minimum IFRAME dimensions: width - 500px, height - 300px.
-
Note 2! You can pass "IsEmbeddedtoIFRAME"
parameter also in the URL like
"https://demo.element-it.com/iframe/Default.aspx?IsEmbeddedtoIFRAME=true"
-
If you want to use iframe with HTTP Commander on page with other domain:
-
Place on your page the following code:
Note! Placement of the elements script, div
with the button and iframe
in the DIV container with style="position:relative;" is mandatory.
For iframe you can set style parameters and others (the sizes, etc.).
Other elements NOT change!
-
Copy maximize.png
and
restore.png images
in the folder near your page on which iframe will be placed.
Also you can use other icons, but consider, their size shall be 15x15.
-
You can look at use example having followed the
link.
HTML code and icons of buttons you can also find in
archive.
-
You can also place HTTP Commander interface in stand-alone browser window inside DIV tag.
- Open in notepad on editing page Default.aspx
-
in the Default.aspx file find a line
<!-- Opening embedded tag DIV -->
and make sure there is a line below:
<div id="httpCommander" style="position:relative !important;width:800px;height:600px;left:50px;top:50px;">
Also find line
<!-- Closing embedded tag DIV -->
and make sure there is a line below with closing DIV tag:
</div>
-
You also can change attributes of style at the DIV element: width, height, etc.
Note! It is recommended not to change attribute of position style.
-
Save and close.
Screenshot