View Full Version : [Solved] Toolbar created dynamically has no icons?
DigitalSkyline
28 Jul 2007, 12:18 PM
Anyone know if there is any need/easy way to preload images... problem I'm having is that a toolbar I'm adding to a new tab isn't showing the icons... I'm just assuming its because its created after the main layout and document is loaded, by a dynamically added tab.
Any thoughts, I can post the code but there are no errors and the text and toolbar renders/operates fine (minus the icons).
Thanks!
jay@moduscreate.com
28 Jul 2007, 3:41 PM
is the img tag being put into the container for the tab??
DigitalSkyline
28 Jul 2007, 8:29 PM
Nope basically its a layout with a north region that I'm rendering the toolbar to, and the center region is the main content. Being rendered as a layout inside a layout, after the load is initiated.
I know I'm probably not explaining it well :-? so here's a screenshot...
jay@moduscreate.com
29 Jul 2007, 4:11 AM
are your icons in the correct path? What is your CSS parameter? Have you inspected the tool bar using firebug?
DigitalSkyline
29 Jul 2007, 8:00 AM
Well, looks like I found the problem... which is strange:
The url (:a dynamic image)
icon: '/public/img.aspx?src=cal\button_day.gif'
The rendered html:
<button type="button" class="x-btn-text" id="ext-gen264" style="background-image: url(/public/img.asp?src=calutton_day.gif);">View Day</button>
\b was being converted to a control character (\u0008) - Ext perhaps is using a regular expression to write the toolbar markup... anyways... I probably would have found it sooner, but its one of those non-critical things I was hoping someone might have a solution. :">
Thanks DJ... figures it would be a specific use case issue and I happen to come across it.
I was able to fix the issue by escaping the backslash. =D>
jay@moduscreate.com
29 Jul 2007, 8:36 AM
yeah that's microsoft and them NOT conforming to the rest of the computing world (including the mainframe) in using /'s instead of \'s. i hate michaelsoft.
glad you got it fixed.
Powered by vBulletin® Version 4.1.5 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.