hielo 65 Veteran Poster

you are passing only three parameters. For post, your third parameter should be only the php script that processes the request(without the querystring parameters) and the fourth parameter should be the "querystring" data. Try:

send_to_host('humbot.freewebhostingpro.com','POST','/index.php','a=5');
hielo 65 Veteran Poster

in PHP you use a period to concatenate/join strings:

$stringData = $myname . ": ". $mymessage . "\n";
hielo 65 Veteran Poster

>>I knew about the RegExe() objec
It's RegEx() NOT RegExe()

>>Thank you!
You are welcome

hielo 65 Veteran Poster

Use the RegExp contructor. It accepts two arguments:
1. the regular expression pattern
2. reg ex options (g=global, etc)

var _regex = new RegExp( "^" + _inputText.value, "i");

NOTE: If your expression were:

var x = /^\d+$/ig

if you use the RegExp object you will need to escape the slash:

var x = new RegExp("^\\d+$","ig");

The same applies for the other shortcuts (\s, \w, etc)

hielo 65 Veteran Poster

1. Open Windows Explorer, and choose Folder Options from the Tools menu.

2. On the View tab, scroll to the bottom of the Advanced Settings and clear (click) the check box next to "Use Simple File Sharing."

3. Click OK to apply the change, and you should now have a Security tab when viewing the properties of a file on an NTFS volume.

hielo 65 Veteran Poster

If you are not receiving all the data, it's possible your server's POST limit is too low for your needs. If you are using PHP, look for:

; Maximum size of POST data that PHP will accept.
post_max_size = 8M

in your php.ini file and adjust it accordingly

hielo 65 Veteran Poster

you are welcome

hielo 65 Veteran Poster

>>How to give full control
Right Click the folder in question > Properties > Security tab > IUSR_machineName

Let permissions propagate to sub-folders as well

hielo 65 Veteran Poster

you cannot call the function directly. You need to call a server-side script an pass arguments to the script. Then process those arguments and do whatever you need to do depending on the values of said arguments - ex:

<a href='fileRemover.asp?id=3'>Test.txt</a>

then in fileRemover.asp you check a "lookup table" of valid file names:

<%
Dim theFiles,id
'provide list of files
theFiles = "file0.txt;file2.txt;file3.txt,file4.txt"
theFiles = split( theFiles,";")

'id of clicked link
id = Request("id")
If IsNumeric(id) Then
  If NOT IsEmpty( theFiles(id) ) Then
    Response.Write("Deleting File" & theFiles(id) )

   'if you have a function  that accepts the name 
   'of the file to  be deleted then just call it - ex
  deleteFile( theFiles(id) )
  End If
End If
%>
hielo 65 Veteran Poster

You will need to give full control to the Folder where the file resides to the IUSR_<machineName> (Where machine name is the name of your computer) user account.

hielo 65 Veteran Poster

you are welcome

hielo 65 Veteran Poster

try this for tabs.htm:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
	<head>
		<title>Tab Demo</title>
		<link rel="stylesheet" href="manage.css" type="text/css" media="screen">
		<script type="text/javascript" src="manage.js"></script>
		<script type="text/javascript">
		window.onload=start;
		
		function start(){
			initTabs('data',Array('Menu'),0,100,100,false);
		}
		</script>
	</head>
	<body>

	<form id="editor" method="post" action="?&">
		<div id="data">

			<div class="dhtmlgoodies_aTab">
				<h1>Admin Area</h1>
				<hr />

				<p class="cmsSiteMap">
					<ul>
						<li>
							<a href="#" onclick="deleteTab('Content');deleteTab('Images');deleteTab('Search Engine Stuff');deleteTab('Ownership');deleteTab('Preview');deleteTab('Save');createNewTab('data','Content','','content.htm');createNewTab('data','Images','','images.htm');createNewTab('data','Search Engine Stuff','','seo.htm');createNewTab('data','Ownership','','ownership.htm');createNewTab('data','Preview','Preview');createNewTab('data','Save','','save.htm');showTab('data','1');return false">pages/rrr.html</a>
						</li>
					</ul>
				</p>
			</div>
		</div>
	</form>
	<div id="loading"></div>
	</body>
</html>
hielo 65 Veteran Poster

