Details would help greatly and please do not link me to other websites because that will just confuse me even more. Thanks!
The answer that is below this is too confusing for me. Please somebody explain with detail how I can do this...
i just started working with AJAX to add some functionality. This is the code i have so far. The php code just echos text it receives from the database- (last line is echo $bid;) Ive been working with php and have tested it so i know its right. could there be any other issues? Thanks.
xmlHttp.onreadystatechange=function()
{
ajaxmessage = document.getElementById("ajax_message").innerHTML;
currentBid = document.getElementById("current_bid");
currentBidder = document.getElementById("current_bidder");
if (xmlHttp.readyState==3) {
ajaxmessage="Incoming Bid...";
} else if (xmlHttp.readyState==4) {
currentBid.firstChild.nodeValue=xmlHttp.responseText;
}
}
url = window.location.search.substring(1);
limit1 = url.indexOf("id")+3;
limit2 = url.indexOf("&username");
if (limit2 <= limit1) {
limit2=300;
}
url_id=url.substring(limit1-limit2);
xmlHttp.open("GET"-"getbid.php?id="+url_id-true);
xmlHttp.send(null);
ajaxmessage = url_id;
}
body.onclick=ajaxFunction();
<?
header("Cache-Control: no-cache- must-revalidate");
// Date in the past
header("Expires: Mon- 26 Jul 1997 05:00:00 GMT");
include( functions.php );
mysql_new();
$_GET[id]=$id;
$sql = "SELECT * FROM bids WHERE sale_id = ".id." ";
$query_select = mysql_query($sql) or die(mysql_error());
//define variables so .= works
$bids = "";
$i = 0;
while ($select_row = mysql_fetch_array($query_select)) {
//get all the bids for it BID must be int
$bid = $select_row[ bid ];
$bidder = $select_row[ bidder ];
$highbidder[$i] = $select_row[ bidder ];
//$id_2 = $select_row[ id ];
$bid_id[$i] = $select_row[ id ];
//bid_num- which will hold the bids
$bids[$i] = $bid;
$i++;
}
//find the highest bid- highbidder- and their id
$highbid = 0;
for ($a = 0; $bids[$a] <= $i ; $a++) {
if ($highbid < $bids[$a]) {
$highbid = $bids[$a];
$hb_id = $bid_id[$a];
$high_bidder = $highbidder[$a];
}
}
$highbid = $response;
echo $response;
?> the php code is pretty simple imo
In 1951 Dr. Mohammed Mossadegh was duly elected President of Iran and on March 15th of that year- nationalized the oil fields. Their sovereign right. Britain didn t like the loss of their control on the Iranian oil industry. The British govenment asked the United States and President Harry Truman about taking action to remove Mossadegh. Truman refused. In 1952- Britain asked Eisenhower and in 1953 the CIA in "Operation Ajax" removed Iran s president and replaced him with the Shah.
No one to blame but a Republican President and jolly old England.
Manchester United
Liverpool
Chelsea
Arsenal
Real Madrid
Barcelona
Valencia
Inter Milan
AC Milan
Juventus
Roma
Byern Munich
Glasgow Rangers
Celtic
Lyon
Ajax
Sporting Lisbon
also bare in mind three get relegated
I am trying to learn server-side technologies using ajax and i need to find this program on my computer to use ASP.net! Any suggestions? They said its on the windows OS.
(IIS) Internet Information Services
cajunspike1959: That did it- unfortunately i do need the disk- so now i have to go ask one of the "tech guy" for it. Thanks
Hello-
I checked on Monster and apparently a "Web Content Engineer" is worth about $150k / yr - $12-500 / mo- (http://monster.salary.com/salarywizard/layoutscripts/swzl_compresult.asp?jobcode=IT10000130&jobaltername=Content+Engineer+III+-+Web&jobtitle=Content+Engineer+III+-+Web&narrowdesc=&narrowcode=IT02&zipcode=&metrocode=156&statecode=CA&state=California&pagenumber=1&searchpage=&searchtype=&geo=San+Francisco%2C+CA ) but I am wondering if anyone can give me figures on what a more specialized javascript/dhtml/ajax focused developer is worth these days.
No comments:
Post a Comment