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

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 am using jQuery and Ajax. My MainFile has the following code: <html> <head>
I'm using the following html to load dojo from Google's hosting. <script src=http://www.google.com/jsapi></script> <script
Given the URL (single line): http://test.example.com/dir/subdir/file.html How can I extract the following parts using
I'm using the following to grab some updated HTML and insert it into a
I having trouble in dividing the HTML frames. I have been using the following
I am following a VB tutorial to do some HTML manipulation using LINQ It
I'd like to inject jQuery into a page using the Google AJAX Libraries API,
I am using the following code for a php page, while I am receiving

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.