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

  • Home
  • SEARCH
  • 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 6637577
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T23:19:55+00:00 2026-05-25T23:19:55+00:00

Hi I am trying to invoke a url using JQUery with parameters appended to

  • 0

Hi I am trying to invoke a url using JQUery with parameters appended to it. The values of the parameters are from the text fields in the dialog box on the page. When I invoke the url with no values filled in the parameter (i.e url inside if) it execute fine, but when I enter values in the dialog box and run it gives me groovy.lang.MissingMethodException.
I alert the url in both cases and the values are displayed appropriately.
I am also handling the 3 params accordingly in the controller def runUserReport
Here is the code Snippet

 function runJasperReport() {  
var myurl="";  
var from_date=$('#from_date').val();  
var to_date=$('#to_date').val();  
var user_id=$('#user_id').val();  
if(!from_date ||!to_date ||!user_id)  
                                   {  
                        myurl='/gra/reports/runUserReport?fromdate=&todate=&userid=';  
                    }  
                    else{  
                        myurl='/gra/reports/runUserReport?fromdate='+from_date+'&todate='+to_date+'&userid='+user_id+'';  
                           }  
   alert(myurl);  
jQuery.ajax({  
      url: myurl,  
      dataType: 'html',  
      timeout: 3000,  
      beforeSend: function() {  
          jQuery('#demo').html('<center><div style="width: 70px; height: 100px; display: inline-block;margin-top: 120px;"></div></center>')
      },
      success:function(data,textStatus){  
          jQuery('#demo').html(data);  
      },  
      error:function(XMLHttpRequest,textStatus,errorThrown){}  
  });  
  return false;  

Error Received:

groovy.lang.MissingMethodException: No signature of method: gra.ReportsController.$() is applicable for argument types: (gra.ReportsController$_closure8_closure9)   values: [gra.ReportsController$_closure8_closure9@22d90078]  
Possible solutions: is(java.lang.Object), any(), use([Ljava.lang.Object;), any(g
roovy.lang.Closure), getG(), wait()  
  • 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-25T23:19:56+00:00Added an answer on May 25, 2026 at 11:19 pm

    Your request to the URL

    /gra/reports/runUserReport

    is telling grails that there should be a reportsController with a method runUserReport on it. However, grails is saying that the url is calling for the method $(), i.e. so your request looks like

    /gra/reports/$()

    Something is happening between when you set the url and fire the request. Look in webkit/firebug and the ajax that gets sent and verify that the url is what you think it is.

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

Sidebar

Related Questions

I was trying to invoke a webservice from phonegap android app using jQuery .ajax
I am trying to invoke webservice using jquery ajax call. I am using jasonp
I'm trying to invoke a spring web service, using below url in browser the
I am trying to use Desktop .browse() to invoke a URL, this works fine
I'm trying to invoke a method from another class that means I want to
So I am trying to invoke methods on a page and I know the
I am trying to invoke an ANT target from Windows (right-click) file context menu.
I'm currently trying to invoke a web service from a web application that I've
I m trying to invoke a URL in C#, I am just interested in
I'm new to android... having trouble trying to open a URL from a live

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.