473,386 Members | 1,736 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

http adjustment needed please.

13
Hi, how to make this alert the response text in a divider with the id of
"content" instead of the whole page of "test.txt" ? It works fine as it stands now, I just need it to show text in a div only and not the whole test.txt page. Thank you very much.


<script type="text/javascript" src="http://www.mooonbaby.com/test.js"></script>
<script type="text/javascript">
xmlhttp.open("GET", "test.txt",true);
xmlhttp.onreadystatechange=function() {
if (xmlhttp.readyState==4) {
alert(xmlhttp.responseText)
}
}
xmlhttp.send(null)
</script>
Dec 8 '06 #1
1 1073
Tami
13
I tried this but its still looking for a page not a divider.

</style>
<script type="text/javascript" src="http://www.mooonbaby.com/test.js"></script>
<script type="text/javascript">
document.getElementById("update_div");
xmlhttp.open("GET", "update_div",true);
xmlhttp.onreadystatechange=function() {
if (xmlhttp.readyState==4) {
alert(xmlhttp.responseText)
}
}
xmlhttp.send(null)
</script>
</head>
<body>
<div id="update_div">Testing this text to see if it appears. But it doesn't.</div>
</body>
</html>
Dec 8 '06 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

0
by: Niels | last post by:
Everytime I make an adjustment in one of my ASP.NET pages the corresponding .resx file (with in it all my defined resources) gets cleared. So I have to re-enter all of it again... Is this a bug...
0
by: Cindy B | last post by:
Please send your resume and position to Cindy@AtlanticResource.com! I CAN NOT accept candidates that ARE OUTSIDE OF THE US! NO PHONE CALLS PLEASE! Email your resume to me! Position:SQL...
15
by: Cheryl Langdon | last post by:
Hello everyone, This is my first attempt at getting help in this manner. Please forgive me if this is an inappropriate request. I suddenly find myself in urgent need of instruction on how to...
1
by: Charles Wilson | last post by:
Can someone point me to some good instructions on using the WinInet.dll functions from VBA? I need to interact with a MySQL database via HTTP strings. We already have the database set up and a...
0
by: Gabriel Lozano-Morán | last post by:
Here is my problem description: We have a Java Portal from there a user can click on a certain aspx page. There is some kind of authentication mechanism that can be compared to a...
10
by: rup | last post by:
Hello, This is my first application on socket programming in vc++. I am facing problem that how to make connection to server, & make GET/POST request by HTTP. Please help me. Its urgent.......
0
by: bbqbbq | last post by:
Hi guys, I need a way to automatically adjust the layout of window's content when the window's size get changed. For example, I am creating a web page using ASP.NET. However, when I drag the...
5
by: vamsioracle | last post by:
Hi All I ahve a responsiblity called HR officers, which is the subset of standard HRMS. It has only the following Employee self service. Now i want to add total compensation --> global...
0
by: vamsioracle | last post by:
Hi all I have done a setup for a new absence type. Now my client wants to add balance to the existing leave balance. So i created an element with the following details Element Name: CTO leave...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.