0

<script> not running in zul page

asked 2010-07-21 00:53:12 +0800

brynee gravatar image brynee
9

Hi

I have some zul pages in a zul page. I include these pages dynamically in composer using several include tags. And i have javascript tags in all the pages. The script in the sub pages are not getting executed. But if i am running each page separately, all the scripts are getting executed. My requirement is like i must use <script> instead of <zscript>.


Can some one help me out??

delete flag offensive retag edit

4 Replies

Sort by ยป oldest newest

answered 2010-07-21 03:31:07 +0800

zero5 gravatar image zero5
75

Are JavaScript generated to the browser? Whatever specified in <script> shall go to the browser, while zscript executes in the server.

link publish delete flag offensive edit

answered 2010-07-21 05:37:36 +0800

brynee gravatar image brynee
9

yes i want the script to run in client side only. Not even alert is getting called.!!!

link publish delete flag offensive edit

answered 2010-07-28 22:14:51 +0800

henrichen gravatar image henrichen
3869 2
ZK Team

Most of the time, it shall be the timing issue. Would you provide SIMPLE RUNNABLE sample code that will replicate the issue?

link publish delete flag offensive edit

answered 2010-07-31 05:44:40 +0800

603424 gravatar image 603424
127 3

updated 2010-07-31 05:45:12 +0800

try using following code in place of <script> tag

<n:script  xmlns:n="http://www.w3.org/1999/xhtml" > 
// your piece of code here...
</n:script>


Regards,
Niral Soni

link publish delete flag offensive edit
Your reply
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

RSS

Stats

Asked: 2010-07-21 00:53:12 +0800

Seen: 325 times

Last updated: Jul 31 '10

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