Jump to content

Search the Community

Showing results for tags 'output'.

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • W3Schools
    • General
    • Suggestions
    • Critiques
  • HTML Forums
    • HTML/XHTML
    • CSS
  • Browser Scripting
    • JavaScript
    • VBScript
  • Server Scripting
    • Web Servers
    • Version Control
    • SQL
    • ASP
    • PHP
    • .NET
    • ColdFusion
    • Java/JSP/J2EE
    • CGI
  • XML Forums
    • XML
    • XSLT/XSL-FO
    • Schema
    • Web Services
  • Multimedia
    • Multimedia
    • FLASH

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


AIM


MSN


Website URL


ICQ


Yahoo


Jabber


Skype


Location


Interests


Languages

Found 7 results

  1. GREETING: One more quick question before the weekend begins. BACKGROUND: Until now, it has been easy to see the results of AJAX calls in the files that produce them. Until now, cURL was never an explicit part of my web-application. I am now making a dual call, however, and am unable to see the final result. The first call stipulates no method as nothing is sent. The second call is based on the result of the first call and uses the POST method to make the request. Although I can see the contents of the first request, I cannot see the contents of the second. Both files use identical cURL routines and both perform exactly as expected, as AJAX returns everything that is requested. Only the query statements of the URL are different. Even the specified AJAX dataType is the same for both calls -- namely, JSON. Please find below the code that produces the output that I wish to see, but cannot. The PHP for the 2ND AJAX CALL ini_set('log_errors', 1); ini_set('error_log', dirname(__FILE__) . DIRECTORY_SEPARATOR . 'error.log'); ini_set('html_errors', 0); ini_set('display_errors', 0); error_reporting(E_ALL); if (!empty($_POST['ip_addr'])) { $ip_addr = filter_var($_POST['ip_addr'], FILTER_SANITIZE_STRING, FILTER_FLAG_STRIP_HIGH); $url = 'https://.../matomo/index.php?module=API&action=index&visitIp=' . $ip_addr . '&idSite=1&period=week&date=today&method=Live.getVisitorProfile&format=json&expanded=0&token_auth=...'; $curl_request = curl_init(); curl_setopt($curl_request, CURLOPT_URL, $url); curl_setopt($curl_request, CURLOPT_RETURNTRANSFER, false); curl_exec($curl_request); curl_close($curl_request); } QUESTION; What must I do to make the output of the cURL call visible in the file that produces it without disrupting the AJAX call that retrieves the output that I cannot see. Or, am I missing the whole point of cURL and the data is tranferred directly to the AJAX? But, why would I be able to see it in the first request, but not the second. Roddy
  2. BACKGROUND: The following routine takes a nested, associative array whose end-values are empty, extracts the keys of each non-recursive subarray, and properly echoes each. Rather, than returning the result as a newly constituted array, however, the function returns boolean true and displays the desired result in a non-useable form. Now, I have tried in vain to get the call-back function to produce an index-array of the echoed values that I can use outside the scope of the array_walk_recursive( ) function, but have failed miserably. QUESTION: How does one produce from the function a useable array that can be used outside of the function. $result = array_walk_recursive($insertion_vars, function($key, $value) { echo $value . '<br />'; });
  3. kelvin404

    output

    hallo guys I have a problem when you want to edit / I do not really understand how to make the output form where if I've been filling in all the information and I click submit it will display output that displays the results of what the contents Example: If I want to buy a gift card, and after I fill you all and if my account balance sufficient then instantly display results (Thanks for buying gift cards on our website following the status of your order) Voucher code: XXX-XXX-XXX transaction id: XXXXXX pembeliian date: XXXXXXXX price: $ 10 more or less
  4. Dear all, i am getting the following issue with my tables, as they resize according to text size, how can make it all same size and auto break text to second line to make it more readable and consistent ( the following image is the test i was running ) i tried to change the css and do style for table however it didn't work.. here my css and here the code for the tables in the image
  5. ok, so now im trying to add a check once the field of the form is filled out correctly, but im having problems outputing the "checked" function check(){ var fnlname, addy, numy, email, city, state, country, zip, namecheck; fnlname = document.getElementById('fnlname'); addy = document.getElementById('addy'); numy = document.getElementById('numy'); email = document.getElementById('email'); city = document.getElementById('city'); state = document.getElementById('state'); country = document.getElementById('country'); zip = document.getElementById('zip'); /*** check to see if 2 sets of words is placed ****/ namecheck = /^[A-Z,a-z][A-Z,a-z]+$/; if(fnlname.value == ''){ fulname.innerHTML = '<b>full name is missing</b>'; return false; }else{ if(!namecheck.test(fnlname)){ fulname.innerHTML = '<b>Both Names Required</b>'; return false; } } /*** if both names are filled in, display a "checked mark" ***/ if(fnlname == namecheck.test(fnlname)){ fulname.innerHTML = '<b>checked</b>'; return false; } if(addy.value == ''){ address.innerHTML = '<b>Address is missing</b>'; return false; }else{ namecheck = /^[A-Z,a-z]+$/; if(!namecheck.test(addy)){ document.getElementById('address').innerHTML = '</b>A full Address is Require</b>'; return false; } } return true; } any tips or hint or help will do just fine
  6. I have some code that uses a button to open up a prompt then you enter a number XXX.XX as a frequency. Then convert it to BCD32 then display it. Example 122.30 in decimal to 8752 in BCD32 Here is the code. <html><head></head><script type="text/javascript"></script> <script>function COMSET(){var FREQ = Number(prompt ("Frequency"));//sets to 2 decimal placesFREQ = FREQ.toFixed(2);alert(FREQ);//gets the first 2 characters before the . and drops the 1var n1 = FREQ.substr(0, FREQ.indexOf("."));n1 = n1.substr(n1.length-2);alert(n1);//gets the last 2 characters after the .var n2 = FREQ.substr(FREQ.indexOf(".")+1,2);alert(n1 + " : " + n2);//Converts from Decimal to BCD formatvar bcd = (parseInt(n1.charCodeAt(0) - 0x30 )<<12) + (parseInt(n1.charCodeAt(1) - 0x30 )<<8) + (parseInt(n2.charCodeAt(0) - 0x30 )<<4) + parseInt(n2.charCodeAt(1) - 0x30 );document.getElementById(COM1_ASET).innerHTML=bcd;}</script><body> <input name="COM1" type="button" id="COM1" value="COM1_SET" onClick="TEST()"><p id="COM1_ASET"><p> </body></html>
  7. an someone tell me why this code isNOT sorting the lname output listing ? <?php include("/home/mdwvo/public_html/aabees.org/password_protect.php"); ?> <?php $con = mysql_connect("localhost","mdwvo_aaba","pwpwpwpwpw");if (!$con) { die('Could not connect: ' . mysql_error()); } mysql_select_db("mdwvo_aaba", $con); $result = mysql_query("SELECT * FROM members WHERE deleted = 'Yes' ORDER BY 'lname' "); Echo "<table size=50%>"; while($row = mysql_fetch_array($result)) { Echo "<tr><td>".$row['id'] . "</td></tr> <tr><td>".$row['fname']." ".$row['lname']."</td><td align=left> Date Joined - ".$row['joined'] . "</td></tr> <tr><td>".$row['street'] . "</td><td align=left> Dues Paid Through - ".$row['paid'] . "</td></tr> <tr><td align=left>".$row['city'] . ", ".$row['state'] . " ".$row['zip'] . "</td><td align=left> Phone - ".$row['phone'] . "</td></tr> <tr><td> </td><td align=left> Email - ".$row['email'] . "</td></tr>"; } Echo "</table>"; mysql_close($con);?>
×
×
  • Create New...