thescientist

Moderator
  • Content count

    8,681
  • Joined

  • Last visited

  • Days Won

    35

thescientist last won the day on April 8

thescientist had the most liked content!

Community Reputation

231 Excellent

About thescientist

  • Rank
    Keepin' it reel

Contact Methods

  • Website URL
    http://www.analogstudios.net
  • ICQ
    0

Profile Information

  • Gender
  • Location
    Rhode Island, USA
  • Interests
    Music, programming, computers, web design, business, books, and politics.

Previous Fields

  • Languages
    HTML/CSS/JS, PHP/MySQL, bash, VCS, OSS, Java, Python

Recent Profile Visitors

41,967 profile views
  1. integration

    yes, it's not clear what you need help with. What parts of the API? What have you tried? What are you stuck on? etc
  2. what do you need help with?
  3. I would agree with a couple things mentioned The syntax is not correct (regardless of React usage) The need for React is not apparent That said, it certainly could be done with React, or "vanilla" JS would certainly be more practical as this "simple" case seems warrants. As far as implementation details go, would a better option be to increment a counter each time a link / page is visited in a cookie or with one of the web storage APIs? Either way a user can work around it, but at least one is a more "stateful" solution.
  4. Is your php file located at the root directory of the webroot? Try opening the PHP file in a browser, and if it is indeed at the root, you should be able to access it at http://<your-domain>.com/post.php. Otherwise, you have an incorrect path to post.php in your form. If the form and the PHP file are in the same directory, you could just use <form action="post.php" method="post">
  5. What part specifically do you need help with? It's not very clear from your post.
  6. You should be using NPM (which is what the example shows) https://www.w3schools.com/nodejs/nodejs_mongodb.asp $ npm install mongodb To elaborate, Node is the JavaScript runtime environment, NPM is the package manager. Using NPM to install Node packages for your project.
  7. I second using a local Meetup as a great way to find like-minded individuals and potential project / collaboration opportunities.
  8. FWIW, this ties into what was being taught to you in your header thread. PHP is a server side language, and is generating the body of document being requested by the browser, hence the reason why content being rendered before headers was causing you issues. There are generally two options for something like this Mix PHP with HTML / JS / CSS, in which PHP builds up the page content and delivers a final page to be rendered by the browser, including all the JS to be executed Just use PHP to provide data, and have JavaScript request just that data (ie. JSON) using AJAX and let JS / HTML handle generating the page content dynamically I prefer the second option since it keeps business logic separate from presentation, doesn't try and mix too many things, and is generally easier to organize and reason about. This is the general approach to most web development, where the backend, be it PHP, Java, NodeJS, etc acts as an API serving up all data to the client (browser) and then something like jQuery, AngularJS, React etc would be used to render that data into UI using the DOM, or whatever conventions are exposed by the given library / framework. Anyway, just some additional information for you to consider as you plan out your project.
  9. I can't speak for the decision to include tutorials on AngularJS or jQuery, but the Angular (2+) docs and guides are quite comprehensive, in particular the Tour of Heros Getting Started Guide. That's probably you best bet.
  10. it would be helpful to share the relevant code in one block, instead of three code blocks in as many posts, since it makes it harder to understand the context of your issue. And in particular with headers, seeing the whole file is important.
  11. Why can't you just have different buttons pass the different data? The showModal function would expect certain data, like title, message, etc and use something innerHTML on elements inside the modal to change their values dynamically. There is certainly a way to have multiple buttons re-use the same modal, in fact this is the cornerstone premise of UI libraries like Bootstrap.
  12. if they're both running, then it sounds like WAMP is already using port 80. Only have one or the other running.
  13. what's your question?
  14. What's the rest of the error message?
  15. Check out the w3schools tutorials http://www.w3schools.com/php/php_forms.asp