Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Recent content by wu78754

  1. wu78754

    AJAX works when synchronized but not when asynchronized.

    Feherke, Thank you for the contribution. I suppose the code is tested and I can just use it. Below is the getstock($sym) code. I think make a call to get all stocks at once will create too much delay that looks stalled. $d = date('j'); //day of month 1-31 $m = date('n'); //month 1-12 $y =...
  2. wu78754

    AJAX works when synchronized but not when asynchronized.

    Thanks, feherke. Would you provide a JSON example for this one?
  3. wu78754

    AJAX works when synchronized but not when asynchronized.

    feherke is absolute right. http://dbno.us/finance/ajindex.php?index=sp500
  4. wu78754

    AJAX works when synchronized but not when asynchronized.

    The synchronize version works. See http://dbno.us/finance/ajindex2.php?index=dji function loadXMLDoc(url,r) { if (window.XMLHttpRequest) {// code for IE7+, Firefox, Chrome, Opera, Safari xmlhttp=new XMLHttpRequest(); } else {// code for IE6, IE5 xmlhttp=new...
  5. wu78754

    AJAX works when synchronized but not when asynchronized.

    The following code doesn't replace the ? with data when running using call back function. But works when not using call back function. I would prefer not to use synchronize mode to avoid looking stalled when waiting. Can you help? URL: http://dbno.us/finance/ajindex.php?index=dji <?php function...
  6. wu78754

    client side stock quote

    An example of getting stock quote of 'AA' every second would be nice. Last Trade: 14.90 Trade Time: xxxxxxxx
  7. wu78754

    client side stock quote

    How do you get stock quote from the client side (javascript)? Here is the PHP (server side) version $file = fopen("http://finance.yahoo.com/d/quotes.csv?s=IBM&f=noc1&ex=.csv", "r"); $stocks = fgetcsv($file);
  8. wu78754

    Remote PHP calls.

    Thanks. I am not sure you can include a remote php file. It would be a security issue if you can. I just found the answer I was looking for. $exurl ='http://ticketeddy.com/test/B.php'; if (!($contents = file_get_contents($exurl))) { echo 'Could not open remote URL.'; } else { echo...
  9. wu78754

    Remote PHP calls.

    Here is some additional information. A.php resides on http://a.com/, and B.php resides on http://b.com/.
  10. wu78754

    Remote PHP calls.

    I have a simple question which I do not know the answer. I have two programs: A.php and B.php. From within A.php I call B.php. B.php will return a random number. A.php will then write that random number into a file. My trouble is in passing the random number back into A.php. Help!
  11. wu78754

    javascript error checking problem.

    Thank you very much. Patrick
  12. wu78754

    javascript error checking problem.

    I copied an example from the web, but I can't get it to work. Here is the code. function CheckForm () { // ** START ** if (document.ClientInfo.x_terms_conditions != "agreed") { alert( "Please read the Terms and Conditions and agree to it." ); return false; } else return true ; //...

Part and Inventory Search

Back
Top