Author: tyrell
Date: Thu Jan 10 08:57:22 2008
New Revision: 12121
Log:
Fixing the output truncation issues on both firefox and ie. Now the stub
generator ui is fully functional.
Modified:
trunk/mashup/java/modules/www/stub_gen.jsp
Modified: trunk/mashup/java/modules/www/stub_gen.jsp
==============================================================================
--- trunk/mashup/java/modules/www/stub_gen.jsp (original)
+++ trunk/mashup/java/modules/www/stub_gen.jsp Thu Jan 10 08:57:22 2008
@@ -93,12 +93,16 @@
};
function handleSuccess(o) {
- var stubHeader = '<ns:genarateStubFromURLResponse
xmlns:ns="http://service.share.mashup.wso2.org/xsd"><ns:return>';
- var stubCode = o.responseText;
- var stubFooter = '</ns:return></ns:genarateStubFromURLResponse>';
+ var browser = WSRequest.util._getBrowser();
+
+ if (browser == "ie" || browser == "ie7") {
+ document.getElementById("js-stub").value =
+
o.responseXML.documentElement.getElementsByTagName("ns:return")[0].firstChild.nodeValue;
+ } else {
+ document.getElementById("js-stub").value =
+ o.responseXML.documentElement.firstChild.textContent;
+ }
- document.getElementById("js-stub").value =
- stubCode.substring(stubHeader.length, stubCode.length -
stubFooter.length);
}
function handleFailure(o) {
_______________________________________________
Mashup-dev mailing list
[email protected]
http://www.wso2.org/cgi-bin/mailman/listinfo/mashup-dev