Jump to content

Brandon Jaeger

Members
  • Posts

    154
  • Joined

  • Last visited

About Brandon Jaeger

  • Birthday 05/02/1988

Contact Methods

  • AIM
    coding+forever
  • Website URL
    http://youtube.com/brandonjaeger

Profile Information

  • Gender
    Male
  • Location
    PA
  • Age
    25

Brandon Jaeger's Achievements

Member

Member (2/5)

0

Reputation

  1. nevermind. i can't do what i wanted to do anyway which is load a facebook page externally in my script.
  2. hi guys, very long time since i've been here.. i'm making a facebook application and could use some help starting it since i don't know much about ajax. this is what i'm trying to do (i hope it makes sense): 1. request link to page with JSON code 2. take those items and put them into an array inside the script 3. load those links from array in background while displaying their icon in a 5x5 html table 4. when all of the pages loading in the background are done, display an image below the icon in the table 5. repeat these steps without refreshing the page as soon as all pages are fully loaded. this is what the page looks like with the JSON code that i need to load (there can be up to 25 picture/link combos): [ { "picture":"URL_TO_PICTURE", "link":"URL_TO_SITE" }, { "picture":"URL_TO_PICTURE", "link":"URL_TO_SITE" }, { "picture":"URL_TO_PICTURE", "link":"URL_TO_SITE" } ] i've also attached a sample of what i need the data to load into. if someone could help me out with this i would GREATLY appreciate it!!! thank you
  3. What's the URL to it and what does it do exactly? Thanks Brandon
  4. Where are the <HEAD> tags? I don't see them in your script anywhere. That could be a problem.
  5. That wasn't the author that posted that
  6. In the second parameter of the imagestring functions, you have 9 as the font size, whereas it can only go up to 5. I'm not sure how to make it any bigger, so its going to look a bit off in the generated image. The only way I can think of is if you use imagettftext, but then you're going to have to load your own font file.
  7. I'll take a stab at it. All I did was multiply the values by 2: <?php /* image_grid.php Click Captcha Ver 1.2 Created on: 10/27/2007 by Ron Hickey Idea by http://www.6tx.net/forum member pappy http://6tx.net/sc2 */ //buffer ob_start('ob_gzhandler'); session_start(); //DEC 67 //get a, decode and round // $a = $_GET['a']; if ($a == $_SESSION['afloat']){ $aa = round(base64_decode($a)) - 1; $im = imagecreatetruecolor (54*2, 69*2); //DEC 79 //random numbers // $myn = array(1, 2, 3, 4, 5, 6, 7, 8, 9); $rn = array_rand($myn, 9); $string1 = "" . $myn[$rn[0]] . " " . $myn[$rn[1]] . " " . $myn[$rn[2]] . ""; $string2 = "" . $myn[$rn[3]] . " " . $myn[$rn[4]] . " " . $myn[$rn[5]] . ""; $string3 = "" . $myn[$rn[6]] . " " . $myn[$rn[7]] . " " . $myn[$rn[8]] . ""; $mynum = "" . $string1 . " " . $string2 . " " . $string3 . ""; //DEC 68 DEC 69 DEC 66 DEC 89 DEC 82 //string, random click number and line coord $na = 17; $nb = 54; $nc = 0; $nd = 54; $ab = explode(" ", $mynum); $mystring = "Click $ab[$aa]"; //random image color // $change = rand(1,9); $lime = imagecolorallocate($im,0,255,0); $yellow = imagecolorallocate($im,255,255,0); $white = imagecolorallocate($im,255,255,255); $lgray = imagecolorallocate($im,206,206,206); $gray = imagecolorallocate($im,115,115,115); $black = imagecolorallocate($im,0,0,0); $green = imagecolorallocate($im,1,107,0); $grc = " $lime $yellow $white $lgray $yellow $white $gray $black $green"; $rc = explode(" ", $grc); $bgc = $rc[$change]; //DEC 72 //line & number colors // $bc = imagecolorallocate ($im, 0, 0, 0); $rd = imagecolorallocate ($im, 255, 0, 0); $wh = imagecolorallocate ($im, 255, 255, 255); //DEC 73 //if color = this change line & number color // if (($change > 3) && ($change < 7)) { $bc = $rd;} elseif ($change > 6) { $bc = $wh;} //DEC 67 //fill image color // imagefilledrectangle ($im, 1, 1, 54*2, 69*2, $bgc); imagerectangle ($im, 0, 0, 53*2, 68*2, $bc); //DEC 75 //vertical lines // for($i=$na;$i<=$nb;$i+=19) imageline($im,$i*2,17*2,$i*2,69*2,$bc); // Horizontal Lines for($i=$na;$i<=$nb;$i+=17) imageline($im,0,$i*2,54*2,$i*2,$bc); //DEC 69 //image string // imagestring ( $im, 9, 5*2, 18*2,$string1, $bc); imagestring ( $im, 9, 5*2, 35*2,$string2, $bc); imagestring ( $im, 9, 5*2, 52*2,$string3, $bc); imagestring ($im, 3, 2*2, 3*2, "$mystring", $bc); //DEC 89 //header content // header("Content-Type: image/gif"); //DEC 48 //send image // imagegif($im); //DEC 55 //destroy image // imagedestroy($im); } //flush ob_end_flush(); ?>
  8. $fred is just a value of whatever is being sent through the function header.
  9. As for the JS, I think this will work (I'm not much of a JS programmer, but I know a couple of things): <script type="text/javascript"> function go_there(data) { var r=confirm("Printing a receipt confirms the payment has been received!" + '\n' + " PRINT A RECEIPT!"); if (r==true) { window.location="http://localhost/mark-paid.php?PaperworkID=" + data + "&ID=<?php echo $row_Recordset1['TakeawayID']; ?>"; } } </script>
  10. Right now I'm using this for my unordered lists and there's too much vertical spacing (if that makes any sense). I need to reduce that amount of space by a few pixels. I've tried changing the padding/margin with no luck. ul { font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 11px; font-style: normal; line-height: 2em; font-weight: normal; font-variant: normal; text-transform: none; color: black; text-decoration: none; text-indent: 3px; list-style-position: inside; list-style-type: square; padding: 2px; margin: 0px; } Thanks Brandon
  11. Nevermind. I figured it out. <a href="#" onclick="document.getElementById(\'zomg\').value=\'yams\';">#</a> <input type="text" value="gaben" name="yams" id="yams">
  12. I need to be able to click a link like this: <a href="#" onclick="someFunction('input_value', 'field_name');return false;">link</a> and have it fill whatever form object is named field_name with the value input_value. Visual example: User clicks that link above... [input_value ] Then it fills it the value="" parameter of the form object. I would make it, but I'm really bad at JavaScript. Help is appreciated!! Thanks Brandon
  13. So just do: <input name="rating_' . $row['StudentID'] . '" type="radio" value="-2" /> The format will be like so: rating_123 Edit: F1 beat me to it. His method better anyway.
  14. http://www.phpfreaks.com/forums/index.php/board,34.0.html That board is for third-party scripts that other people have written and you need help with.
×
×
  • 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.