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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T02:48:28+00:00 2026-05-24T02:48:28+00:00

In my programme, there are textview button scrollview and webview. All of them write

  • 0

In my programme, there are textview button scrollview and webview. All of them write by java except webview(write by html js/jquery). Is that availabe to trigger some javascript when I click button(clicklistener write by java android google api)?
Basically, my programme receives some data from tcp response (json type data) and save in a json file. jquery library plot retrieve that file and draw graph. There are two buttons. One is for retrieving data and another one is drawing graph. Because they and java and javascript. Is there any way when I click the retrieving button, the graph will auto drawing? How to interact java and javascript?
Thanks!!!

  • 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-24T02:48:29+00:00Added an answer on May 24, 2026 at 2:48 am

    You can run JavaScript from java in your webview this way:

    onCreate I do this:

    webView = (WebView)findViewById(R.id.webView1);
    webView.getSettings().setJavaScriptEnabled(true);
    webView.loadUrl("http://www.google.de/");
    

    On click on a button this happens:

    public void onClick(View v) {
        webView.loadUrl("javascript:document.bgColor = '#a00';");
    }
    

    Should change the bg-color of your document to red which works perfectly fine for me with google.de

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

Sidebar

Related Questions

I've heard that there are some things one cannot do as a computer programmer,
Is there a program that will print a nicely formatted tree from XML data?
Are there any programs that will allow you to follow a sql transaction through
i have written a programme like helloworld, is there any way i can commit
this is ma program.in this program on delete button there didnt perform onclick listener
I have a null pointer on a button that I need to take me
I hav a programme, which must work differently for linuxthreads and nptl. Are there
I am currently working on a (legacy) programme that has been written in C++
There are many skills a programmer could have (understanding the problem, asking good questions,
Is there a tutotial or help file, suitable for a beginner c# programmer to

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.