0

Addition jquery

asked 2015-05-15 11:06:10 +0800

Kipill gravatar image Kipill
1

updated 2015-05-15 11:08:58 +0800

Hi. I have a problem, I want to use jQuery library, but don't how addition it. My index page:

    <zk>
    <?script type="text/javascript" src="WEB-INF/scripts/jquery-1.8.3.min.js"?>
    <?script type="text/javascript" src="WEB-INF/scripts/jquery.maskedinput.min.js"?>  
    <borderlayout hflex="1" vflex="1" apply="ru.ai1r.trashman.web.controller.IndexController">
        <north vflex="min" hflex="true" border="none">
            <borderlayout hflex="true" vflex="min">
                <west id="mainMenu" border="none" />
                <center border="none">
                    <toolbar align="end" hflex="1">
                        <toolbarbutton label="${c:l('app.admin.title')}" disabled="true" />
                        <div id="divTest1">"Hello, world!"</div>
                        <script type="text/javascript">
                            $("#divTest1").text("Hello, jquery!");
                        </script>
                        <combobutton id="btnUser" label="${authentication.principal.shortFullName}" mold="toolbar">
                            <menupopup>
                                <menuitem id="changePassword" label="${c:l('header.username.changePassword')}" />
                                <menuseparator />
                                <menuitem id="changeUser" label="${c:l('header.username.changeUser')}" />
                                <menuitem label="${c:l('header.username.logout')}" href="/j_spring_security_logout" />
                            </menupopup>
                        </combobutton>
                    </toolbar>
                </center>
            </borderlayout>
        </north>
        <center border="none">
            <tabbox id="tabBox" height="100%" />
        </center>
    </borderlayout>
</zk>

Test code <script type="text/javascript"> $("#divTest1").text("Hello, jquery!"); </script> didn't exsecute.

Files is present at the direction of the path.

Kipill.

delete flag offensive retag edit

1 Answer

Sort by ยป oldest newest most voted
0

answered 2015-05-17 13:45:05 +0800

Darksu gravatar image Darksu
1991 1 4

Hello Kipill,

You can find a lot of information at the following url:

http://gekkio.fi/blog/2011-04-03-client-side-zk-part-1.html

Best Regards,

Darksu

link publish delete flag offensive edit
Your answer
Please start posting your answer anonymously - your answer will be saved within the current session and published after you log in or create a new account. Please try to give a substantial answer, for discussions, please use comments and please do remember to vote (after you log in)!

[hide preview]

Question tools

Follow
1 follower

RSS

Stats

Asked: 2015-05-15 11:06:10 +0800

Seen: 10 times

Last updated: May 17 '15

Support Options
  • Email Support
  • Training
  • Consulting
  • Outsourcing
Learn More