Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Zope: Users

calling javascript method from dtml method

 

 

Zope users RSS feed   Index | Next | Previous | View Threaded


dvir.b at puresight

Mar 15, 2009, 1:09 AM

Post #1 of 3 (1085 views)
Permalink
calling javascript method from dtml method

Hi



Is there any way to call a javascript method from a dtml method
somewhere in the body of it?

The method cam be in a different js file which is preferable or in the
dtml method if there is no other way, from what I found on the web it
looks like I can't but I want to make sure that I didn't miss anything


lists at zopyx

Mar 15, 2009, 1:12 AM

Post #2 of 3 (994 views)
Permalink
Re: calling javascript method from dtml method [In reply to]

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 15.03.2009 9:09 Uhr, Dvir Bar-lev wrote:
> Hi
>
>
>
> Is there any way to call a javascript method from a dtml method
> somewhere in the body of it?
>
> The method cam be in a different js file which is preferable or in the
> dtml method if there is no other way, from what I found on the web it
> looks like I can’t but I want to make sure that I didn’t miss anything
>

This question makes no sense. DTML=server-side, JS=browser-side.

- -aj
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (Darwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAkm8uHkACgkQCJIWIbr9KYwudQCgsmSmyVr+DKWqktqIvjc6ALxU
43gAn1vIRNVATDnu4U7kNK3KsPYWTMI2
=speP
-----END PGP SIGNATURE-----
Attachments: lists.vcf (0.32 KB)


jburvill at mri

Mar 15, 2009, 5:58 PM

Post #3 of 3 (998 views)
Permalink
Re: calling javascript method from dtml method [In reply to]

Just put a <dtml-var x>

where x is a dtml document with your javascript in it.

Even though it should be in the header it still seems to work



2009/3/15 Dvir Bar-lev <dvir.b [at] puresight>

> Hi
>
>
>
> Is there any way to call a javascript method from a dtml method somewhere
> in the body of it?
>
> The method cam be in a different js file which is preferable or in the dtml
> method if there is no other way, from what I found on the web it looks like
> I can’t but I want to make sure that I didn’t miss anything
>
> _______________________________________________
> Zope maillist - Zope [at] zope
> http://mail.zope.org/mailman/listinfo/zope
> ** No cross posts or HTML encoding! **
> (Related lists -
> http://mail.zope.org/mailman/listinfo/zope-announce
> http://mail.zope.org/mailman/listinfo/zope-dev )
>
>

Zope users RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.