Author: prasad
Date: Mon Jan 21 03:11:03 2008
New Revision: 12611
Log:
Fixed alignment issues in dialog box for both FF and IE browsers.
Modified:
trunk/mashup/java/modules/www/css/mashup-main.css
trunk/mashup/java/modules/www/js/mashup-utils.js
Modified: trunk/mashup/java/modules/www/css/mashup-main.css
==============================================================================
--- trunk/mashup/java/modules/www/css/mashup-main.css (original)
+++ trunk/mashup/java/modules/www/css/mashup-main.css Mon Jan 21 03:11:03 2008
@@ -105,6 +105,7 @@
font-size: 10pt;
color: #FFFFFF;
font-weight: bold;
+ text-align:left;
background-image: url( ../images/w_top_bg.gif );
}
@@ -121,6 +122,7 @@
border-left-color: #96A64B;
padding: 5px;
background-color: #E7F3AF;
+ text-align:left;
}
#lyrDialog {
Modified: trunk/mashup/java/modules/www/js/mashup-utils.js
==============================================================================
--- trunk/mashup/java/modules/www/js/mashup-utils.js (original)
+++ trunk/mashup/java/modules/www/js/mashup-utils.js Mon Jan 21 03:11:03 2008
@@ -146,11 +146,11 @@
WSO2.MashupUtils.showMashupSharingDialog = function (serviceName) {
//Creating the content div
- var strFrmService = '<br><table align="center" border="0">' +
- '<tr><td width="170">Destination Server
Address</td><td><input name="txtDestAddress" type="text" id="txtDestAddress"
value="https://mashups.wso2.org" size="50"/></td></tr>' +
- '<tr><td>Destination Server Username</td><td><input
name="txtDestUsername" type="text" id="txtDestUsername" size="50"/></td></tr>' +
- '<tr><td>Destination Server Password</td><td><input
name="txtDestPassword" type="password" id="txtDestPassword"
size="50"/></td></tr>' +
- '<tr><td><input type="button" id="cmdShare"
value="Share" onclick="WSO2.MashupUtils.shareService(\'' +
+ var strFrmService = '<table align="center" border="0">' +
+ '<tr><td nowrap height="25"><b>Destination Server
Address: </b></td><td><input name="txtDestAddress" type="text"
id="txtDestAddress" value="https://mashups.wso2.org" size="50"/></td></tr>' +
+ '<tr><td nowrap height="25"><b>Destination Server
Username: </b></td><td><input name="txtDestUsername" type="text"
id="txtDestUsername" size="50"/></td></tr>' +
+ '<tr><td nowrap height="25"><b>Destination Server
Password: </b></td><td><input name="txtDestPassword" type="password"
id="txtDestPassword" size="50"/></td></tr>' +
+ '<tr><td nowrap height="30" valign="bottom"><input
type="button" id="cmdShare" value="Share"
onclick="WSO2.MashupUtils.shareService(\'' +
serviceName + '\');"/></td></tr>' +
'</table>' +
'<label id="lblStatus" style="width: auto;"></label>';
@@ -158,7 +158,7 @@
YAHOO.util.Event.onContentReady('doc3', function() {
// Instantiate the Dialog
WSO2.MashupUtils.dialog("Share " + serviceName +
- " with others", strFrmService, 100, 100);
+ " with others", strFrmService, 500, 100);
});
};
@@ -235,7 +235,9 @@
parent.setAttribute("id", "MashupCreationDialog");
var lblMashupName = document.createElement("label");
- lblMashupName.appendChild(document.createTextNode("Enter the name for your
new Mashup "));
+ var txtStrong = document.createElement("strong");
+ txtStrong.appendChild(document.createTextNode("Enter the name for your new
Mashup: "));
+ lblMashupName.appendChild(txtStrong);
parent.appendChild(lblMashupName);
parent.appendChild(document.createElement("br"));
@@ -261,7 +263,7 @@
cmdSubmit.value = "Create";
cmdSubmit.setAttribute("onclick",
"WSO2.MashupUtils.makeServiceNameValidationRequest('" +
userName + "');");
- cmdSubmit.setAttribute("style", "float: right;");
+ cmdSubmit.setAttribute("style", "float: left;");
parent.appendChild(cmdSubmit);
YAHOO.util.Event.onContentReady('doc3', function() {
@@ -515,16 +517,17 @@
WSO2.MashupUtils.showMashupDownloadingDialog = function (serviceName) {
//Creating the form content
- var downloadForm = '<form method="post" id="downloadForm"
name="downloadForm" action="services/ServiceSharingHelper/downloadService">' +
- '<input size="10" id="txtServiceName"
name="serviceName" type="hidden" value="' +
- serviceName + '">' +
- '<b><label>Your Mashup Server User
Name:</label></b><br><input size="40" name="username" type="text"> <br>' +
- '<b><label>Your Mashup Server
Password:</label></b><br><input size="40" name="password" type="password">
<br>' +
- '<b><label>Your Mashup Server
Address:</label></b><br><input size="40" name="remoteServer" type="text"
value="https://localhost:7443/"> <br>' +
- '<br><br><input type="button" value="Download"
onclick="WSO2.MashupUtils.makeMashupDownloadRequest();"/>' +
+ var downloadForm = '<form method="post" style="display:inline;"
id="downloadForm" name="downloadForm"
action="services/ServiceSharingHelper/downloadService">' +
+ '<input size="10" id="txtServiceName"
name="serviceName" type="hidden" value="'+ serviceName + '">' +
+ '<table width="100%" border="0" cellspacing="0"
cellpadding="0">' +
+ '<tr><td nowrap height="25"><b>Your Mashup Server
User Name: </b></td><td><input size="40" name="username"
type="text"></td></tr>' +
+ '<tr><td nowrap height="25"><b>Your Mashup Server
Password: </b></td><td><input size="40" name="password"
type="password"></td></tr>' +
+ '<tr><td nowrap height="25"><b>Your Mashup Server
Address: </b></td><td><input size="40" name="remoteServer" type="text"
value="https://localhost:7443/"></td></tr>' +
+ '<tr><td height="30" valign="bottom"><input
type="button" value="Download"
onclick="WSO2.MashupUtils.makeMashupDownloadRequest();"/></td><td> </td></tr>'
+
+ '</table>' +
'</form>';
- WSO2.MashupUtils.dialog("Download " + serviceName, downloadForm, 100, 100);
+ WSO2.MashupUtils.dialog("Download " + serviceName, downloadForm, 500, 100);
};
@@ -674,7 +677,7 @@
'</table></td>' +
'</tr>' +
'<tr>' +
- '<td id="d_Body" height="100%" valign="top">' + strBody + '</td>' +
+ '<td id="d_Body" style="padding:15px; text-align:left;" valign="top">'
+ strBody + '</td>' +
'</tr>' +
'</table>';
_______________________________________________
Mashup-dev mailing list
[email protected]
http://www.wso2.org/cgi-bin/mailman/listinfo/mashup-dev