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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T03:03:16+00:00 2026-06-14T03:03:16+00:00

I am getting html from a server dynamically. When a user loads certain html

  • 0

I am getting html from a server dynamically. When a user loads certain html I want to override the functionality of the listview filtering like this:

    $("#myList").listview('option', 'filterCallback', function (text, searchValue) {
    //console.log(text);  
    $("li[data-groupoptions]").removeClass('override-ui-screen-hidden');
    $("li[data-groupoptions*="+searchValue.toLowerCase()+"]").addClass('override-ui-screen-hidden');
    return text.toLowerCase().indexOf( searchValue ) === -1;
});​

The problem is when I inject this code into my javascript it breaks all my javascript. I have a syntax issue here or I am not calling this right or something.

I want to add this code to this function I have in place

   function loadA() {

        ClearDescendant().success(function () {
            loadPage("apls", "alData", "alHeader", "alFooter");

         //ADD IT HERE????

        });
    }

How do I simply have this code available to run “in case” there is html on the page with a listview that has an id of “mylist” sometime “loadA()” doesnt return a listview with id “mylist” but the code is simply breaking besides that. I am not sure on how to call or where to put this code so its available when if html is returned from “loadPage()” that has “myList” in it

the code works fine here
http://jsfiddle.net/DCkDp/25/

  • 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-14T03:03:17+00:00Added an answer on June 14, 2026 at 3:03 am

    Does it break when you put the listview declaration inside a load handler function:

    $("#myList").load( function() { 
    
         // insert listview override here.
    
    });
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am getting some HTML text from a remote server which I am displaying
I am getting some unexpected behavior from Html.EditorFor(). I have this controller: [HandleError] public
How can i get Image tag from html String. I am getting description like
i am getting reply from server as xyz.innerHTML='blah blah'; in blah blah i want
I keep getting this error: DataTables warning: JSON data from server could not be
I am getting some HTML from server and showing in Textview. The HTML have
I've following function for getting HTML template from server and replacing some tags $.ajax({
I want to append the html contents receiver back from the sever (server 2)
I am getting DataTables warning: JSON data from server could not be parsed. This
I have a JSON object returned from server. It looks like this : {1:{id:1,name:autos},

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.