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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T21:50:49+00:00 2026-05-13T21:50:49+00:00

I was having problems with the DOM since elemnets inside of google visualization tables/graphs

  • 0

I was having problems with the DOM since elemnets inside of google visualization tables/graphs were loaded before jQuery.
Therefore, i realized that i need to load google visualization before jQuery .ready()..

Loading Google visualization is done by:

google.load("visualization", "1", {packages:["linechart","table","piechart"]});
google.setOnLoadCallback(drawGraph);

How can I make sure Google visualizaion is loaded BEFORE running the .ready() function?

Thanks,
Joel

  • 1 1 Answer
  • 2 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-13T21:50:50+00:00Added an answer on May 13, 2026 at 9:50 pm

    You can define document.ready inside a function and it’ll fire when called if it’s already ready, like this:

    google.load("visualization", "1", {packages:["linechart","table","piechart"]});
    google.setOnLoadCallback(myLoad);
    
    function myLoad() {
      drawGraph();
      $(document).ready(function() {
       //Stuff here
      });
    }
    

    It should be noted here though, you might not need document.ready at all, you could just stick the contents in this same function.

    Alternatively, you could stick the drawGraph(); call as the first thing in your .ready().

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

Sidebar

Related Questions

I'm trying to create a jQuery plugin and having problems with selecting the DOM.
Im having problems getting at the HTML5 video tag with jQuery. Here is my
Im having problems with classpaths. I have used them before with import but I'm
I am having some strange problems loading content from another XHTML page via jQuery.
I am having problems getting jQuery to click on the images in the footer
I'm having problems with debugging DOM changes introduced by some JavaScript code I'm running.
I'm having some problems grokking the .end() function in jQuery. The docs I've read
I'm having problems with the jQuery .height() function. Final result should be an div
I'm having the weird problem that after having javascript inject some dom-elements the css-rules
Having problems with a small awk script, Im trying to choose the newest of

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.