Author: tyrell
Date: Sun Jan 20 18:38:39 2008
New Revision: 12549
Log:
Fixing MASHUP-555
Modified:
trunk/mashup/java/modules/www/js/mashup-utils.js
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 Sun Jan 20 18:38:39 2008
@@ -518,9 +518,9 @@
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><input size="40" name="username" type="text"> <br>' +
- '<b><label>Your Mashup Server Password:
</label></b><input size="40" name="password" type="password"> <br>'
+
- '<b><label>Your Mashup Server Address:
</label></b><input
size="40" name="remoteServer" type="text" value="https://localhost:7443/">
<br>' +
+ '<b><label>Your Mashup Server User
Name:</label></b><input size="40" name="username" type="text"> <br>' +
+ '<b><label>Your Mashup Server
Password:</label></b><input size="40" name="password" type="password"> <br>' +
+ '<b><label>Your Mashup Server
Address:</label></b><input size="40" name="remoteServer" type="text"
value="https://localhost:7443/"> <br>' +
'<br><br><input type="button" value="Download"
onclick="WSO2.MashupUtils.makeMashupDownloadRequest();"/>' +
'</form>';
@@ -531,12 +531,13 @@
WSO2.MashupUtils.makeMashupDownloadRequest = function() {
function handleSuccess(o) {
- WSO2.MashupUtils.dialog("Done", "The mashup was downloaded
successfully.", 100, 100);
+ WSO2.MashupUtils.dialog("Done", "The mashup was downloaded
successfully.", 400, 100);
}
function handleFailure(o) {
+ var responseText = o.responseText.split("at")[0];
WSO2.MashupUtils.dialog("Error", "Failed to download the
mashup.<br><br>" +
- o.responseText, 100, 100);
+ responseText , 400, 100);
}
var callback =
_______________________________________________
Mashup-dev mailing list
[email protected]
http://www.wso2.org/cgi-bin/mailman/listinfo/mashup-dev