I simplified the test scripts:
http://testingsite.prose-n-poetry.com/scripts/test1.php
Includes this:
Code:
<script type="text/javascript">
//Step 2: Define a "callback" function to process the data returned by the Ajax request:
function processGetPost(){
var myajax=ajaxpack.ajaxobj
var myfiletype=ajaxpack.filetype
if (myajax.readyState == 4){ //if request of file completed
if (myajax.status==200 || window.location.href.indexOf("http")==-1){ //if request was successful or running script locally
if (myfiletype=="txt")
document.getElementById("my_contests").innerHTML = myajax.responseText;
}
}
}
//Step 3: Invoke the Ajax routine method to make the desired Ajax request.
ajaxpack.getAjaxRequest("/iframes/my_contests.php/<? echo $AAuthorID ?>", "", processGetPost, "txt")
</script>
http://testingsite.prose-n-poetry.com/scripts/test2.php
Includes this:
Code:
<script type="text/javascript">
//Step 2: Define a "callback" function to process the data returned by the Ajax request:
function processGetPost(){
var myajax=ajaxpack.ajaxobj
var myfiletype=ajaxpack.filetype
if (myajax.readyState == 4){ //if request of file completed
if (myajax.status==200 || window.location.href.indexOf("http")==-1){ //if request was successful or running script locally
if (myfiletype=="txt")
document.getElementById("my_awards").innerHTML = myajax.responseText;
}
}
}
//Step 3: Invoke the Ajax routine method to make the desired Ajax request.
ajaxpack.getAjaxRequest("/iframes/my_awards.php/<? echo $AAuthorID ?>", "", processGetPost, "txt")
</script>
http://testingsite.prose-n-poetry.com/scripts/test3.php
includes both
Code:
<script type="text/javascript">
//Step 2: Define a "callback" function to process the data returned by the Ajax request:
function processGetPost(){
var myajax=ajaxpack.ajaxobj
var myfiletype=ajaxpack.filetype
if (myajax.readyState == 4){ //if request of file completed
if (myajax.status==200 || window.location.href.indexOf("http")==-1){ //if request was successful or running script locally
if (myfiletype=="txt")
document.getElementById("my_contests").innerHTML = myajax.responseText;
}
}
}
//Step 3: Invoke the Ajax routine method to make the desired Ajax request.
ajaxpack.getAjaxRequest("/iframes/my_contests.php/<? echo $AAuthorID ?>", "", processGetPost, "txt")
</script>
<script type="text/javascript">
//Step 2: Define a "callback" function to process the data returned by the Ajax request:
function processGetPost(){
var myajax=ajaxpack.ajaxobj
var myfiletype=ajaxpack.filetype
if (myajax.readyState == 4){ //if request of file completed
if (myajax.status==200 || window.location.href.indexOf("http")==-1){ //if request was successful or running script locally
if (myfiletype=="txt")
document.getElementById("my_awards").innerHTML = myajax.responseText;
}
}
}
//Step 3: Invoke the Ajax routine method to make the desired Ajax request.
ajaxpack.getAjaxRequest("/iframes/my_awards.php/<? echo $AAuthorID ?>", "", processGetPost, "txt")
</script>
Each function fine individually but when both calls are made the first is ignored or passed over.
I do see errors in the FF error Console:
Error: mismatched tag. Expected: </br>.
Source File: http://testingsite.prose-n-poetry.co...ests.php/1952?
Line: 48, Column: 3
Source Code:
</body>--^
but looking at the code I see no errors. I'm confused.
Thanks for any help.
Usagi
P.S. I do realize that I could do basically the same thing with IFrames. The main difference
is that with IFrames I cannot make the output into links to Javascript popups.
Bookmarks