Jump to content

killah

Members
  • Posts

    234
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

killah's Achievements

Member

Member (2/5)

0

Reputation

  1. Hi there, i have so far it appear's to be 2 problem's. One is when i click on my event trigger to pull up the popup, the overlay that my jquery is supposed to set is all correct. How ever, my popup first fade's in (Using JQuery.fadeIn()) over the overlay. Once it's faded in, it then appear's behind the overlay. Any idea's? My second problem is, I have not used the JQuery platform much, and just recently started using it. How ever, in normal javascript, if using php and javascript, i am used to using " + JScript.Var + ", i'm using this now and seem's to be throwing an error via firebug. All error's can be viewed here: http://deadlykillah.net/mccode/logout_test.php. * To see problem 1, please click on the "Register Now" image. Thank's.
  2. Hi there, i am a beginner of ajax and just got the grasp's of ajax. I am trying to find a way on how to timeout and print "Script took to long to load" if it take's over 30 second's to load another script once i clicked "Show Page". Any idea's or is there any ajax function that can do this for me?
  3. I subtracted 1 from the count as it was showing some what like this: Array ( [0] => [1] => firstimage[/img] [2] => secondimage[/img] ) So i had to remove 1 as [0] ain't supposed to be counting.
  4. This is how i worked it out rather: $string = explode('', $_POST['signature']); $count = (count($string) - 1);
  5. Would'nt it be much simpler to just do $u = $_GET['u']; echo $u; Thus resulting in 43
  6. What i want to do is limit the amount of image's a user can use, thus i need to check the amount of inside the bbcode signature. Any idea's?
  7. function GetXmlHttpObject() { var xmlHttp; try { xmlHttp = new XMLHttpRequest(); } catch(e) { try { xmlHttp = new ActiveXObject("Msxml2.XMLHTTP"); } catch() { try { xmlHttp = new ActiveXObject("Microsoft.XMLHTTP"); } catch() { return false; } } } return xmlHttp; } function showUnSaved() { var unSavedXML = GetXmlHttpObject(); if(unSavedXML == NULL) { alert("Browser does not support javascript!"); } unSavedXML.open("GET","Ajax_Launcher.php?viewUnSaved", true); unSavedXML.onreadystatechange = function() { if (xmlHttp.readyState == 4) { document.getElementById("responseTable").innerHTML = xmlHttp.responseText; } } unSavedXML.send(null); return true; } function showSaved() { alert("Writing New Events Table"); var savedXML = GetXmlHttpObject(); if(savedXML == NULL) { alert("Browser does not support javascript!"); } savedXML.open("GET","Ajax_Launcher.php?viewSaved", true); savedXML.onreadystatechange = function() { if (savedXML.readyState == 4) { document.getElementById("responseTable").innerHTML = savedXML.responseText; } } savedXML.send(null); alert("Writing New Events Table 2"); return true; } function delSingle(id) { var singleXML = GetXmlHttpObject(); if(singleXML == NULL) { alert("Browser does not support javascript!"); } singleXML.open("GET","Ajax_Launcher.php?delSingle="+id, true); singleXML.onreadystatechange = function() { if (singleXML.readyState == 4) { document.getElementById("responseText").style.height = "25px"; document.getElementById("responseText").style.border = "1px black dashed"; document.getElementById("responseText").innerHTML = singleXML.responseText; } } singleXML.send(null); return true; } function saveThese() { var saveTheses = document.getElementById("select").value; var theseXML = GetXmlHttpObject(); if(theseXML == NULL) { alert("Browser does not support javascript!"); } theseXML.open("GET","Ajax_Launcher.php?saveThese="+saveTheses, true); theseXML.onreadystatechange = function() { if (theseXML.readyState == 4) { document.getElementById("responseText").style.height = "25px"; document.getElementById("responseText").style.border = "1px black dashed"; document.getElementById("responseText").innerHTML = theseXML.responseText; } } theseXML.send(null); return true; } Does anyone notice anything wrong with this? I have a ajax launcher php file that shows saved and unsaved event's, onclicking the button will change the entire table, but my javascript seem's to not want to work :S
  8. Bienvenido a phpfreaks.com, ojala te lo desfrutes
  9. <?php session_start(); $con = mysql_connect("localhost", "Username", "Password") or die('Could not connect: ', mysql_error()); mysql_select_db("DB_Name", $con); $username = mysql_real_escape_string($_SESSION["username"]); $SQL = 'SELECT `email` FROM `users` WHERE `username` = ', $username, ' LIMIT 0, 30'; $result = mysql_query($SQL) or die('Error in sql: ', mysql_error());+ $args = array(); while($soc = mysql_fetch_assoc($args)) { $args[] = $soc['email']; } echo implode('<br />', $args); ?> Maybe?
  10. WHATS WITH ALL THE CAPS? Do you like shouting? :/
  11. Do you currently count how many post's the user make's? If so: $query = mysql_query('SELECT `username` FROM `table` ORDER BY `post` DESC LIMIT 1', $resource_link); $user = mysql_fetch_assoc($query); echo $user['username'];
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.