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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 10, 20262026-05-10T22:03:40+00:00 2026-05-10T22:03:40+00:00

I am using the following html page: <html> <head> <title>AJAX Example</title> <meta http-equiv=Content-Type content=text/html;

  • 0

I am using the following html page:

<html>  <head>  <title>AJAX Example</title>  <meta http-equiv='Content-Type' content='text/html'; charset='iso-8859-1'>  </head>  <script language='JavaScript' src='ajaxlib.js'></script>  <!--define the ajax javascript library-->  <body>  Click this <a href='#' OnClick='GetEmployee()'>link</a> to show ajax  content (will be processed backgroundly without  refreshing whole page)<br/>  <!--a href=# OnClick=GetEmployee() is the javascript event on a  link to execute javascript function (GetEmployee) inside ajaxlib.js-->  <div id='Result'>< the result will be fetched here ></div>  <!--javascript use GetElementById function to replace the data  backgroundly, we use <div> tag with  id Result here so javascript  can replace this value-->  </body>  </html> 

The Javascript is here: http://www.nomorepasting.com/getpaste.php?pasteid=22046

And the PHP is here: http://www.nomorepasting.com/getpaste.php?pasteid=22047

The problem is, everything seems logical and there are no errors, but the javascript does not seem to be called, and calling the php file directly gives a result such as this:

Well the characters will not even paste in apparently…., but lots of little boxes with like this:

10 01 
  • 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. 2026-05-10T22:03:41+00:00Added an answer on May 10, 2026 at 10:03 pm

    For starters, your getEmployee() function should return false; to prevent the default action on the <a>. The little boxes thing seems to imply that the character sets aren’t matching up. Make sure that the HTML page and the PHP page both use the same character set. I’d suggest trying to make everything UTF-8.

    Edit: misread slightly – I think it’s the character set PHP is outputting doesn’t match the character set in your database.

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

Sidebar

Ask A Question

Stats

  • Questions 514k
  • Answers 514k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer You should replace the ArrayList with an ObservableCollection<string> which will… May 16, 2026 at 6:11 pm
  • Editorial Team
    Editorial Team added an answer I would personally do this with a regex and group… May 16, 2026 at 6:11 pm
  • Editorial Team
    Editorial Team added an answer The iPhone 4 can be much slower when it comes… May 16, 2026 at 6:11 pm

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

Related Questions

When you execute following example using Firefox 3: <html> <head> <script language=javascript type=text/javascript> <!--
I have the following file file: <html> <head> <title></title> <script type=text/javascript src=/Prototype.js></script> <script type=text/javascript>
I'd like to inject jQuery into a page using the Google AJAX Libraries API,
We've tried to dynamically update our rss-links (using JavaScript) in the head section of
i'm using the following code to submit a form: function submitfilter(){ alert(in here); var
I have an HTML page where I want to change Image & Link with
I am creating a Word format .doc using the following code, then cfheader and
Im using the following jQuery, which sets the id of the last item in
How would I do the following, preferably just using CSS (but possibly jquery too)
I have a masterpage that render's the following PartialView: <% Html.RenderPartial(AddPage); %> AddPage Controller

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.