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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T15:31:26+00:00 2026-05-27T15:31:26+00:00

This is actually an Adobe AIR app, but since the problem I’m having is

  • 0

This is actually an Adobe AIR app, but since the problem I’m having is with very basic JavaScript, I thought I should put it here.

Here is the code:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>KM Ciclo de Servicio</title>
<link href="css/style.css" rel="stylesheet" type="text/css" />
<link href="css/ciclo.css" rel="stylesheet" type="text/css" />
<script src="script/jquery-1.7.1.min.js" type="text/javascript"></script>
<script type="text/javascript">
function changefield()
{
    #('#ciclo').append('ASD');
}
</script>
</head>
<body oncontextmenu="return false;">
<div id="topMenu">
    <button class="menuItem" id="new" title="Nuevo"><img src="images/new.png" alt="Nuevo"/></button>
    <button class="menuItem" id="save" title="Guardar"><img src="images/save.png" alt="Guardar"/></button>
    <button class="menuItem" id="open" title="Abrir"><img src="images/open.png" alt="Abrir"/></button>
    <input type="text" value="Momento cambiado" onkeypress="changefield()"/>
        <div style="display: inline-block; float: right;">
        Nuevo:
        <button class="menuItem" id="momento">Momento</button>
        <button class="menuItem" id="atributo">Atributo</button>
    </div>
</div>
<div id="main" align="center">
    <div id="ciclo"></div>
</div>
<script src="script/init.js" type="text/javascript"></script>

</body>
</html>    

This is the function I’m trying to call:

<script type="text/javascript">
function changefield()
{
    #('#ciclo').append('ASD');
}
</script>

However, my terminal tells me there’s an error on line 20, which is:

<input type="text" value="Momento cambiado" onkeypress="changefield()"/>

The error says:

ReferenceError: Can’t find variable: changefield
onkeypress at app:/index.html : 19

I have checked some tutorials on JavaScript functions to make sure (including the one at w3schools), and there doesn’t seem to be anything wrong. I am calling the function exactly how these tutorials suggest I do so.

Any ideas on what’s going on?

  • 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-27T15:31:26+00:00Added an answer on May 27, 2026 at 3:31 pm

    The proper syntax is this:

    function changefield()
    {
        $('#ciclo').append('ASD');
    }
    

    This was a javascript syntax error:

    #('#ciclo').append('ASD');
    

    which caused the changefield function to not be defined.

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

Sidebar

Related Questions

I understand that 2 options are available: Non-persistent Persistent But what does this actually
This is actually a non-critical question, but I get this warning most of the
Problem This question actually came up at work today. We are planning an experiment
We've all seen this: javascript:document.body.contentEditable='true'; document.designMode='on'; void 0 But my question is, how does
What does this actually do? I recently branched out my project from 1 app
Simple question - what does this actually do? var oq = (ObjectQuery<TEntity>)L2EQuery; return ExecuteFirstorDefault<TEntity>(oq,
I have seen code like this (actually seeing another person type it up): catch
If I use INT(12) vs INT(10) or INT(8) what will this actually do in
referring to yesterday's post, this woke me up this morning. Why does this actually
This is actually a two part question. First,does the HttpContext.Current correspond to the current

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.