Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
including user defined javascript function in GSP
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  3 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post will appear after it is approved by moderators
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
kouser neyaz  
View profile  
 More options Apr 13 2011, 8:59 am
From: kouser neyaz <kouser.ne...@gmail.com>
Date: Wed, 13 Apr 2011 05:59:58 -0700 (PDT)
Local: Wed, Apr 13 2011 8:59 am
Subject: including user defined javascript function in GSP
Hello All,
I am new to Grails and getting some issues,i am unable to include
javascript
in gsp page.I would appreciate if any one could share code to call
javascript function from textField and calendar datePicker.I need to
call a
javascript function onblur() or onfocus() or any other user defined
function.
please let me know if you need any more clarification.
Thanks in advance

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Gaurav  
View profile  
 More options Apr 14 2011, 7:56 am
From: Gaurav <m...@gauravchauhan.com>
Date: Thu, 14 Apr 2011 04:56:04 -0700 (PDT)
Local: Thurs, Apr 14 2011 7:56 am
Subject: Re: including user defined javascript function in GSP
Include the javascript file in your header.

<g:javascript src="myFile.js"/>   //It must be inside js directory
otherwise use other forms of tag

Now you can easily call the functions you have defined inside your js
file.

Let us know if you face any issue.

On Apr 13, 5:59 pm, kouser neyaz <kouser.ne...@gmail.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Yagnesh Chawda  
View profile   Translate to Translated (View Original)
 More options Apr 14 2011, 9:54 am
From: Yagnesh Chawda <yagnesh.cha...@gmail.com>
Date: Thu, 14 Apr 2011 06:54:20 -0700 (PDT)
Local: Thurs, Apr 14 2011 9:54 am
Subject: Re: including user defined javascript function in GSP
Hey,
  Please have look at http://www.dariopardo.com/grails/jquerydatepickergrailstag/
You can write the HTML in taglib inline into gsp if you ant fine
control because of any reasons. In that case you wont be using taglib.

Thanks And Regards,
Yagnesh Chawda.
:  http://yagneshchawda.blogspot.com/
: http://twitter.com/yagneshchawda

***************************************************
Good planets are hard to find. Print less!
Save energy to keep your future bright !!
***************************************************
"Earth provides enough to satisfy every man's need,
but not every man's greed." - Mahatma Gandhi
***************************************************

On Apr 13, 5:59 pm, kouser neyaz <kouser.ne...@gmail.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »