[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] ToolBar.htc, xml & xsl, toolbar not loading
Hi List, Does anyone know of any lists specifically for the new htc controls, Toolbar in particular, Im working on a toolbar for a client interface(all in jscript, xml & xsl) and this is the last UI piece that I have to do but, being the last one it would have to be a pig. The code bellow is generated by an xsl transformation on an xml file sent from the server, <?xml version="1.0" encoding="UTF-16"?> <tb:TOOLBAR ID="oToolBar" style=" display:inline; behavior : url(./production framework/Controlsource/toolbar.htc); top:0; left:0;" MOVEMENT="dock" DEFAULTSTYLE="BORDER: threedface 1px solid; background-color: #D6D3CE; text-align: left;vertical-align: middle;white-space: no-wrap;" HOVERSTYLE="BORDER: #000000 1px solid; background-color: #B5BED6; text-align: left;vertical-align: middle;white-space: no-wrap;" SELECTEDSTYLE="BORDER: threedface 1px solid; background-color:#8492B5; text-align: left;vertical-align: middle;white-space: no-wrap;" xmlns:tb="uri"> <tb:TOOLBARGRIPPER /> <tb:TOOLBARBUTTON TEXT="Site Properties" IMAGEURL="button_properties.gif" onbuttonclick="Application.showPropertyPage('AppProperties');" /> <tb:TOOLBARSEPARATOR /> <tb:TOOLBARBUTTON TEXT="Next" IMAGEURL="button_next.gif" onbuttonclick="Application.DataGrid.Next();" /> <tb:TOOLBARBUTTON TEXT="Previous" IMAGEURL="button_previous.gif" onbuttonclick="Application.DataGrid.Previous();" /> <tb:TOOLBARSEPARATOR /> <tb:TOOLBARBUTTON TEXT="New" IMAGEURL="button_new.gif" onbuttonclick="Application.NewElement();" /> <tb:TOOLBARBUTTON TEXT="Previous" IMAGEURL="button_previous.gif" onbuttonclick="Application.DataGrid.Previous();" /> </tb:TOOLBAR> This is then "pasted" into a container div(jscript), if I pause execution (using a prompt or confirm) just before I paste the above code into the container it appears (almost) correctly (bar the images, but that's not a serious problem), however if I just let the code execute normally it does absolutely nothing :(, Odd ! Im quite sure that I need to use the onreadystatechange event of the toolbar and then add the controls for the toolbar, but I would like to be able to generate any changes for the interface from the xml & xsl files Only, ie no recoding javascript functions, so I would like to keep the final toolbar definition in the xsl file(then I could change the structure of the toolbar at a later stage without too much hassle, i.e. use another form of toolbar instead of the toolbar.htc), but at the moment it doesn't look like I can do this :( Anyone got any ideas/lists?? Thanks list Alan XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|