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 8245533
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T22:12:30+00:00 2026-06-07T22:12:30+00:00

I have a master js file ( say name : my-dataTables.js ) and accessing

  • 0

I have a master js file ( say name : my-dataTables.js ) and accessing it from view (groovy) which is calling functions from my-dataTables.js.

proto.dataTable = {
    'filterOptions': function( selectedFilter ) {

        var dCodes = "" ;
        var dCodes2 = "";  

        if ( selectedFilter == 'test1'  ) 
        {
            dCodes = "something 1";
            dCodes2 = "something 2";
        }
        else 
        {
            dCodes = "something 2";
            dCodes2 = "something 1";
        }

        return {
        'dCodes': dCodes,
        'dCodes2': dCodes2
        };  
 }

And to access them from view ( groovy):

$('#filter-status').change(function () {
    var filterOptions = proto.dataTable.filterOptions($(this).find('option:selected').text());

    var dCodes = filterOptions.dCodes;
    var dCodes2 = filterOptions.dCodes2;

    alert(dCodes + " isRegex : " + dCodes);
});

Working fine on IE, means “proto.dataTable.filterOptions” was called and returned expected value on IE. But on Firefox, it looks like that it reached $(‘#filter-status’).change(function () but not inside proto.dataTable.filterOptions(). And NO error message. Not sure what I am missing. Can any one help?

  • 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-06-07T22:12:32+00:00Added an answer on June 7, 2026 at 10:12 pm

    The code is fine. It was browser cache issue. I cleaned up the cache and the code worked as expected.

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

Sidebar

Related Questions

I have a master build file which is calling other build.xml files of different
Let's say that I have a file core.clj in branch master at HEAD which
Let's say I have a file that's Modified in master Modified in a feature
I have a Master Page which has an associated css file. On one of
I'm working on a branch, say "experimental", which I branch out from my master
I have two files: master/newsletter1/file.html master/newsletter2/file.html newsletter1/file.html has a lot of new changes that
I have merged master into my bugXY branch, and needed to merge a file.
I have a dependencies section in my master build.gradle file subprojects { dependencies {
I have a file in my master git branch called 'Readme.' The file has
on my master page, I have referenced jquery file. I am doing simple hover

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.