on what you posted, you need quotes around the email addresses:

myMail.From="mymail@mydomain.com"
myMail.To="someone@somedomain.com"

Also, this is not right:
myMail.Sendset

The "Set" should be on the start of the next line:

myMail.Send
Set myMail=nothing

>>uploaded this script (as an .asp file) on a free asp-supported remote server
>>>CDO.Message.1error '80040220'
The "SendUsing" configuration value is invalid.
Do you know if the server is running a local smtp server? Most likely it is NOT. On the tutorial page you posted, you basically need to use the last example, but you need to modify:
"smtp.server.com"

with the value of the appropriate smtp server. Contact your webhost and ask them what is their smtp address. As documented on the comment of that example:
'Name or IP of remote SMTP server

you can use either an IP address OR a domain name.

Vladimirr commented: very informative and helpful +3
hielo 65 Veteran Poster

another problem you are likely to encounter is that on line 38:

updateAjax();

you are NOT passing any parameter to your function. After looking at the start of your function:

function updateAjax(b){
var inputText = b.value;
...
}

your function expect an argument (most likely a reference to a form field element). Since you are currently are NOT passing any arguments, b is undefined. Hence:

var inputText = b.value;

should give you an error as soon as the request completes.

hielo 65 Veteran Poster

refer to the makePOSTRequest on the following page:
http://www.captain.at/howto-ajax-form-post-request.php

hielo 65 Veteran Poster

on line 34 of the code you posted you are NOT checking to see if the request has completed. The iteration portion of the code you posted looks right, but when you make an ajax request, the onreadystatechange fires multiple times. You need to call your update function only when the request has completed. Try changing line 34 to:

