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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 14, 20262026-05-14T06:35:37+00:00 2026-05-14T06:35:37+00:00

I have a function Load() in a js file which I added to the

  • 0

I have a function Load() in a js file which I added to the GWT module.

I am trying to call it using

private static native void load() /*-{
   $doc.Load();
}-*/;

but it gives me error like

Error(s) occurred! (TypeError): $doc.Load is not a function fileName: http://localhost:8888/myapp/888C05FB242806B071A932498F6B5AD9.cache.html lineNumber: 1224

I even tried with $wnd.Load()

What the proper way of calling it?

  • 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-14T06:35:38+00:00Added an answer on May 14, 2026 at 6:35 am

    Igor is correct. Consider the following snippet from the host HTML file:

    <html>
      <head>
        <meta http-equiv="content-type" content="text/html; charset=UTF-8">
        <link rel="stylesheet" type="text/css" href="resources/css/gxt-all.css" />
        <script language="JavaScript">
        function dostuff() {
            alert("Stuff is being done.");
        }
        </script>
    
        <!--                                                               -->
        <!-- Consider inlining CSS to reduce the number of requested files -->
        <!--                                                               -->
        <link type="text/css" rel="stylesheet" href="GxtSandbox.css">
    

    And the following snippet from GWT code:

    public void onModuleLoad() {
        doGwtStuff();
    }
    
    public native void doGwtStuff() /*-{
        $wnd.dostuff();
    }-*/;
    

    This alert is shown.

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

Sidebar

Related Questions

I have a index.html file which loads html files. $('#content').load(url,function() {}); Inside those html
I am using wicket 1.5.x and trying to load a css file which will
I have a page that is using jQuery to load an XML file, which
I have a load of php templates which uses a custom translate function __,
I have a c++ program which performs one function. It loads a large data-file
So there I am trying to load an external .js file which in return
I have a function which loads a class or file. It works something like
I have a function to load a html part into a element in main
I have this class that have a function to load other classes and create
I have a data-upload function that load some data into several tables and processes

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.