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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T14:52:50+00:00 2026-06-13T14:52:50+00:00

Possible Duplicate: Could not complete the operation due to error 80020101. IE I’m facing

  • 0

Possible Duplicate:
Could not complete the operation due to error 80020101. IE

I’m facing a little problem with my jQuery code.

I have a first page with some fields like :
[Code 1] [Code 2] [Code 3]

The user type something in one of the input, I get the result that I load in another page with .load method. Here’s the code :

$(function() {
    $("#code_cip").autocomplete({
            source: tab,
            minLength: 6,
            delay: 1000,
            select: function(event, ui) {
                        var selectedObj = ui.item;
                        $("#code_cip_ind").val(selectedObj.value);
                        $("#test").load("test.php?id="+selectedObj.value);
            }
        });
    });

This, works great. It correctly load the “test.php” page with the good values.
BUT… In the test.php page I have a form, and I try to fill it like this :

test.php :

<?php
    $gest_medecin = new gest_medecin($db);
    $medecin = $gest_medecin->returnValues();
    $adresse = $medecin->Adresse;
    echo $adresse // This, output the good value of the attribut
?>
<script>
    adresse = <?php echo $adresse;?>;
    alert(adresse);
    $("#adresse").val(adresse);
</script>
<input name="adresse" id="adresse" type="text" />

The problem is :
When I try to alert the “adresse” var, or use it with my .val method, I get the error 80020101 in IE, and in Firefox, nothing is happening…

I tried to fill the variable with some test string like this :

adresse = <?php echo "123456" ?>

And that works great…
As mentioned I checked that the $medecin->Adresse was correct with my echo and it is. It contains something like “word1 word2”

I really have no clue why my code isn’t working…

Any help ?

  • 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-06-13T14:52:51+00:00Added an answer on June 13, 2026 at 2:52 pm

    Always look at the final result to spot the error.

    You are missing quotes around

        adresse = "<?php echo $adresse;?>";
    

    strings always need quotes.

    it worked with 123456 because that is an integer value that needs no quotes.

    Firefox will tell you this in its error console with a better error message.

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

Sidebar

Related Questions

Possible Duplicate: Could not allocate memory My following code runs fine: double weight [600]
Possible Duplicate: Error: could not find function … in R I find various references
Possible Duplicate: Error: could not find function … in R Question: why do my
Possible Duplicate: Error: could not find function … in R I am trying to
Possible Duplicate: javax.mail.MessagingException: Could not connect to SMTP host: smtp.gmail.com, port: 25; I am
Possible Duplicate: What does “WARN Could not determine content-length of response body.” mean and
Possible Duplicate: “Cross-thread operation not valid” exception on inner controls I am a beginner
Possible duplicate, but providing no insight to this case: The multi-part identifier could not
Possible Duplicate: Starting 2 emulators in android i could not start second emulator when
Possible Duplicate: Dropbox could not dismiss modal view controller I am integrating dropbox in

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.