RE: After using Tapestry 5.0.13 Javascript(.js) files loads after loading content causing problem when use the functions written in .js files within content

2008-07-04 Thread Kristian Marinkovic
please read:

http://tapestry-user.markmail.org/search/?q=javascript#query:javascript%20order%3Adate-backward+page:2+mid:cufkwcxepsfzqsqi+state:results
and/org
http://tapestry-user.markmail.org/search/?q=javascript#query:javascript%20order%3Adate-backward+page:3+mid:o26tiyw5xm4rmecs+state:results

g,
kris




Harish Kudriyal <[EMAIL PROTECTED]> 
04.07.2008 09:44
Bitte antworten an
"Tapestry users" 


An
users@tapestry.apache.org
Kopie

Thema
After using Tapestry 5.0.13 Javascript(.js) files loads after loading 
content causing problem when use the functions written in .js files within 
content








Hi,

   I have updated Tapestry 5.0.13 version beacause of which I am facing
javascript issues.
   I have written some function(for example 'fun1' ) in zzz.js files and
including this using annotation @IncludeJavaScriptLibrary on the page
MyPage.java. Within the page content in 'MyPage.tml' I am using some
function written in zzz.js in  tag which are called line by line
when the content loads. For example html code written like following...

content...content...
content...content...
<script>fun1()
content...content...
content...content...

Now because js file zzz.js loads after content load on screen I am getting
javascript error that fun1() does not exist.
What can be resolution for this? How can I load the file zzz.js before the
content loads on screen?
Please help me out.

Harish Kudriyal
Fiserv
-- 
View this message in context: 
http://www.nabble.com/After-using-Tapestry-5.0.13-Javascript%28.js%29-files-loads-after-loading-content-causing-problem-when-use-the-functions-written-in-.js-files-within-content-tp18274564p18274564.html

Sent from the Tapestry - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




After using Tapestry 5.0.13 Javascript(.js) files loads after loading content causing problem when use the functions written in .js files within content

2008-07-04 Thread Harish Kudriyal

Hi,

   I have updated Tapestry 5.0.13 version beacause of which I am facing
javascript issues.
   I have written some function(for example 'fun1' ) in zzz.js files and
including this using annotation @IncludeJavaScriptLibrary on the page
MyPage.java. Within the page content in 'MyPage.tml' I am using some
function written in zzz.js in  tag which are called line by line
when the content loads. For example html code written like following...

content...content...
content...content...