-
FEATURED COMPONENTS
First time here? Check out the FAQ!
Orignial message at:
https://sourceforge.net/forum/message.php?msg_id=3715172
By: nobody
hi,
I would like to try to change the css. Propose some style sheet. I realise it in html but I don't know introduce de html code in ZK?
Here my html code:
<script type="text/javascript" src="/C:/Program Files/Apache Software Foundation/Tomcat 5.5/webapps/myapp/styleswitcher.js/">
</script>
<link rel="stylesheet" type="text/css" media="screen" title="Win"
href="/C:/Program Files/Apache Software Foundation/Tomcat 5.5/webapps/myapp/win.css/"
/>
thanks,
Orignial message at:
https://sourceforge.net/forum/message.php?msg_id=3715240
By: henrichen
css:
<?xml-stylesheet href="/my.css" type="text/css"?>
/henri
Orignial message at:
https://sourceforge.net/forum/message.php?msg_id=3715241
By: henrichen
javascript:
Have to define the xhtml namespace first.
<zk xmlns:h="http://www.w3.org/1999/xhtml">
<h:script type="text/javascript" src=" ..."> </h:script> </zk>
/henri
Orignial message at:
https://sourceforge.net/forum/message.php?msg_id=3715271
By: nobody
Thanks,
the src="..." is the location of what? My css folder?
Orignial message at:
https://sourceforge.net/forum/message.php?msg_id=3715284
By: henrichen
location of your javascript file.
Orignial message at:
https://sourceforge.net/forum/message.php?msg_id=3715448
By: nobody
I have this error message...
com.potix.zk.ui.metainfo.DefinitionNotFoundException: Component definition not
found: link in [LanguageDefinition: xul/html]
Orignial message at:
https://sourceforge.net/forum/message.php?msg_id=3715540
By: nobody
I do like this :
<zk xmlns:h="http://www.w3.org/1999/xhtml">
<h:script type="text/javascript" src="/C:/Program Files/Apache Software Foundation/Tomcat 5.5/webapps/myapp/styleswitcher.js/">
</h:script>
<link rel="stylesheet" type="text/css" media="screen" title="Win"
href="/C:/Program Files/Apache Software Foundation/Tomcat 5.5/webapps/myapp/win.css/"
/>
And I have this error message:
com.potix.zk.ui.metainfo.DefinitionNotFoundException: Component definition not
found: link in [LanguageDefinition: xul/html]
Can you help me?
Thanks,
Orignial message at:
https://sourceforge.net/forum/message.php?msg_id=3715562
By: netwiser
<h:script type="text/javascript" src="/C:/Program Files/Apache Software Foundation/Tomcat 5.5/webapps/myapp/styleswitcher.js/???">
</h:script>
<link rel="stylesheet" type="text/css" media="screen" title="Win"
href="/C:/Program Files/Apache Software Foundation/Tomcat 5.5/webapps/myapp/win.css/???" />
Try to remove the "/" at the end of your src and href definition. (See the question
mark)
Orignial message at:
https://sourceforge.net/forum/message.php?msg_id=3715566
By: henrichen
<?xml-stylesheet href="/win.css" type="text/css"?> <zk xmlns:h="http://www.w3.org/1999/xhtml">
<h:script type="text/javascript" src="/styleswitcher.js"> </h:script>
....
</zk>
write path only under your myapp path or Tomcat has no way to find it.
/henri
Orignial message at:
https://sourceforge.net/forum/message.php?msg_id=3715583
By: nobody
No success,only the same error message...
Here is my complete file.zul
<?init class="myclasses.GetListSeminars"?>
<?xml-stylesheet href="normie.css"?>
<?xml-stylesheet href="/Win.css" type="text/css"?> <?xml-stylesheet href="Win2.css" type="text/css"?>
<zk xmlns:h="http://www.w3.org/1999/xhtml">
<h:script type="text/javascript" src="/styleswitcher.js">
</h:script>
<link rel="stylesheet" type="text/css" media="screen" title="Win"
href="/myapp/win.css" />
<zscript>
void logout(){
Executions.sendRedirect ("hello.zul");
}
</zscript>
<window onCreate="myclasses.Rights.init(main)" id="main" width="990px"
height="650px" >
<hbox height="42px" spacing="0" style="background-color: #ffffff">
<window id="entete" border="3d" width="41px" height="42px"
sclass="backgroundjaune" >
<image src="images/Entete_DessinAnaxagora.gif" width="41px" height="42px"
/>
<image src="images/Entete_LigneJaune.gif" width="41px" height="11px" />
</window>
<window border="3d" width="400px" height="42px" style="background-color:
#476ba0">
<vbox spacing="0">
<image src="images/EnteteLogoAnaxagora.gif" width="131px" height="42px"
/>
<image src="images/Entete_3CarresJaunesDroite.gif" width="131px" height="12px"
/>
</vbox>
</window>
<window border="3d" width="100%" height="52px" style="background-color:
#ffffff">
<hbox spacing="0">
<image src="images/Entete_12CarresBlanc.gif" width="30px" height="42px"
/>
<image src="images/EntetesLignesBleues.gif" width="100%" height="42px"
/>
<image src="images/Entete_LignesEtCarresJaunes.gif" width="54px" height="42px"
/>
</hbox>
</window>
</hbox>
<menubar id="menubar" autoPopup="true" style="background-color: #849cbf">
<menu label="propriete" style="background-color: #849cbf">
<menupopup>
<menu label="Police">
<menupopup>
<menuitem label="8"/>
<menuitem label="10"/>
</menupopup>
</menu>
<menu label="Font">
<menupopup>
<menuitem label="..."/>
<menuitem label="..."/>
</menupopup>
</menu>
<menu label="Background color">
<menupopup>
<menuitem label="blue" onClick="backblue()" />
<menuitem label="green" onClick="backgreen()"
/>
<menuitem label="red" onClick="backred()" />
<menuitem label="gray" onClick="backgray()"/>
<menuitem label="orange" onClick="backorange()"
/>
<menuitem label="white" onClick="backwhite()"
/>
</menupopup>
</menu>
<menuitem label="refresh" onClick="page.invalidate()"/>
</menupopup>
</menu>
<menu label="Services" style="background-color: #849cbf" >
<menupopup>
<menuitem label="Affichage du texte d'accueil"
onClick="win3.setVisible(true);
win3.setTop("150px");win3.setLeft("300px")"/>
<menuitem label="Lien vers BPM"
onClick="win4.setVisible(true);
win3.setTop("150px");win3.setLeft("300px")" />
<menuitem label="Liste des cours"/>
<menuitem label="Administration"/>
</menupopup>
</menu>
<menu label="Style" style="background-color: #849cbf"
width="100%">
<menupopup>
<menuitem label="Style1" href="#"
onClick="setActiveStyleSheet ('win');return false;"/>
<menuitem label="Style2"/>
<menuitem label="..."/>
<menuitem label="..."/>
</menupopup>
</menu>
<menu label="Logout" style="background-color: #849cbf"
onClick="logout()" >
</menu>
</menubar>
</window>
</zk>
Orignial message at:
https://sourceforge.net/forum/message.php?msg_id=3715651
By: henrichen
Ok, I will try it later.
/henri
Asked: 2006-05-05 08:41:28 +0800
Seen: 604 times
Last updated: May 09 '06