dcsimg
www.webdeveloper.com

Search:

Type: Posts; User: andypants

Search: Search took 0.01 seconds.

  1. Replies
    2
    Views
    1,359

    Pretty cool. Maybe that one liner is faster....

    Pretty cool. Maybe that one liner is faster. Thanks!
  2. Replies
    3
    Views
    3,390

    Why don't you capture all the html out of the...

    Why don't you capture all the html out of the iframe with javascript and then use PHP (or other server side script) to generate your pdf? I've had luck using the FPDF library but there are probably...
  3. Try this: (.*)(woman.*[.,].*)(?=p>|br>|man[, ])

    Try this:

    (.*)(woman.*[.,].*)(?=p>|br>|man[, ])
  4. Replies
    2
    Views
    1,359

    multidimensional array usort

    <?php
    function cmp($a, $b) {
    if($a[0] === $b[0]) {
    return 0;
    }
    return $a[0] > $b[0] ? 1 : -1;
    }

    $arr = array(
    array(-1, "negative 1"),
  5. Replies
    0
    Views
    927

    Working with Objects in Javascript

    I've been working with the functions below. They are creating objects based on the arguments within the makeRoads() call. Everything seems to be working fine.

    What I want is a way to display...
  6. Thread: Oop

    by andypants
    Replies
    4
    Views
    1,397

    Online book... and free.

    Honestly I haven't read this chapter yet, but so far this site has been very solid. It is about javascript Oop not php but still should be insightful if you are seeking a web development point of...
  7. Replies
    3
    Views
    1,595

    Did you change it here too? $send =...

    Did you change it here too?



    $send = mail($to, 'Contact Form Submission', $body, "From: {$email}");
  8. Replies
    3
    Views
    1,595

    It looks like you are sending an email back to...

    It looks like you are sending an email back to the person that filled the form out. That is to say, this email will be to and from the same person. So to fix that you need to add an email to receive...
  9. Replies
    2
    Views
    2,383

    Great, thank you. The code below works.. ...

    Great, thank you. The code below works..



    // JavaScript Document
    window.onload = openTxt;

    //*********************//
    //* LOAD EXTERNAL TEXT *//
    function openTxt() {
  10. Replies
    2
    Views
    2,383

    return my requested responseText...

    I have an external text file called recluseFile.txt. I want to access this file every time I call the function: recluseFile()

    This is how I thought to set that up below:



    // JavaScript...
  11. Replies
    5
    Views
    1,963

    Or...

    you can paste this into the top and bottom of your php pages:



    <? ob_start(); ?>
    <?php
    //php code....
    ?>
    <? ob_flush(); ?>
  12. Replies
    5
    Views
    1,766

    I always center objects like this: ...

    I always center objects like this:



    <html>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
    <style type="text/css">
    * {
    margin:0;
  13. AJAX And the answer is...

    // JavaScript Document
    window.onload = initSite;
    window.onclose = exitSite;
    var visitorEnter = "";

    function initSite() {

    var date = new Date();
    var y = date.getFullYear();
    var m =...
  14. AJAX Something like this might work...

    window.onunload = getInfo;

    function createRequest() {
    try {
    request = new XMLHttpRequest();
    } catch (tryMS) {
    try {
    request = new ActiveXObject("Msxml2.XMLHTTP");
    }...
  15. Replies
    6
    Views
    3,224

    You could try something like this to make sure...

    You could try something like this to make sure each variable is filled with the right value. Hope this is helpful.



    $tableName = "rolesToPerson";

    if (isset($role)) {
    $sql = "SELECT...
  16. Replies
    12
    Views
    2,354

    You may need to wrap your tags within ...

    You may need to wrap your <li> tags within <ul> tags like this:



    <ul>
    <li style="list-style-image:url(../images/icons/drink.png);"><a href="information.php">Info</a></li>
    <li...
  17. Replies
    6
    Views
    2,099

    That works great. Thanks!

    That works great. Thanks!
  18. Replies
    6
    Views
    2,099

    code breaks when moved to external file

    I am trying to get the same exact thing to work from an external javascript file. I understand the div has to exist before I can call my function. Does the script below not work because the html...
  19. Replies
    6
    Views
    2,099

    Ahh. Thanks!

    Ahh. Thanks!
  20. Replies
    6
    Views
    3,224

    It looks to me like you are referencing PHP...

    It looks to me like you are referencing PHP variables inside your SQL statements without concatenating. I added in some quotes and periods that should glue in your variables properly.

    $tableName =...
  21. Replies
    6
    Views
    2,099

    Simple appendChild function doesn't work

    Hi, This is my first post. Sorry if this is a repeat issue.

    I want to write a function that appends a text string to my div. It seems pretty straight forward and I can't figure out why this...
Results 1 to 21 of 21
HTML5 Development Center



Recent Articles