Forum Moderators: open

Message Too Old, No Replies

Multiple Fields to open an appended URL in new Window

         

SteffenB

11:46 am on Jan 18, 2008 (gmt 0)

10+ Year Member



Sorry for cross posting,

my original post is here: [webmasterworld.com...]

Basically I asked for some help to create an URL with the help of 3 or 4 fields.

The 1st and the Last field normally can always have the same content.

In case I want to use this Webpage on another site I would like to be able to change the ip address behind the http:\\ into another one but use the value="10.***." option on the main site I work.

I would also like to include another few features on the same page but the submit button should always just submit the content of the subsection on the Page.

is there a way to automatically minimize the opening new window to adapt itself to the correct size of the content and remove the scrollbars and menu's?

Thanks

Steffen

Example Code (Thanks to gergoe!)

<html> 
<head>
<title>Cisco Call Manager Remote Features</title>
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
<link href="/common/default.css" rel="stylesheet" type="text/css" />
</head>
<!-- Banner for all pages -->
<TABLE border="0" cellPadding="0" cellSpacing="0" width="745">
<TR><TD><IMG src="http://img267.imageshack.us/img267/1032/banneryh9.gif" border="0" height="74" width="745" alt="Cisco CallManager 4.1 User Logon"></TD></TR>
</TABLE><base target="main">
<body>
<div id="CallManager">
<h3>Cisco Call Manager Remote User Logon</h3>
<p>Please fill out the fields and click submit to remotely logon a Phone with the User Id .</p>
<p></p>
<form action="http://10.137.17.31/emapp/EMAppServlet?" method="get">
<table>
<tr>
<td><strong>MacAdress:</strong></td>
<td><input name="device" type="text" size="14" maxlength="13" autocomplete="off" value="sep" /></td>
<td><strong>UserID:</strong></td>
<td><input name="userid" type="text" size="10" autocomplete="off" /></td>
</tr>
<tr valign="top">
<tr>
<td><strong>PIN Code:</strong></td>
<td><input name="seq" type="text" size="5" autocomplete="off" value="12345" /></td>
</tr>
<td><input type="submit" onclick="NewWindow(this.href,'main','200','200','no','center');" value="Submit" >
</tr>
</table>
<table>
<h3>Cisco Call Manager remote Phone Screenshot</h3>
<p>Please enter the Remote Phones IP Address and click submit retrieve a Screenshot.</p>
<p></p>
<form action="http://" method="get"/CGI/Screenshot>
<td><strong>IP Address:</strong></td>
<td><input name="ipaddress" type="text" size="10" autocomplete="off" /></td>
</tr>
<td><input type="submit" onclick="NewWindow(this.href,'main','200','200','no','center');" value="Submit" >
</tr>
</table>
</form>
</body>
</html>

[edited by: tedster at 7:17 pm (utc) on Jan. 18, 2008]
[edit reason] no screenshots, thanks [/edit]

eelixduppy

1:13 am on Jan 21, 2008 (gmt 0)



You can change the features of the window. Refer here: [msdn2.microsoft.com...]

As far as doing it dynamically according to content, you are going to have to know certain information about your content. You should keep the content in a div that doesn't go past certain dimensions that way you'd know exactly what size the window should be.

I would show you the example code however I do not know what your NewWindow function looks like.