You should be able to get the class name of any _javascript_ object like:

s = Obj.classname;

You can put any valid HTML (which includes bracketed _javascript_ <script></script>) inside an HtmlEmbed, at least I believe I have put JS inside one.
But if your URL returns simple qooxdoo objects them why not simply add them to a layout control? That is the easiest way to do this. Instead of an HtmlEmbed, create a CanvasLayout or other layout control and add your objects to it. Then, again, you have total control over the theme of the contents

Jim



On 10/20/06, taha_ <[EMAIL PROTECTED]> wrote:

Hi,
The pages are a number of jsp with only qooxdoo objects, no html inside.
As I have told using the ColorManager method
setColorThemeById("qx.theme.color.WindowsLunaGreen") chnage the Iframe theme
except a tree border. And I can have the current ColorTheme class of the
parent using ColorManager method getColorTheme() but the problem is how to
get the class name as a string ???
Can send a jsp(qooxdoo script, no HTML ) GET to HtmlEmbed ?
Thanks for your serious interest to my problem
Best regards
Taha


Jim Hunter-2 wrote:
>
> Setting the theme of the IFrame itself will not change the color of the
> IFrame contents. You are going to have to make color changes IN the file
> you
> are loading. If selecting a menu item loads the page Sales.htm then you
> are
> going to have to edit Sales.htm to make color changes. It is a TOTALLY
> SEPARATE, SELF CONTAINED FILE. That is the beauty of IFrames, they keep
> things apart. It is possible to reference things in IFrames via
> _javascript_,
> but if Sales.htm is not a qooxdoo file, then setting qooxdoo properties in
> not going to do much good.
>
> You asked for suggestions, I would try to replace the IFrame with a
> HtmlEmbed and use a qx.io.remote.RemoteRequest to get the contents of
> Sales.htm and stuff it into HtmlEmbed. At that point it is a full child of
> your qooxdoo application and should adhere to your color requests.
>
> Jim
>
> On 10/20/06, taha_ <[EMAIL PROTECTED]> wrote:
>>
>>
>> I have a web app with  a menubar and I use the Iframe as a container for
>> the
>> call of the url linked to the menu options.
>> And if you have another way to do such  thing I will be happy to try it.
>> I can have the color theme of the Iframe parent using the ColorManager
>> method getColorTheme(), this an instance of ColorTheme(We call it
>> CTinstance) class the problems are :
>>       * Nothing happens using the ColorManager method
>> setColorTheme(CTinstance)
>>       * Using the ColorManager method setColorThemeById(CTinstance)
>> generate
>> a _javascript_ error
>>           "this._colorThemes[..] is null "
>> The only way to change the theme is to pass the name of the ColorTheme
>> class
>> you want to set as a string and I don't know right now how to get the
>> class
>> name of CTinstance ?!?!
>> Any suggestions ?
>> Thanks and best regards
>> Taha
>>
>>
>>
>> Jim Hunter-2 wrote:
>> >
>> > My first question is simple, what are you putting IN the IFrame? Is it
>> a
>> > complete page that you are loading from disk or are you stuffing code
>> into
>> > it on the fly? You have to remember that this is a separate document
>> and
>> > if
>> > it is a qooxdoo document, it has to load it's own copy of the library
>> and
>> > has it's own managers. If the code you listed was being run inside the
>> > IFrame, then you are still changing the containing pages properties
>> > because
>> > you used 'parent'. When working inside an IFrame, think of it as a page
>> > all
>> > to itself and go from there.
>> > The reason I asked about 'what' you are placing in the IFrame is
>> because
>> > many people use and IFrame because that's the way they did things
>> before
>> > qooxdoo, and in qooxdoo you can replace the IFrame with a layout in
>> most
>> > cases. If you are putting a page inside it that is loaded from another
>> > domain then using a layout is a little harder but still very doable. My
>> > application used to use IFrames all over the place but now I don't use
>> any
>> > and things work much nicer.
>> >
>> > Jim
>> >
>> > On 10/20/06, taha_ <[EMAIL PROTECTED]> wrote:
>> >>
>> >>
>> >> Hi,
>> >> Thanks for the quick response :-)
>> >> I did guess there is somehing like this and did tried to change the
>> color
>> >> theme in the page loaded in the is frame using the ColorManger :
>> >> qx.core.Init.getInstance().defineMain(function(){
>> >>     var th =
>> >> parent.qx.manager.object.ColorManager.getInstance ().getColorTheme();
>> >>     qx.manager.object.ColorManager.getInstance().setColorTheme(th);
>> >>
>> >> I tried also :
>> >>     eval("qx.Settings.setDefault ('colorTheme', '" +
>> >> "WindowsLunaGreenColorTheme" + "');");
>> >> and  :
>> >>
>> >> qx.Settings.setDefault(
>> parent.qx.manager.object.ColorManager.getInstance
>> >> ().getColorTheme());
>> >> I did tried a lot of ways based on the idea that the iframe is an
>> >> independant part of the document but no way to make the color theme
>> >> change
>> >> Any suggestions please ?
>> >> Thanks a lot
>> >>
>> >>
>> >> Andreas Ecker-2 wrote:
>> >> >
>> >> > Howdy!
>> >> >
>> >> >> I have a page with an iframe inside and when I change the color
>> theme,
>> >> >> all
>> >> >> the objects outside the iframe change color and those inside didn't
>> >> >> :-((((
>> >> >> Can any one help me to understand why ?
>> >> >
>> >> > The two documents are pretty much independent and unrelated (in a
>> >> > cross-domain scenario completely unrelated for security reasons).
>> >> >
>> >> > Think about a regular HTML frame set: If you change the background
>> >> color
>> >> > of one of the documents, you would not expect the other frames to
>> >> change
>> >> > their colors as well.
>> >> >
>> >> > If you still want to change the color themes in both of your
>> documents,
>> >> > you have to access the appropriate theme switch method in your
>> iframe
>> >> > document in addition to the theme switch you do now.
>> >> >
>> >> > Hope that helps,
>> >> >
>> >> > Andreas
>> >> >
>> >> >
>> >> >
>> >> >
>> >> >
>> >>
>> -------------------------------------------------------------------------
>> >> > Using Tomcat but need to do more? Need to support web services,
>> >> security?
>> >> > Get stuff done quickly with pre-integrated technology to make your
>> job
>> >> > easier
>> >> > Download IBM WebSphere Application Server v.1.0.1 based on Apache
>> >> Geronimo
>> >> >
>> >>
>> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
>> >> > _______________________________________________
>> >> > qooxdoo-devel mailing list
>> >> > [email protected]
>> >> > https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
>> >> >
>> >> >
>> >>
>> >> --
>> >> View this message in context:
>> >> http://www.nabble.com/Iframe-an-ColorManger-tf2480296.html#a6916661
>> >> Sent from the qooxdoo-devel mailing list archive at Nabble.com.
>> >>
>> >>
>> >>
>> -------------------------------------------------------------------------
>> >> Using Tomcat but need to do more? Need to support web services,
>> security?
>> >> Get stuff done quickly with pre-integrated technology to make your job
>> >> easier
>> >> Download IBM WebSphere Application Server v.1.0.1 based on Apache
>> >> Geronimo
>> >>
>> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
>> >> _______________________________________________
>> >> qooxdoo-devel mailing list
>> >> [email protected]
>> >> https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
>> >>
>> >
>> >
>> -------------------------------------------------------------------------
>> > Using Tomcat but need to do more? Need to support web services,
>> security?
>> > Get stuff done quickly with pre-integrated technology to make your job
>> > easier
>> > Download IBM WebSphere Application Server v.1.0.1 based on Apache
>> Geronimo
>> >
>> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
>> > _______________________________________________
>> > qooxdoo-devel mailing list
>> > [email protected]
>> > https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
>> >
>> >
>>
>> --
>> View this message in context:
>> http://www.nabble.com/Iframe-an-ColorManger-tf2480296.html#a6921892
>> Sent from the qooxdoo-devel mailing list archive at Nabble.com.
>>
>>
>> -------------------------------------------------------------------------
>> Using Tomcat but need to do more? Need to support web services, security?
>> Get stuff done quickly with pre-integrated technology to make your job
>> easier
>> Download IBM WebSphere Application Server v.1.0.1 based on Apache
>> Geronimo
>> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
>> _______________________________________________
>> qooxdoo-devel mailing list
>> [email protected]
>> https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
>>
>
> -------------------------------------------------------------------------
> Using Tomcat but need to do more? Need to support web services, security?
> Get stuff done quickly with pre-integrated technology to make your job
> easier
> Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
> _______________________________________________
> qooxdoo-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
>
>

--
View this message in context: http://www.nabble.com/Iframe-an-ColorManger-tf2480296.html#a6925213
Sent from the qooxdoo-devel mailing list archive at Nabble.com.


-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to