Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6080803
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T11:06:12+00:00 2026-05-23T11:06:12+00:00

i have grails application. i use javascript files with this project. (I use javascript

  • 0

i have grails application. i use javascript files with this project.
(I use javascript for calender)

problem:
this calender works fine on my pc, but when i put my project on the server this calender doesn’t work.

What can i do to keep this calender works on the server.

Note: operating system of my Pc and af server is linus ubuntu.

<g:javascript library="application"/>
<script src="/tandium.com/js/jquery-1.4.2.min.js" type="text/javascript"></script>
<script src="/tandium.com/js/jquery-ui-1.8.4.custom.min.js" type="text/javascript"></script>
<script src="/tandium.com/js/jquery.ui.datetimepicker.js" type="text/javascript"></script>
<script  type="text/javascript" language="javascript1.2">

<script type="text/javascript">
        $(document).ready(function() {
            $('.datetime').datetimepicker({dateFormat: "yyyy-mm-dd HH:MM:ss"});
        });
</script>

This calender works when user click on a textbox, calender appears, user then choose a date, to appear in the textbox

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-23T11:06:12+00:00Added an answer on May 23, 2026 at 11:06 am

    Right, now you have posted some code, I think I can see the issue..

    You have hard-coded your context into your javascript links

    <script src="/tandium.com/js/jquery-1.4.2.min.js" type="text/javascript"></script>
    <script src="/tandium.com/js/jquery-ui-1.8.4.custom.min.js" type="text/javascript"></script>
    <script src="/tandium.com/js/jquery.ui.datetimepicker.js" type="text/javascript"></script>
    

    Can you try using the grails code to get a link like so:

    <script src="${resource(dir:'js', file:'jquery-1.4.2.min.js')}" type="text/javascript"></script>
    <script src="${resource(dir:'js', file:'jquery-ui-1.8.4.custom.min.js')}" type="text/javascript"></script>
    <script src="${resource(dir:'js', file:'jquery.ui.datetimepicker.js')}" type="text/javascript"></script>
    

    That should fix it… (you would have been getting 404 errors, and any javascript console would have shown you those files as missing)

    Also, the line:

    <script  type="text/javascript" language="javascript1.2">.2">
    

    Has an extra .2"> on the end of it (but that might be a cut/paste error posting here)

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a groovy/grails application that needs to serve images It works fine on
I'm still working on my first Grails application. This time, my problem is to
I have defined a layout, 'mainTemplate' for my grails application. I use g:layoutHead (so
I would like to use yui3 with a grails 2 web application but the
I have a Grails application that is deployed on a Tomcat 6 server. The
i use webflow in a my grails application, i have 2 tables with relation
I have one grails application.In that I have one model class named Book. From
Let's say we have a grails web application exposing several resources. tags urls users
I have some text area field in my grails application. I got the following
I have two grails servers: Server - has read/write access to the database Web

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.