| Author |
Message |
shotokan Worker


Joined: Aug 27, 2006 Posts: 153
|
Posted:
Thu Jan 11, 2007 11:32 pm |
|
I have this block where i create a dropdown select list and when the user select a option it trigger a onchange function where i launch an iframe.
see code here
Now this iframe call another code caleed monitor.php where i am trying to add the get_theme() and link to the css of the theme being used but is not working for some reason.
When the scripts run and i looked into the "view source" everything on the monitor.php below the link ref part is not executed.
See code here |
|
|
|
 |
persona_non_grata

Joined: Posts: 0
|
Posted:
Fri Jan 12, 2007 3:49 am |
|
any url so we can see.....  |
|
|
|
 |
shotokan Worker


Joined: Aug 27, 2006 Posts: 153
|
Posted:
Fri Jan 12, 2007 7:31 am |
|
| persona_non_grata wrote: | any url so we can see..... |
Yes sure. Sorry about that. It is the center block with the dropdown menu. Right is with a black background but i really want it to use whatever theme background is currently used since i have a theme preview block there and people can change the theme at any time.
|
|
|
|
 |
persona_non_grata

Joined: Posts: 0
|
Posted:
Fri Jan 12, 2007 9:32 am |
|
maybe i overlooked something but aren't you pulling the info from another address ?
they use a black background... |
|
|
|
 |
shotokan Worker


Joined: Aug 27, 2006 Posts: 153
|
Posted:
Fri Jan 12, 2007 12:53 pm |
|
Yes i am but they don't use any background whatsoever. The black background you see is on the monitor.php code i did right in the beggininh with the HTML tag.
If you actually bring that without specifying any background it will use the default especified on your browser and my case IE would be white.
So i was trying to add the called to the get_theme() function and make it uses whatever theme background being used at the moment.
But it is not working.
I think the get_theme should be on the monior.php code but when i added it there it did not work at all. |
|
|
|
 |
persona_non_grata

Joined: Posts: 0
|
Posted:
Fri Jan 12, 2007 3:16 pm |
|
oh yeah i see,but that will not work...
you cant set the body background and use style from the used theme at the same time..
if you take that out with a litle luck it automatically uses the background of the theme... |
|
|
|
 |
shotokan Worker


Joined: Aug 27, 2006 Posts: 153
|
Posted:
Fri Jan 12, 2007 4:09 pm |
|
I would say i am not that luck
Before that version of the code i had the first one where i had no background set and it all came in WHITE that's why i mentioned that thing about using the default on the browser.
So i started trying the CSS theme but since i could not make it to work i just set the black on the background for now becaue i hate the white one. |
|
|
|
 |
persona_non_grata

Joined: Posts: 0
|
Posted:
Fri Jan 12, 2007 4:20 pm |
|
|
|
 |
|
|
|
|