Hello, we have something to put the debug events in another window (it continues appearing in the main window). We have an old version of xsltforms, I hope it hasn't changed very much to be useful...
We changed DebugConsole in xsltforms.js:
var DebugConsole = {
element_ : null,
isInit_ : false,
time_ : 0,
consoleWindow : null,
init_ : function() {
this.element_ = $("console");
this.isInit_ = true;
this.time_ = new Date().getTime();
if (DebugMode)
this.consoleWindow =
window.open("","CONSOLE","toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,width=600,height=300,innerWidth=600,innerHeight=300");
},
write : function(text) {
if (this.isOpen()) {
var time = new Date().getTime();
if (DebugMode && (this.consoleWindow != null) &&
(this.consoleWindow.document != null))
this.consoleWindow.document.writeln(time - this.time_ + "
-> " + text.replace("<", "<") + "<br/>");
this.element_.appendChild(document.createTextNode(time -
this.time_ + " -> " + text));
Core.createElement("br", this.element_);
this.time_ = time;
}
},
This is the diff with the changes:
getWindowSize : function() {
var myWidth = 0, myHeight = 0, myOffsetX
= 0, myOffsetY = 0, myScrollX = 0, myScrollY = 0;
@@ -295,17 +296,22 @@
element_ : null,
isInit_ : false,
time_ : 0,
+ consoleWindow : null,
init_ : function() {
this.element_ = $("console");
this.isInit_ = true;
this.time_ = new Date().getTime();
+ if (DebugMode)
+ this.consoleWindow =
window.open("","CONSOLE","toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resiz
able=yes,width=600,height=300,innerWidth=600,innerHeight=300");
},
write : function(text) {
if (this.isOpen()) {
var time = new Date().getTime();
+ if (DebugMode && (this.consoleWindow != null) &&
(this.consoleWindow.document != null))
+ this.consoleWindow.document.writeln(time - this.time_ + "
-> " + text.replace("<", "<") + "<br/>");
this.element_.appendChild(document.createTextNode(time -
this.time_ + " -> " + text));
Core.createElement("br", this.element_);
this.time_ = time;
Best Regards,
Javier
El 07/12/11 10:02, Stephen Cameron escribió:
> Hello,
>
> I am interested in visualising an model instance in a scrolling <div>
> on the browser.
>
> I know exsltforms does this but is there any other way in recent
> versions of XSLTForms?
>
> Also is it possible to redirect the debug event information to a
> second window?
>
> Thanks
>
> Steve Cameron
>
>
> ------------------------------------------------------------------------------
> Cloud Services Checklist: Pricing and Packaging Optimization
> This white paper is intended to serve as a reference, checklist and point of
> discussion for anyone considering optimizing the pricing and packaging model
> of a cloud services business. Read Now!
> http://www.accelacomm.com/jaw/sfnl/114/51491232/
>
>
> _______________________________________________
> Xsltforms-support mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/xsltforms-support
************************************************************************************************************************************************
*La información contenida en este mensaje de correo electrónico es confidencial
y puede revestir el carácter de reservada. *
*Está dirigida exclusivamente a la persona destinataria.
*
*El acceso o cualquier uso por parte de cualquier otra persona de este mensaje
no están autorizados y pueden ser ilegales.*
*Si no es Ud. la persona destinataria, le rogamos que proceda a borrarlo.
*
*The information in this e-mail is confidential and may be legally privileged.
*
*It is intended solely for the addressee.
*
*Access or any use by any other person to this Internet e-mail is not
authorised and may be unlawful. *
*If you are not the intended recipient, please delete this e-mail.
*
************************************************************************************************************************************************
<<attachment: jdiaz.vcf>>
------------------------------------------------------------------------------ Cloud Services Checklist: Pricing and Packaging Optimization This white paper is intended to serve as a reference, checklist and point of discussion for anyone considering optimizing the pricing and packaging model of a cloud services business. Read Now! http://www.accelacomm.com/jaw/sfnl/114/51491232/
_______________________________________________ Xsltforms-support mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/xsltforms-support
