Jump to content

sstangle73

Members
  • Posts

    288
  • Joined

  • Last visited

Everything posted by sstangle73

  1. I may just not be understanding the file reader api, but When I try to run: for (var i = 0, f1, f2; f1 = files[sorted_index[i]], f2 = files[sorted_index[i+1]]; i=i+2) { var file_one; var file_two; if(f1.size < f2.size){ file_one = f1; file_two = f2; } else { file_one = f2; file_two = f1; } var file_one_contents; var file_two_contents; var reader = new FileReader(); reader.readAsText(file_one); reader.onload = readSuccess; function readSuccess(evt){ file_one_contents = evt.target.result; } var reader = new FileReader(); reader.readAsText(file_two); reader.onload = readSuccess2; function readSuccess2(evt2){ file_two_contents = evt2.target.result; } console.log(file_one_contents); console.log(file_two_contents); The console log only contains *undefined* in it. The goal of the script it two read in two CSVs and take the data from the pair of files and do some computations. Thanks!
  2. Hi, onClick on a select element, I am trying to hide or show two different table rows. It does not seem to be working on internet explorer Thanks for any help! function showMe (a, box) { document.getElementById(a).style.display = "table-row"; document.getElementById(a+"2").style.display = "table-row"; } function hideMe (a, box) { document.getElementById(a).style.display = "none"; document.getElementById(a+"2").style.display = "none"; } <tr><td><b>Account Type:</b><br><small>(If you are both a club and college coach, please select college coach)</small>:</td><td><SELECT NAME="type" size="3"><OPTION VALUE="coach" onClick="hideMe('hide', this)" >Coach/Manager</OPTION><OPTION VALUE="college_coach" onClick="showMe('hide', this)">College Coach</OPTION> </SELECT></div> </td></tr> <tr id="hide" style="display:none;"><td><b>College:</b></td><td colspan="2"><input type="text" name="college" value=""></td></tr> <tr id="hide2" style="display:none;"><td><b>Title:</b></td> <td><select name="gender" size="1"> <option VALUE="men" >Men's</option><option VALUE="women" >Women's</option><option VALUE="both" >Men's and Women's</option> </select></div> </td> <td><select name="title" size="1"><OPTION VALUE="head" >Head Coach</OPTION><OPTION VALUE="assistant" >Assistant Coach</OPTION> </select></div> </td></tr> here is the live demo if you would like to see it: http://new.maddogmania.com/application/register.php
  3. What would the headers have to be? this is what im using: $to = $email; $subject = "Mad Dog Mania Email Validation"; $message = "Test"; $from = "Mad Dog Mania <[email protected]>"; $reply = "Steven Stangle <[email protected]>"; $headers = 'From: ' . $from . "\r\n"; $headers .= 'Reply-to: ' . $reply . "\r\n"; $headers .= 'MIME-Version: 1.0' . "\r\n"; $headers .= 'Content-type: text/html; charset=iso-8859-1' . "\r\n"; @mail($email,$subject,$message,$headers); and i get these headers on gmail:
  4. i get this as the from on gmail when trying to use php's mail is there a way to avoid this?
  5. would php mail() be the best route?
  6. I would like to do it through my site though. Many of the emails are just going to be registration conformation, but there are also emails to all the active registered people.
  7. What is the best way for sending email from PHP pages? I have two different cases, the first of single emails and then I also send bulk emails to many people at once, say 100. Obviously need to hide the email addresses from the other people. Looking for the best way to get it passed spam filters and delivered with headers that dont cause red flags. Also efficient is always preferred :]
  8. sstangle73

    email

    What is the best way for sending email from PHP pages? I have two different cases, the first of single emails and then I also send bulk emails to many people at once, say 100. Obviously need to hide the email addresses from the other people. Looking for the best way to get it passed spam filters and delivered with headers that dont cause red flags. Also efficient is always preferred :]
  9. What do you think of my new site? new.maddogmania.com It is definitely an improvement over the old maddogmania.com
×
×
  • 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.