httpRequest.onreadystatechange = function() {  if(httpRequest.readyState !=4)return; response = httpRequest.responseText;

if the problem persists, try alerting the length of your json array right after you execute your eval to verify that the string you are returning from your ajax request was actually converted to an object:

var testObj = eval('( '+response+' )');
alert(testObj.results.length);
hielo 65 Veteran Poster

try:

...
case 'param2':
this.target="";
targetURL="http://www.google.com";
break
...

hielo 65 Veteran Poster
SELECT idpersona, Max(idcategoria) as categoria, Max(datapagamento) as pagamento, Max(datascadenza) as scadenza 
FROM personacategoria  
WHERE NOW( ) 
BETWEEN datapagamento 
AND datascadenza 
GROUP BY idpersona
ORDER BY idpersona
hielo 65 Veteran Poster

refer to the demo on the following link:
http://digitalbush.com/projects/masked-input-plugin/

hielo 65 Veteran Poster

In your inner if you have this:

a[i].document.getElementById('td').innerHTML='<div class="js-kit-comments" permalink=""></div>'; && ...

which is doing assignment(single equal sign), not testing(two equal signs). Furthermore, that semicolon should be giving you errors. I believe it should be:

if( a[i].document.getElementById('td').innerHTML=='<div class="js-kit-comments" permalink=""></div>' ...
hielo 65 Veteran Poster

If your fields have names such as "input[]", you do not need to provide any numbers inside the brackets. That naming convention (adding brackets at the end of the field name, is necessary for PHP processing, but on the client-side, those brackets are part of the name). Refer to the full example below:

<!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>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>
</style>
<script language="JavaScript" type="text/JavaScript">
function toggle(status){ 
	var chk = document.getElementsByName("ad_pages[]");
	
	for(var i=0,limit=chk.length; i < limit; ++i)
	{
		chk[i].checked = !chk[i].checked;
	}
 
} 
 
 
</script>
</head>
 
<body> <form>
            <table border="0" align="center" cellpadding="3" cellspacing="3" bgcolor="#F3F3F3">
                         
                         <tr>                            
                              <td width="10"><label><input name="ad_pages[]" type="checkbox" id="ad_pages[]" value="1"  ></label></td>
                              <td width="180"> English</td>
                              <td width="10"><label><input name="ad_pages[]" type="checkbox" id="ad_pages[]" value="2"  ></label></td>
                              <td width="180">Maths</td>
                              <td width="10"><label><input name="ad_pages[]" type="checkbox" id="ad_pages[]" value="3"  ></label></td>
                              <td width="180">Science</td>
                              <td width="10"><label><input name="ad_pages[]" type="checkbox" id="ad_pages[]" value="4"  ></label></td>
                              <td width="180">Technology</td>
          </tr>   
                  </table>                          
             <table width="500" border="0" align="center" cellpadding="5" cellspacing="5">
                              <tr>
                                <td><div align="center">
                                  <input name="toggleAll" type=button class="formbutton" onClick="toggle()" value="Toggle All">
                                </div></td>
                              </tr>
</table></form>
</body>
</html>
hielo 65 Veteran Poster

From your problem description it is not clear if you have a select list within a div ( or some other element) with id="ChtPlc". At any rate, the following code should do what you are aiming if your HTML code is similar to the following:

<div id="ChtPlc">
<select onchange="getInfo();"><option value="1">alpha</option><option value="2">beta</option></select>
</div>

Your javascript codewould then be:

var http = createRequestObject();
function createRequestObject(){
	var request_=null;
	if( window.XMLHttpRequest )
		request_ = new XMLHttpRequest();
	else if( window.ActiveXObject)
		request_ = new ActiveXObject("Microsoft.XMLHTTP");
return request_;
}

function getInfo(){
    http.open('GET', 'Rooms_Func.php?id=23');
    http.onreadystatechange = handleInfo;
    http.send('');
}
function handleInfo(){
    if(http.readyState == 4){
        var response = document.createTextNode(http.responseText);
        document.getElementById('ChtPlc').appendChild(response);
    }
}
hielo 65 Veteran Poster

You have the right syntax. Just save your program as eigenValues3.js and then if you want to write a program that needs that file you just "import" it as follows:

<html>
<head>
<script type="text/javascript" src="eigenValue3.js"></script>
<script type="text/javascript">
//The code that will use the functions in eigenValue3.js goes here
</script>
</head>
<body>...
</body>
</html>

Note: 1. You do not have to do the "import" within the <head> tag. It could have done withing the <body> tag.
2. <script> tags that are used to import files cannot enclose javascript code (or at least this was the case last time I tested this about 1yr ago). That's why I have two <script> tags above. The first one to import the file. The second to write my code for my local/current page.
3. You do not need language="javascript". Providing type="text/javascript" will suffice.

hielo 65 Veteran Poster

Try this:

<script>
<!--
var counter=0;
//specify random links below. You can have as many as you want
var randomlinks=new Array()

randomlinks[0]="http://mysite/page/file"
randomlinks[1]="http://mysite/page/file"
randomlinks[2]="http://mysite/page/file"
randomlinks[3]="http://mysite/page/file"
randomlinks[4]="http://mysite/page/file"

function randomlink(){
window.location=randomlinks[counter];
counter = (++counter)%randomlinks.length;
}
//-->
</script>
hielo 65 Veteran Poster

Typically the data is stored in a password protected medium. Most of the times it is onto a database and whether all the data is encrypted or not is entirely up to you. For example a nickname may not be as "top secret" as a password or a credit card number, so you may choose not to encrypt it. Thus, you may choose some of the fields on database table, but not necessarily all of them. Of course, if you choose to encrypt everything, your system will be quite secure, but you pay performance price since it takes time to encrypt the data, although on a low volume server you may not notice the impact.

hielo 65 Veteran Poster

Try this:

<?php
$c=OCILogon("scott", "tiger", "orcl");
  if ( ! $c ) {
    echo "Unable to connect: " . var_dump( OCIError() );
    die();
  }

$sqlString = "select * from personTable where firstname='" . $_POST['firstname'] . "' and lastname='" . $_POST['lastname'] . "' and emailaddress='" . $_POST['emailaddress'] ."'");
$mydupcheck = OCIParse($c, $sqlString);

OCIExecute($mydupcheck);


$nrows = oci_fetch_all($mydupcheck, $results, 0, 1);


if($nrows)
{
   echo "Duplicate entry";
}
else
{
	$sqlString="INSERT INTO personTable (firstname,lastname,emailaddress) VALUES ('" . $_POST['firstname'] . "','" . $_POST['lastname'] . "','" . $_POST['emailaddress'] . "'";
	$s = OCIParse($c, $sqlString);
	OCIExecute($s, OCI_DEFAULT);
	echo "Record successfully entered";
}
?>
hielo 65 Veteran Poster

For the sake of clarity, let me start out with a couple of examples. If you were to navigate to:
http://www.somesite.com?name=John
the browser contacts that server and sends data without encrypting it(cookies, url parameters, etc). On the other hand if you

navigate to:
https://www.somesite.com?name=John
the browser will encrypt the data sent to the server. Notice the "s" (as in "Secure") in "https".

Thus, you must make sure the html pages or scripts are submitting data via https.

Potential security pitfall: Let's assume that you set up a form at www.somesite.com/page1.htm
and its code is as follows:

<html>...
<form action="page1.php">
<input type="text" value="" name="name"/>
</form>...
</html>

If from the home page of the site you provide a link to it as follows:
https://www.somesite.com/page1.html
when the user clicks on it and submits the form, the browser will ultimately submit the form to:
https://www.somesite.com/page1.php

which is a secure form. Since in the "action" attribute you did not specify a protocol nor domain, the browser will "fill in the blank" with whatever is in the browser's address bar at the time. In this case, the form would "inherit" the "https" protocol and the "www.somesite.com" domain.

However, once the user is at https://www.somesite.com/page1.html, there is nothing preventing him/her to edit the protocol to http. Doing so would effectively cause the browser to ultimately send the form to:
http://www.somesite.com/page1.php

…

hielo 65 Veteran Poster

Try this:

$sql="SELECT * FROM users WHERE username='" . $myusername . "' and password='" . $mypassword . "'";
$result=mysql_query($sql);


$info = mysql_fetch_array($result, MYSQL_ASSOC);

// If result matched $myusername and $mypassword, table row must be 1 row
if(count($info)==1){
	if ((int)$info['verified'] == 0) {
		$url = "notverified.php";
		$redirect = "other";
		} 
	elseif ((int)$info['verified'] == 2){
		$url = "suspended.php";
		$redirect = "other";
		}
	elseif ($myusername == "10001" && !($redirect == "other"))
		{$url = "change.php";
		}
	elseif (!($myusername == "10001") && !($redirect == "other"))
		{$url = "my.php";
		}
	session_register("myusername");
	session_register("mypassword"); 
}else
	{$url = "login.php";}
echo("<script>
	<!--
	location.replace(\"".$url."\");
	-->
	</script>");
hielo 65 Veteran Poster

PHP will not interfere with the HTML because PHP is interpreted by the server, while HTML is interpreted by the Browser. The browser does not see the PHP code.

That aside, you can use frames in the sense that the browser will not forbid you from using it. However, it will not behave as you expect it. What you need to use is the iframe instead of the <frameset><frame></frameset>


With the setup that you have <frameset>...</frameset>, the <form> would need to be in one of the framed pages (f1.html or f2.html). Most likely you are looking for a setup as shown below

<html>
<head></head>
<body bgcolor="pink">
<iframe name="top" width="25%" src="f1.html"/>
<iframe name="left" width="75%" src="f2.html"/>
<form method="get" action="welcome.php">
<b>loginID</b><input type="text" name="loginID" size="30">
<br>
<br>
<b>password</b><input type="text" name="password" size="30">
<br>
<br>
already a user
<br>
<a href=f3.php>new user register</a>
</form>
</body>
</html>.
hielo 65 Veteran Poster

We cannot guess what you are looking at. Please revise your problem description and provide details.

hielo 65 Veteran Poster

The "hard" (and wrong) approach would be to first query the database to check for the existence of the record and insert it only if no record exists. But the right way to approach this is through referential integrity.

hielo 65 Veteran Poster

The best approach is to have the DB enforce Referenctial Integrity. Basically you instruct the database at design time NOT to allow duplicates for certain records ever. IF such an attempt is made, the db server will not carry out the operation. Look at these:

http://www.google.com/search?hl=en&client=firefox-a&rls=org.mozilla:en-US:official&sa=X&oi=spell&resnum=0&ct=result&cd=1&q=Referential+Integrity+in+Oracle&spell=1

hielo 65 Veteran Poster

IF all you see on the browser is:
Cool! My own server home page.

Then your server is running correctly. The browser will not display the HTML markup. As a matter of fact, if you really want to see the html markup, open your page via Firefox and hit Ctrl+U to view the HTML, OR in IE, click View > source.

hielo 65 Veteran Poster

You just need to worry about a server-side script to process the file you want to upload. Refer to the following page for such script:
http://www.pscode.com/vb/scripts/ShowCode.asp?txtCodeId=7361&lngWId=4

The fact that your file is PDF really makes no difference. I know it saves the files to specified folder on the filesystem, but if does not support db, you instead of saving the pdf to the database, you can just save the path of the pdf on your filesystem. Of course, you can always choose to first save it to the filesystem first and once that is done save it to your db as binary and then delete it from your filesystem. So, you have lots of options. You just need to decide which route to go.

hielo 65 Veteran Poster

You have the SQL statement in two
separate lines. VBScript is interpreting the end of line as the end of statement.
You can:
a. remove the new line character so that all in on a single line

SQL = "INSERT INTO CDNumber (nCDNumber, tCDDescription, bStockorMiscImages) VALUES ('"&u_CDNum&"','"&u_CDDesc&"','"&u_CDStock&"')"

OR
b. append and underscore at the end of the first line so that when VBSCRIPT sees it, it knows the statent continues on the next line.

SQL = "INSERT INTO CDNumber (nCDNumber, tCDDescription, bStockorMiscImages) _
VALUES ('"&u_CDNum&"','"&u_CDDesc&"','"&u_CDStock&"')"
hielo 65 Veteran Poster

You just need to add spaces:

<%@ Language=VBScript %>

<%
Option Explicit
%>

<%
' -----------------------------------------------------
' CDONTS Email send script
' © http://www.designplace.org/
' Comments must remain intact for re-use of this code
' -----------------------------------------------------

dim strFName, strLName, strEmailOne, strEmailTwo, strSchoolName, strAddress, strCity, strState, strCountry, strZipcode, strMessage, strQuestion1, strQuestion2,strQuestion3

strFName = Request.Form("fname") ' holds inputted first name
strLName = Request.Form("lname") ' holds inputted last name
strSchoolName = Request.Form("schoolname") ' holds inputted school name
strAddress = Request.Form("address") ' holds inputted school address
strCity = Request.Form("city") ' holds inputted school city
strState = Request.Form("states").Item ' holds selection of states
strZipcode = Request.Form("zipcode") ' holds zipcode or postal code
strCountry = Request.Form("country").Item ' holds selection of Country either Canada and United States
'strEmailOne = Request.Form("emailOne") ' holds inputted email address
strEmailTwo = Request.Form("emailTwo") ' holds inputted email address
strMessage = Request.Form("message") ' holds inputted message
strQuestion1 = Request.Form("edulevels").Item ' drop down list selection
strQuestion2 = Request.Form("OS").Item ' drop down list selection
strQuestion3 = Request.Form("softwareFormats").Item ' drop down list selection


dim objMail

Set objMail = Server.CreateObject("CDO.Message")
'Set objMail = CreateObject("CDONTS.NewMail")

' -- email variables --
objMail.From = Trim("feedback@avanquestusa.com")
objMail.To = Trim(strEmailTwo)
objMail.Subject = "Promotional Code for Avanquest Software Educator Perks Program"
'objMail.BodyFormat = "0" ' HTML format
objMail.TextBody = "Thank you " & Trim(strFName) & Trim(strLName) & " for submitting your application to Avanquest Software Educators Perks Program." & vbCrLf _
& vbCrLf _
& "School Information " & vbCrLf _
& vbCrLf _
& "School Name: " & Trim(strSchoolName) & …
hielo 65 Veteran Poster
hielo 65 Veteran Poster

Try this:

SQL = "SELECT tbl_Order.Status FROM tbl_Order WHERE Customer.CustomerID = " & Session('userid')
SQL = SQL & asp_CustomerID & " AND Customer.CustomerID = tbl_Order.CustomerID"
hielo 65 Veteran Poster

If you insist with the iframes, you may want to look at the following suggestions:
http://www.google.com/search?q=auto-resize+an+iframe&ie=utf-8&oe=utf-8&aq=t&rls=org.mozilla:en-US:official&client=firefox-a

Also, I don't know what you mean by "..get my div layout back?".

Personally, I would rethink my strategy and use server-side includes. Iframes as too problematic. Think longterm maintenance. Do you want to be running into these unexpected problems every time you update your content? I wouldn't.
Good Luck.

hielo 65 Veteran Poster

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title></title>
</head>
<body>
<script type="text/javascript"><!--

for(var i=41; i<=67; ++i)
document.write( eval("'\\u00"+i+"';"));
//--></script>
</body>
</html>

hielo 65 Veteran Poster

Building on what you already have, you would just need to add the desired <span> or <div>, assign it an id, an update that <span> or <div> based on its id value. I have used txt3 on the code below on a <p> tag instead:

<html>
<head>
<title>Key Events Example</title>
<script type="text/javascript">
function handleEvent(e)
{
	e = e || window.event;
	var FirstTextbox = e.srcElement || e.which;
	var SecondTextbox = document.getElementById("txt2");
	SecondTextbox.value = FirstTextbox.value;
	//this makes a copy of input on txt3, regardless of tag name
	document.getElementById("txt3").innerHTML =FirstTextbox.value; 
}

</script>
</head>
<body>
<p>Type some characters into the first textbox.</p>
<p>
<input type="textfield" id="txt1"
onkeydown="handleEvent()"
onkeyup="handleEvent()"
onkeypress="handleEvent()" ></input></p>
<p><textarea id="txt2" rows="15" cols="50"></textarea></p>
<p id="txt3"></p>
</body>
</html>
hielo 65 Veteran Poster

You can use the "Scripting.FilesystemObject" to create your file and write data to it.
<%
dim fs,fname,overwriteContents,unicode,ascii
overwriteContets=true;
unicode=true
ascii=Not Unicode

set fs=Server.CreateObject("Scripting.FileSystemObject")
set fname=fs.CreateTextFile( Server.Mappath("myLog.txt"),overwriteContents,ascii)
fname.WriteLine("Hello World!")
fname.Close
set fname=nothing
set fs=nothing
%>

hielo 65 Veteran Poster

Here is shorter alternative:

<%@language="vbscript"%>
<table border="1">
<%
dim csv_to_read, fso, act

csv_to_read="states.csv"
set fso = createobject("scripting.filesystemobject")
set act = fso.opentextfile(server.mappath(csv_to_read))

'Read the first line of the csv, typically these are colum headings
Response.Write "<tr><th>" & replace(act.readline,",","</th><th>") & "</th></tr>" & vbCrLf

'Read the rest of the csv
Response.Write "<tr><td>" & replace(replace(act.readall,vbCrLf,"</td></tr>"&vbCrLf&"<tr><td>"),",","</td><td>") & "</td></tr>"
%>
<caption>Total Number of Records: <%=act.Line-1%></caption>
</table>

BTW, my states.csv looks as follows:

name,abbreviation
Illinois,IL
Indiana,IN
Ohio,OH
hielo 65 Veteran Poster

What exactly are you trying to do. The email code does not make sense. The only bug on your code that imports the csv information is that it never writes the last line of the csv file to the browser. You need to change:

total_num_imported=ubound(total_split_text)
to:
total_num_imported=ubound(total_split_text)+1

Here is how I would do it:

<%@language="vbscript"%>
<table border="1">
<%
'dim csv_to_read, fso, act, imported_text,split_text, total_imported_text,total_split_text,total_num_imported
dim csv_to_read,counter,line,fso,objFile

csv_to_read="states.csv"
counter=0
set fso = createobject("scripting.filesystemobject")
set objFile = fso.opentextfile(server.mappath(csv_to_read))

Do Until objFile.AtEndOfStream
    line = split(objFile.ReadLine,",")
    counter=counter + 1
    
    Response.Write "<tr>"
    if counter > 1 Then
		for i=0 to ubound(line)
			Response.Write "<td>"&line(i)&"</td>"
		next
    else
		for i=0 to ubound(line)
			Response.Write "<th>"&line(i)&"</th>"
		next
    end if
    Response.Write "</tr>" & chr(13)
Loop
objFile.Close
%><caption>Total Number of Records: <%=counter-1%></caption>
</table>
hielo 65 Veteran Poster

>>I have heard that AJAX is a way to get a page to refresh when a MySQL db has changed.

Just so we are clear, most likely the statement about was referring to the case where the user submits some changes via AJAX, the server receives the changes, immediately updates the db, makes a query to obtain the updated content, and returns new content from the db, which may include the changes made by other users (possibly one or two milliseconds before the current user's post). But the server responds only to a client at a time. The one that made the request and posted data. Once the client script receives the "updated" data from the server, the script will update the client's interface.

hielo 65 Veteran Poster

When an AJAX request is complete, the connection between the script and the server is closed. The communication dynamics is just like that between the browser and the server.

Once the connection is closed, the server does not know who just asked for whatever resource, so it cannot notify any of its clients of new changes. You would need to do it as you are currently doing, polling/checking periodically for changes to the db.

On another note, the funtionality that you are looking for I have seen it but with applets on the client side and Tomcat web server on the back end. Not sure if you want to pursue that, but that would be the way to go.

Basically you would be creating a "Chat application" where the users only get to chat with your application (as opposed to other users). When the user chats, the server application receives the message and saves it to the db. As soon as the data is saved, the server sends a "chat message" to all the users. Instead of saying "You have new data. Refresh Now", the server would just "push" the updated info to the clients. The client application would "erase" the old data and update with the new data.

hielo 65 Veteran Poster

I think you are looking for the title attribute:
<a href="" title="Look at me"><img src=""/></a>
or:
<a href=""><img src="" title="Look at me"/></a>

It can be used on the <a> and/or the <img> tags.

hielo 65 Veteran Poster

A page that changes and/or creates its content on the browser, typically based on the users input/feedback/response.
The content is typically inserted with javascript but it is not the only option. The limitation is on the user's browser. For example, IE support vbscript as well.

The most popular way to create a dynamic content right now is AJAX. Search for "AJAX Tutorials" or "AJAX Examples" on Google and you will get tons of results.

hielo 65 Veteran Poster

You need to add a name attribute to the iframe:
index.html
<iframe id="iframeid" name="iframeid" src="checkid.html"></iframe>

checkid.html
<script type="text/javascript">alert(window.name);</script>

hielo 65 Veteran Poster

Since you are using <a> as an anchor rather than as a link, you could instead change the <a name="PAGE2">
to a <div id="PAGE2"> AND wrap it around all the relevant <p> elements. Essentially you are grouping the <p> elements with a <div>. If using the <div id="PAGE2"> "breaks" your layout, you can instead try this:
<div id="PAGE2" style="display:inline;">...</div>

With this change, a link that used to take the user to #PAGE2 with the <a name="PAGE2"> will still work with the <div id="PAGE2">. Notice that the div uses an id, not a name.

With this setup, the javascript should be similar to what you had. Here is a complete example:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN"
 "http://www.w3.org/TR/REC-html40/strict.dtd">

<html>
<head>
<title></title>
<script type="text/javascript"><!--
	function getChildren(parentNode, childrenType)
	{
		var ingrates=null;
		if( typeof(parentNode)=="string" )
			parentNode = document.getElementById(parentNode);
		if( parentNode )
		{
			ingrates = parentNode.getElementsByTagName(childrenType);
		}
	return ingrates;
	}
	
	window.onload= function(){
		var x = getChildren("PAGE2", "p") || [];
		if( x.length )
		{ 
			var data = "";
			var i=-1;
			while(x[++i])
			{
				data += x[i].innerHTML +"\n";
			}
			alert("Children of Page2: " + x.length + "\n"+data);
		}
		else
		{
			alert("No kids for PAGE2");
		}
		var p3=document.getElementById("PAGE3")
		var y = getChildren( p3,"p") || [];
		alert("Children of Page3: " + y.length);
	}
	//--></script>
</head>
<body>
	<div id="PAGE2">
		<p class="verdana">Six Paragraph </p>
		<p class="verdana">Seven Paragraph </p>
		<p class="verdana">Eight Paragraph </p>
		<p class="verdana">Nine Paragraph </p>
	</div>
	<div id="PAGE3">
		<p class="verdana">Ten Paragraph </p>
		<p class="verdana">Eleven Paragraph </p>
	</div>
</body>
</html>