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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T22:02:40+00:00 2026-06-04T22:02:40+00:00

Developing a site with Yii framework. When I type keywords to search in the

  • 0

Developing a site with Yii framework.

When I type keywords to search in the GridView filter input box and then hit Enter – the form is not submitted to the server.
But hitting Tab or clicking with a mouse outside the input field – does work.

The problem is in IE and Opera. Firefox is fine.

EDIT

dInGd0nG suggested this forum topic with a workaround for similar problem but jquery.yiigridview.js code has changed since the post of that workaround. It now uses on() function instead of live().

The code is pretty different now, I’m not sure I’ll be able to come up with new workaround myself.
Can anybody adapt that patch for current jquery.yiigridview.js?

So, as far as I understand, this is the piece that handles submition of filter input.

$(document).on('change', inputSelector, function () {
    var data = $(inputSelector).serialize();
    if (settings.pageVar !== undefined) {
        data += '&' + settings.pageVar + '=1';
    }
    $('#' + id).yiiGridView('update', {data: data});
});

It works in Firefox and doesn’t work in IE or Opera.

Any ideas how to fix it?

EDIT 2

I came up with this to make IE and Opera send filter request on hitting Enter key.

if($.browser.msie || $.browser.opera) {
    $(document).on('keypress', inputSelector, function(event){
        if(event.keyCode == 13) {
            var data = $(inputSelector).serialize();
            if (settings.pageVar !== undefined) {
                data += '&' + settings.pageVar + '=1';
            }
            $('#' + id).yiiGridView('update', {data: data});
        }
    });
} 

But it’s kinda ugly.

  • 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-04T22:02:41+00:00Added an answer on June 4, 2026 at 10:02 pm

    This is an issue with jquery as stated here. That page also has a work aorund. Have a look at this forum post too.

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

Sidebar

Related Questions

I'm developing a site using the CakePHP framework. I have a form which shows
I am developing website with PHP Yii Framework and I am now stack, I
I am developing site using codeigniter.I have a form which contains add button and
Im developing a site where its users can search for other users on the
I am developing a site using asp.net and C# ( framework 1.1 ). Theres
I am developing a site in plone and am currently writing a form using
I'm developing a CMS using Yii Framework. In developing the theme I have a
I'm developing a CMS using yii framework. There is a frontend and backend. I
I am developing site with WordPress and I'm newbie for WordPress. WP adds <p>
I am developing a site using Silverstripe, and a part of the site requires

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.