Jump to content


  • Content Count

  • Joined

  • Last visited

Community Reputation

0 Neutral

About Spunky

  • Rank
  • Birthday 09/29/1989

Previous Fields

  • Languages
    XHTML, CSS, PHP, MYSQL, Javascript, Jquery

Contact Methods

  • Website URL
  • ICQ

Profile Information

  • Gender
  • Location

Recent Profile Visitors

5,319 profile views
  1. Thanks for the reply! I thought I am trying to do a redirect with JavaScript after the AJAX response comes back with the window.location.href line?: xmlhttp.onreadystatechange = function(){ if(xmlhttp.readyState == 4 && xmlhttp.status == 200){ retrieve = xmlhttp.responseText; document.getElementById("status").innerHTML = "Thank you!"; window.location.href='https://www.example.com'; } else{ document.getElementById("status").innerHTML = "Uh oh!" } } I figured it was because it doesn't have a chance to get to that line. But then it must have to do with w
  2. I have a form that appears in a modal and once the user submits it successfully, the contents get sent to an email. I tried to use JavaScript to redirect but I realize that since there is a post-back, this JavaScript is probably not being hit. I don't even see the Thank You! text that I included. But that's OK, once I can redirect, I can handle a different way to let the user know their form was sent successfully. Looking into redirecting with PHP seemed simple enough but I can't figure out why it is not working for my scenario. Below is my code. The result in Chrome is that all the
  3. Spunky

    Using CSS Selectors

    If only the code in the JSFiddle was a copy-paste of my exact code. But alas, it is not: At best I would have avoided my last response, avoiding yours as well. However, I am doing my best to replicate the HTML markup that I am using in here to figure out what exactly is the problem here. Clearly it is still something else. I will see what structure I am missing from my actual code and see if I can figure this out.
  4. Spunky

    Using CSS Selectors

    I don't see it. I Suppose if I did notice it, I wouldn't be here. 🤔 Are you referring to the YesNo_radio class? Malformed as in a typo?
  5. Spunky

    Using CSS Selectors

    More specifically, the CSS may even be targeting the first instance of .formContainer as well. I've updated the code for another page where table.YesNo_radio doesn't appear in the first .formContainer and none of them are being targeted. Here is a JSFiddle of the example I provided above though: https://jsfiddle.net/juanL52z/4/ Notice how the 2nd instance of the 2nd <span> does not receive the CSS. That's the problem.
  6. Spunky

    Using CSS Selectors

    I'm trying to use CSS selectors to target specific elements throughout my page and I can't figure out proper use to target everything I am trying to. Here my HTML, trimmed for simplicity (I hope): <div id="formWrap"> <div class="formContainer"> <div class="row"> <div class="column"> content </div> <div class="column"> content </div> </div> <!-- more rows --> <div class="row"> <div class="column"> content </div> <div class="colum
  7. So, I am trying to set up what I am calling a "Guided Tour" which uses CSS tooltips/popups to explain various parts of the page that they are on. I want the "tour" to run automatically, but also give them the ability to pause and continue it at any time, as well as go to the next and previous tip as needed. I'm finding this to be a bit more complex than originally anticipated. Mostly because it seems that using setTimeout() inside a for loop isn't that straight-forward. Let's start with my code: var startG = document.getElementById("startGuide"); var guidetips = []; guidetips[0]
  8. The issue I am having is with my menu bar. I have recreated it in JS Fiddle. Notice that when you hover over any of the drop-down menu list items (any that are short words or not on 2 lines), the hover color does not spread to the right edge, and I am unable to figure out why. Could somebody take a look at let me know if they have any ideas?
  9. Real simple here: Why does this work.. tr.retired td:not(:nth-child(2)){ background-color:purple; } And this works... tr.retired td:not(:nth-child(3)){ background-color:purple; } But this doesn't work? tr.retired td:not(:nth-child(2)),tr.retired td:not(:nth-child(3)){ background-color:purple; } Fiddle: https://jsfiddle.net/m6z1suyb/ Thanks!
  10. I prefer MySQLi so I will stick with that, thanks. Easier for me to comprehend as I am not a full fledged programmer. I know all about PDO being more versatile. Sure, ofcourse, my bad, I forget that I can easily run the PHP pages alone without the AJAX triggering it. So, the database connection is working. I ran retrieveData.php by itself and the echo $outp is outputting the data from my database as expected, into a JSON object. The issue now seems to lie solely with the AngularJS now so I'll end this topic as is and move onto a different forum area after I have p
  11. They do, says string(#) "content" for each one. Plus the error is showing twice in the same alert box, not sure if that means anything or helps any. How, from my above code, could the $password be empty anyway??? Just to cover my bases from pointing fingers I have also tried: <?php $servername = "localhost"; $username = "username_user"; $password = "password"; $dbname = "username_TableName"; var_dump($servername, $username, $password, $dbname); $db_con = new mysqli('localhost','username_user','password','username_TableName'); if($db_con->connect_error){ die("
  12. http://stackoverflow.com/questions/30363045/running-php5-access-denied-to-mysqli-connection-but-success-for-mysql Can't say I haven't tried. Maybe you guys would like to take a crack at it then? Because they couldn't help. So let's stay focused on the important part: <?php $servername = "localhost"; $username = "username_user"; $password = "password"; $dbname = "username_TableName"; $db_con = new mysqli($servername,$username,$password,$dbname); if($db_con->connect_error){ die("Connection failed: " . $db_con->connect_error); } ?> The server specific informat
  13. I am unable to connect to my server when I convert the code to MySQLi and I have not been able to figure out why. But I am not too concerned, I only work on small, personal projects. I already discovered what happens when I add an apostrophe to the string which is it doesn't add the item to the database. So I am unsure how that is what is happening here. The code works, it's just now that I am trying to receive $returnData I am getting the error, however the data is still being added to the database. My code was created with the help of w3schools, maybe about 10 years ago, yes. But no
  14. So I am posting this issue in this part of the forum due to the SQL error that I am getting, so my best guess is there is an error in my SQL. Basically, what I am doing is using angularjs's $https to communicate with a PHP file. Here is that code: $http.post('enterTask.php', task).then( function(response){ alert(response.data); $scope.tasks.push(task); } ); So, I am sending some data which works fine. Where I am getting the error was when I decided I want to receive back data as well and I am using the alert to test the response. Here is the PHP code: <?php $de
  15. 2 typos.. this is what I get for staying up till midnight trying to get this to work... ok so this is what I am getting sent to my email now: Name: [object HTMLParagraphElement]Email: Comment: [object HTMLTextAreaElement] I am not sure why email is still not showing anything. Also I realized I was supposed to add .value to the ends like this: var fn = document.getElementById('fname').value; var ln = document.getElementById('lname').value; var e = document.getElementById('email').value; var p = document.getElementById('phone').value; var m = document.getElementById('me
  • Create New...