[Seasar-user:17779] Re: [Teeda Layoutでjavascript]について

Koichi Kobayashi [E-MAIL ADDRESS DELETED]
2009年 6月 16日 (火) 17:00:19 JST


小林 (koichik) です.

Date:    Tue, 16 Jun 2009 15:42:54 +0900
From:    thomas <[E-MAIL ADDRESS DELETED]>
To:      [E-MAIL ADDRESS DELETED]
Subject: [Seasar-user:17776] [Teeda Layoutでjavascript]について

> How can i call javascript function in menu.html under layout?
> 
> If i put the same menu.html outside layout folder,the javascript function is
> called,whereas if i put inside the layout folder i couldnt call javascript
> function.

First, confirm relative paths to .js file.
If directory structure is

/
  js
    foo.js
  view
    layout
      menu.html

The value of the src attribute of <script> is

<script type="text/javascript" src="../../js/foo.js"></script>

Second, Teeda changes id, such as 'aaa' to 'layoutMenu:menuForm:aaa',
confirm it by a browser with [View Source] menu.

When it is neither, show a source code.


-- 
<component name="koichik">
    <property name="fullName">"Koichi Kobayashi"</property>
    <property name="email">"[E-MAIL ADDRESS DELETED]"</property>
    <property name="blog">"http://d.hatena.ne.jp/koichik"</property>
</component>



Seasar-user メーリングリストの案内