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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T23:17:33+00:00 2026-05-26T23:17:33+00:00

i have a problem with python script and javascript script in a website. I

  • 0

i have a problem with python script and javascript script in a website. I have this website http://www.orangedropdesign.com/progetti/default/ and in the source i can view this script:
`

var idDebitoPubblico = "debito";
var idDebitoTesta = "Testa";
var valoreInizialeDebito = Math.round(1449.361*1321693021);
var incremento = 851; //8515 a sec
var valoreCorrente = valoreInizialeDebito;
var valoreTesta;

function incrementaDebitoPubblico(){
var el = document.getElementById(idDebitoPubblico);
valoreCorrente += incremento;
var importo = applicaSeparatore(valoreCorrente);
el.innerHTML = importo;

valoreTesta = valoreCorrente/60700000;
var procapite = applicaSeparatore(Math.round(valoreTesta*100)/100);
document.getElementById("testa").innerHTML = procapite;

setTimeout(incrementaDebitoPubblico, 100);
}

setTimeout(incrementaDebitoPubblico, 100);

function applicaSeparatore(importoNumerico){  
  var importo = importoNumerico.toString();
  importo = importo.replace(".", ",")  
  if(importo.length>3){ 
    importo = importo.split('',importo.length).reverse().join('').replace(/([0-9]     {3})/g,'$1.');  
    importo = importo.split('',importo.length).reverse().join(''); 
  }  
  return importo;  
}  

How can I read the website and use “importo” variable with a Python script?

  • 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-26T23:17:33+00:00Added an answer on May 26, 2026 at 11:17 pm

    Get your basics right.
    Javascript is client-side.
    Python is server side. Make this clear.

    So basically how can these two access variables of each other. In simple terms not possible.

    The only workaround it to explicitly send that variables content via an ajax call.

    This might help you :
    http://api.jquery.com/category/ajax/

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

Sidebar

Related Questions

The problem I have is that I have this Python script to launch a
Problem: I have a python script that I have running as a service. It's
Folks, I have a problem. I am a writing a script in python which
I notice this thread: Fastish Python/Jython IPC , and I have a similar problem,
The problem is basically this, in python's gobject and gtk bindings. Assume we have
I'm trying to solve the following problem: Say I have a Python script (let's
I usually script/program using python but have recently begun programming with JavaScript and have
I have Jenkins running a python script that makes some SVN calls, my problem
Here is my problem: I have got a Python build script that executes several
I have been writing a python script and I am having a problem with

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.