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

  • Home
  • SEARCH
  • 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 673777
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 14, 20262026-05-14T00:38:00+00:00 2026-05-14T00:38:00+00:00

i am developing a gadget and i am using JavaScript to change innerHTML of

  • 0

i am developing a gadget and i am using JavaScript to change innerHTML of span, but after some operations i need to read that value. Additionally i am using pre-entered value for spans but when i try to read new data function loads pre-entered one.
Is there any solution for that?

JS:

function read_write(condition,filename){
    var fso  = new ActiveXObject('Scripting.FileSystemObject');
    var fh = fso.OpenTextFile(System.Gadget.path+'\\'+filename+'.txt',condition, true,-2);
    if (condition == 1) {
    var result = fh.ReadLine();
    return result;      
    } 
    else if (condition == 2) {
    var spn1 = document.getElementById('span1').innerHTML;
    fh.WriteLine(spn1+','+document.getElementById('span2').innerHTML);
    }
    fh.Close();
}

HTML:

<table id="sonuc">
  <tbody>
    <tr>
      <td style="width:50%" valign="top">
        <span class="result" id="span1"></span><br/>
        <span class="result" id="span2"></span>
      </td>
    </tr>
  </tbody>
</table> 
  • 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-14T00:38:00+00:00Added an answer on May 14, 2026 at 12:38 am

    If you’re using innerHTML to write to the span element, you should be able to use it again to read. How are you trying to read until now?

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

Sidebar

Related Questions

Developing a project of mine I realize I have a need for some level
Developing for iPhone, I have a collection of points that I need to make
Developing a chrome extension using javascript is one of my university projects. I don't
The Windows desktop gadget I'm developing requires some configuration on first run, so when
Developing a series of POCOs on my project, and just realized that some of
When developing Rails project using Textmate , there are some related modes. When pressing
We're developing a kind of gadget with usb connection but would not to force
I'm developing a windows sidebar gadget that calls out to a wcf service via
Im developing a webapp that is feeded via a server. Its index presents some
I'm developing a google gadget which needs to display one way if it is

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.