IPB
Your FREE membership includes:
  • A friendly community where you can come to chat
  • Receive completely FREE quality web hosting!
  • Get reviews and suggestions for your websites!
  • Take part in competitions where you can win prizes from cash, vouchers, or win special unadvertised hosting

Welcome Guest ( Log In | Register )


Shortcut links:
Profile
Personal Photo
Rating
 
Options
Options
Personal Statement
ChaoYang doesn't have a personal statement currently.
Personal Info
ChaoYang
Starter Member
Age Unknown
Gender Not Set
Location Unknown
Birthday Unknown
Interests
No Information
Statistics
Joined: 5-January 07
Profile Views: 88*
Last Seen: 5th January 2008 - 03:12 AM
Local Time: Dec 2 2008, 02:50 PM
75 posts (0 per day)
Contact Information
AIM No Information
Yahoo No Information
ICQ No Information
MSN No Information
Contact Private
* Profile views updated each hour

ChaoYang

Members


Topics
Posts
Comments
Friends
My Content
9 Jun 2007
How to post through ajax?
This is my code when request a page that contains a form.
CODE
<script language="javascript" type="text/javascript">
function InitAjax()
{
var ajax=false;
try {
  ajax = new ActiveXObject("Msxml2.XMLHTTP");
} catch (e) {
  try {
   ajax = new ActiveXObject("Microsoft.XMLHTTP");
  } catch (E) {
   ajax = false;
  }
}
if (!ajax && typeof XMLHttpRequest!='undefined') {
  ajax = new XMLHttpRequest();
}
return ajax;
}

function getcontent(file)
{
if (typeof(file) == 'undefined')
{
  return false;
}
var url = file;
var show = document.getElementById("content");
var ajax = InitAjax();
ajax.open("GET", url, true);
ajax.onreadystatechange = function() {
  if (ajax.readyState == 4 && ajax.status == 200) {
   show.innerHTML = ajax.responseText;
  }else{
   if (ajax.readyState == 4 && ajax.status == 404) {
    show.innerHTML = "Page Not Found";
   }else{
    show.innerHTML = "Loading...";
   }
  }
}
ajax.send(null);
}  
</script>

<a href="java script:getcontent('form.php')">form</a>
<div id="content"></div>

then i want to post the form through ajax.
is it possible to do that?
7 Jun 2007
Ya, how much time you spend and what you spend it on. For me:
about 8 hours in the holiday...
its really... biggrin.gif
20 May 2007
will this uses the bandwidth if we visit through this address?

http://cp11.thtdomains.com/~username
or
http://208.101.50.135/~username
6 May 2007
how to enable gzip in a site using php?
is it true that this can reduce the bandwidth usage and speed up site loading time?
30 Apr 2007
CODE
<?php
  // Establish a connection to the MySQL DBMS
  $connection = mysql_connect("localhost", "fred", "shhh");
  // Use the winestore database
  mysql_select_db("winestore", $connection);

  // Run a query through the connection
  $result = mysql_query("SELECT cust_id, surname,
        firstname FROM customer", $connection);

  // Fetch each row of the results into an array $row
  while ($row = mysql_fetch_array($result))
  {
     echo "ID:\t{$row["cust_id"]}\n";
     echo "Surname\t{$row["surname"]}\n";
     echo "First name:\t{$row["firstname"]}\n\n";  
  }
?>

how many queries does this code does?
is it depends on the number of result or only one query?
Last Visitors
ChaoYang has no visitors to display.

Comments
Other users have left no comments for ChaoYang.

Friends
There are no friends to display.
© GrandForums.com