[xwiki-users] JS running problem
Hello community I have created JS Extension file its code is : alert("Hello world"); I configured it as run on demand. I use this code in order to call js: {{velocity}} $xwiki.jsx.use("XWiki.FirstJS") {{/velocity}} however it does not do anything. Any ideas how to run JS?
Hi there, On Oct 14, 2010, at 6:43 AM, Bauyrzhan Matyganov wrote:
Hello community
I have created JS Extension file its code is : alert("Hello world"); I configured it as run on demand.
I use this code in order to call js: {{velocity}} $xwiki.jsx.use("XWiki.FirstJS") {{/velocity}}
however it does not do anything.
Any ideas how to run JS?
Yes, see the skin extension tutorial: http://platform.xwiki.org/xwiki/bin/view/DevGuide/SkinExtensionsTutorial Thanks -Vincent
On Oct 14, 2010, at 7:18 AM, Bauyrzhan Matyganov wrote:
I have followed the instructtion from that tutorial so its no help
Please answer inline and don't remove previous comments since you're making it hard to help you. Right now I cannot even read your initial message again since you removed it from this message and it's just too long to have to open a browser and search the archives to find it. You need to make it easy for people to help you. Could you explain what you did in more details and the error you get, so that we can help you more? Thanks -Vincent
ok, so the problem is that I have created new JavascriptExtension and CSSExtension files I configured them as to call on demand. However, when i cal them with skin extension plugin: $xwiki.jsx.use("XWiki.SomeJSFile") and $xwiki.ssx.use("XWiki.SomeCSSFile") no changes appear on my page. But, when I configure them as to run Always on this page, it works fine. The problem is that I want to call them on demand but they do not run with skin extension plugin. Thank in advance. Bauyrzhan On Thu, Oct 14, 2010 at 11:34 AM, Vincent Massol <[email protected]> wrote:
On Oct 14, 2010, at 7:18 AM, Bauyrzhan Matyganov wrote:
I have followed the instructtion from that tutorial so its no help
Please answer inline and don't remove previous comments since you're making it hard to help you. Right now I cannot even read your initial message again since you removed it from this message and it's just too long to have to open a browser and search the archives to find it. You need to make it easy for people to help you.
Could you explain what you did in more details and the error you get, so that we can help you more?
Thanks -Vincent
_______________________________________________ users mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/users
Hi Bauyrzhan, On 10/14/2010 08:45 AM, Bauyrzhan Matyganov wrote:
ok, so the problem is that I have created new JavascriptExtension and CSSExtension files I configured them as to call on demand. However, when i cal them with skin extension plugin: $xwiki.jsx.use("XWiki.SomeJSFile") and $xwiki.ssx.use("XWiki.SomeCSSFile") no changes appear on my page. But, when I configure them as to run Always on this page, it works fine. The problem is that I want to call them on demand but they do not run with skin extension plugin.
Which XWiki Enterprise version are you using? I just tried the same thing on the latest XE 2.5 build and it worked fine. Marius
Thank in advance.
Bauyrzhan
On Thu, Oct 14, 2010 at 11:34 AM, Vincent Massol<[email protected]> wrote:
On Oct 14, 2010, at 7:18 AM, Bauyrzhan Matyganov wrote:
I have followed the instructtion from that tutorial so its no help
Please answer inline and don't remove previous comments since you're making it hard to help you. Right now I cannot even read your initial message again since you removed it from this message and it's just too long to have to open a browser and search the archives to find it. You need to make it easy for people to help you.
Could you explain what you did in more details and the error you get, so that we can help you more?
Thanks -Vincent
_______________________________________________ users mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/users
_______________________________________________ users mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/users
Hi Marius I am using this version : xwiki-enterprise-installer-windows-2.4.3.exe On Thu, Oct 14, 2010 at 1:52 PM, Marius Dumitru Florea < [email protected]> wrote:
Hi Bauyrzhan,
On 10/14/2010 08:45 AM, Bauyrzhan Matyganov wrote:
ok, so the problem is that I have created new JavascriptExtension and CSSExtension files I configured them as to call on demand. However, when i cal them with skin extension plugin: $xwiki.jsx.use("XWiki.SomeJSFile") and $xwiki.ssx.use("XWiki.SomeCSSFile") no changes appear on my page. But, when I configure them as to run Always on this page, it works fine. The problem is that I want to call them on demand but they do not run with skin extension plugin.
Which XWiki Enterprise version are you using? I just tried the same thing on the latest XE 2.5 build and it worked fine.
Marius
Thank in advance.
Bauyrzhan
On Thu, Oct 14, 2010 at 11:34 AM, Vincent Massol<[email protected]>
wrote:
On Oct 14, 2010, at 7:18 AM, Bauyrzhan Matyganov wrote:
I have followed the instructtion from that tutorial so its no help
Please answer inline and don't remove previous comments since you're
making
it hard to help you. Right now I cannot even read your initial message again since you removed it from this message and it's just too long to have to open a browser and search the archives to find it. You need to make it easy for people to help you.
Could you explain what you did in more details and the error you get, so that we can help you more?
Thanks -Vincent
_______________________________________________ users mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/users
_______________________________________________ users mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/users
users mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/users
Some things you should check: * see with Firebug if the JavaScript extension is included in the head of your HTML page and if its content is right. * clear browser cache * try to move the JavaScript extension to a different page in a different space than XWiki (in other words, make sure this isn't a access rights issue) I'll try XE 2.4.3 to see if I can reproduce your problem. Hope this helps, Marius On 10/14/2010 11:23 AM, Bauyrzhan Matyganov wrote:
Hi Marius I am using this version : xwiki-enterprise-installer-windows-2.4.3.exe
On Thu, Oct 14, 2010 at 1:52 PM, Marius Dumitru Florea< [email protected]> wrote:
Hi Bauyrzhan,
On 10/14/2010 08:45 AM, Bauyrzhan Matyganov wrote:
ok, so the problem is that I have created new JavascriptExtension and CSSExtension files I configured them as to call on demand. However, when i cal them with skin extension plugin: $xwiki.jsx.use("XWiki.SomeJSFile") and $xwiki.ssx.use("XWiki.SomeCSSFile") no changes appear on my page. But, when I configure them as to run Always on this page, it works fine. The problem is that I want to call them on demand but they do not run with skin extension plugin.
Which XWiki Enterprise version are you using? I just tried the same thing on the latest XE 2.5 build and it worked fine.
Marius
Thank in advance.
Bauyrzhan
On Thu, Oct 14, 2010 at 11:34 AM, Vincent Massol<[email protected]>
wrote:
On Oct 14, 2010, at 7:18 AM, Bauyrzhan Matyganov wrote:
I have followed the instructtion from that tutorial so its no help
Please answer inline and don't remove previous comments since you're
making
it hard to help you. Right now I cannot even read your initial message again since you removed it from this message and it's just too long to have to open a browser and search the archives to find it. You need to make it easy for people to help you.
Could you explain what you did in more details and the error you get, so that we can help you more?
Thanks -Vincent
_______________________________________________ users mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/users
_______________________________________________ users mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/users
users mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/users
_______________________________________________ users mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/users
participants (3)
-
Bauyrzhan Matyganov -
Marius Dumitru Florea -
Vincent Massol