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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 18, 20262026-05-18T07:37:29+00:00 2026-05-18T07:37:29+00:00

i am using the jquery for developing my system. for particular functionality i am

  • 0

i am using the jquery for developing my system.
for particular functionality i am sending link through json data to have link for each row
of jqgrid table.
as

"<a href='#' class='ui-icon ui-icon-pencil' onclick='EditClick(\"" + {MYPRIMARY KEY}+ "\");return false;'>Edit</a>"

in javasript i have function as

function EditClick(param) 
{          
    $('#mainDiv').load('/contoller/action/' + param, function() {
    });
    return false;
}

here action returns the view().

in this EditClick function i am loading another page in my main div.

This runs on IE7,firefox smoothly,but using it on IE8 sometimes its works sometimes not.
i mean sometime required page loads in main div sometimes not.
i realy dont understand the problem.
please guide me through this.
thank you.

  • 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-18T07:37:30+00:00Added an answer on May 18, 2026 at 7:37 am

    I had a few problems working with jgGrid events a row.
    What I did was to add a custom button:

    jQuery("myGrid").navGrid('#myPager', { edit: false, add: false, del: false, search: false }, {}, {}, {})
        .navButtonAdd('#myPager', { caption: "Do something", buttonicon: "ui-icon-note", 
            onClickButton: function() { var rowid = jQuery("myGrid").jqGrid('getGridParam', 'selrow'); 
                if ((rowid == null) || (rowid == 0)) { 
                    alert("Select a row before!"); } 
                else { 
                    EditClick(rowid); 
                    } 
                    }, position: "last" })
    

    As you can see the function EditClick is triggered only if you’ve selected one row in the grid. rowid should be your primary key.

    Hope it helps.

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

Sidebar

Related Questions

I'm developing an web application using asp.net MVC and jQuery. I have in my
I'm developing a web-app in Rails using jQuery where a lot of the processing
I'm developing a web app in asp.net mvc using jquery, the language of application
I'm using jQuery ajax to give the user some visual validation feedback. I have
I am developing a web app that accesses some external JSON data. I'm currently
I am using jQuery and a plugin called Galleriffic to display some images and
I have a div container, and I call it "content_container". This container is able
I am currently developing a site which requires a print option on the page.
I'm more of a designer by trade, but I can usually hold my own

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.