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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T21:57:27+00:00 2026-06-02T21:57:27+00:00

I have a basic jQuery webpage that shows off some basic features, however there

  • 0

I have a basic jQuery webpage that shows off some basic features, however there are some not so basic components as well. Some of my portions of the page require SQL queries via external PHP pages. These pages are feed into the main webpage via a GET, then inserted into a div. The code design to perform this action is shown below:

function changeSystem(sysName)
{
    pageReq = "menu/"+group+"/"+sysName+".php";
    $("#thesys").load(pageReq);
    stylize();
}

Stylize was created into a function to describe my styles (call via the function above and though the page creation):

function stylize()
{
    $("#form").submit(function(event) {event.preventDefault();});
    $(".tabs").tabs();
    $("button").button();
    $(".radioset").buttonset();
    $(".sortable").sortable();
    $(".sortable").disableSelection();
    $(".accordion").accordion();
}

The response returns some buttons and fields according to the page creation. The code works great, to a point. The content is displayed, however the returned content is not stylized like all the other jQuery objects on the rest of the page. They show up as traditional buttons and fields throwing off the look and feel of the page. If I replace the automated content with static imbedded content, the buttons appear appropriately stylized. Do I need to call a specialized jQuery method to correct the style of this page for this new content?

EDIT:

The style that I am referring to is jQuery’s theme via http://jqueryui.com/. The bordering style, colors and sizes do not carry over into the generated content. The theme of the buttons seem to resemble the default html theme.

SECOND EDIT:

Thank you pilotcam for those great recommendations. I have implemented your second recommendation with great success, however the second one I am still working on. The progress is shown above.

  • 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-02T21:57:29+00:00Added an answer on June 2, 2026 at 9:57 pm

    If you are using jQuery functions to style your original page, you’ll need to do the same with the dynamically loaded content. For example:

    $("#myButton").button();
    

    You might also consider using the jQuery load() function instead of using XMLHttpRequest directly. (although that won’t help the issue at hand)

    $("#thesys").load("menu/"+group+"/"+sysName+".php");
    

    If you need to do something after the load completes, you can add a callback to your stylize() funciton as follows:

    $("#thesys").load("menu/"+group+"/"+sysName+".php", stylize);
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I currently have a very basic JQuery script accompanied by some CSS that helps
I have written a very basic jquery script that is true theorically but not
I have a django project, but for some reason basic jquery isn't working. <html>
I have a basic jQuery function going on: $(#selector).click(function(){ $(#target).append(Some text to be added...);
I have a basic jquery-ui dialog widget that is set to execute on a
I have a basic webpage set up and I would like to use jQuery
I have a very basic jquery mobile modal dialog that INTERMITTENTLY reloads on clicking
I have some pretty basic jQuery code: ... $(this).find('img').load(function(){ loadedImages++; if(loadedImages == $this.find('img').length){ ...
I have a basic JsonResult method that is being called by a jQuery $.ajax
I have the most basic jquery function of them all, but I couldn't find

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.