dcsimg
www.webdeveloper.com
Results 1 to 5 of 5

Thread: Javascript in Velocity

  1. #1
    Join Date
    Apr 2004
    Posts
    30

    Exclamation Javascript in Velocity

    I am trying to use JavaScrpit in velocity. Dose anyone know how I go aabout doing so. I have tried vaious tages like <script> #scriptstart(), etc...but it dosent seem to work. I woul dlike to know if anyone knows how I can go about making Javascripts work in velocit pages.

  2. #2
    Join Date
    Feb 2003
    Location
    Mt Airy MD
    Posts
    379
    Is velocity another browser?

    First, the correct script tag is:

    <script language="JavaScript" type="text/javascript"> <!--

    and close with:

    // --> </script>

    Assuming that still does not work you may need to turn scripting on for the browser.

    Again, if velocity is not a browser I have no idea wht it is or how to "add" JavaScript to it.

  3. #3
    Join Date
    Apr 2004
    Posts
    30
    its not a browser, but a template. It use scripts that can be run on linux box.

    I have tried taht, so I dn't know why it doesnt work. Will have to look harder now.

    Thanks for all you help.

    Ptaz.

  4. #4
    Join Date
    Jan 2004
    Location
    Melbourne, Australia
    Posts
    5,298
    Velocity is an alternative to JSP for linux users. I have had no real experience in the environment, however.

    Is the source embedded into a HTML page like ASP, JSP and PHP? Or must you write the entire page as a script like CGI?

    It not the latter, you could simply break the script using the extermination sequence (eg %> in ASP) and write your JavaScript in from there.

    Regards,
    Andrew Buntine.
    Last edited by buntine; 04-29-2004 at 01:05 PM.

  5. #5
    Join Date
    Feb 2003
    Location
    Mt Airy MD
    Posts
    379
    If the template is for Linux, ahh looks like buntine has the info you need.

    I was going to say that JavaScript will not work in your page because it is only active in a browser and I didn't think you were using it that way.

    But, buntine has the info you need so I'll leave it at that.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center



Recent Articles