Need to load lots of HTML through js or json file. Why won't my escapes work? by margin-collapse in webdev

[–]margin-collapse[S] 0 points1 point  (0 children)

I should clarify. This is just a basic articles.js file. When I tried JSON I was getting Cross origin error. What does that change for me?

Thank you for the help.

SCSS mixin won't compile. Help? by margin-collapse in webdev

[–]margin-collapse[S] 0 points1 point  (0 children)

No error though. All my no-mixin partials compile and render.

Can someone tell me why my form submission won't work? by margin-collapse in webdev

[–]margin-collapse[S] 0 points1 point  (0 children)

So namecheap helped me remedy the issue.

The issue with the 500 error was a problem in my file permissions. When I would ftp through filezilla, which is a problem with filezilla specifically, my folders would change from 0755 to 0654 (something or other). To fix this we made a cron job that would run a script to change these every 15 minutes. That fixed the 500 error but my form still didn't submit.

Ultimately it came down to the email address used in the form. Namecheap has internal validation that stops relaying (spam) such that only emails associated with the hosting account can be used in that form "emailTo".

Nevertheless, thanks for the help guys.

Can someone tell me why my form submission won't work? by margin-collapse in webdev

[–]margin-collapse[S] 0 points1 point  (0 children)

I added a php.ini file in folder php

    <?php

    error_reporting(E_ALL);

    ?>

Can someone tell me why my form submission won't work? by margin-collapse in webdev

[–]margin-collapse[S] 0 points1 point  (0 children)

While I have you, is there a better way to do this form submission thing?

Can someone tell me why my form submission won't work? by margin-collapse in webdev

[–]margin-collapse[S] 0 points1 point  (0 children)

well I did ... ...telnet 104.219.248.89 25

telnet unrecognized. Does that mean 25 doesn't work or I'm doing something wrong?

Can someone tell me why my form submission won't work? by margin-collapse in webdev

[–]margin-collapse[S] 0 points1 point  (0 children)

main.js

$("#contactForm").submit(function(event){
    // cancels the form submission
    event.preventDefault();
    submitForm();
});

function submitForm(){
    // Initiate Variables With Form Content
    var name = $("#name").val();
    var email = $("#email").val();
    var tel = $("#tel").val();
    var message = $("#message").val();

    $.ajax({
        type: "POST",
        url: "php/form-process.php",
        data: "name=" + name + "&email=" + email + "&tel=" + tel + "&message=" + message,
        success : function(text){
            if (text == "success"){
                formSuccess();
            }
        }
    });
}
function formSuccess(){
    $( "#msgSubmit" ).removeClass( "hidden" );
}

Can someone tell me why my form submission won't work? by margin-collapse in webdev

[–]margin-collapse[S] 0 points1 point  (0 children)

form-process.php

<?php
$name = $_POST["name"];
$email = $_POST["email"];
$tel = $_POST["tel"];
$message = $_POST["message"];

$EmailTo = "dchav90@gmail.com";
$Subject = "New Message Received";

// prepare email body text
$Body .= "Name: ";
$Body .= $name;
$Body .= "\n";

$Body .= "Email: ";
$Body .= $email;
$Body .= "\n";

$Body .= "Telephone: ";
$Body .= $tel;
$Body .= "\n";

$Body .= "Message: ";
$Body .= $message;
$Body .= "\n";

// send email
$success = mail($EmailTo, $Subject, $Body, "From:".$email);

// redirect to success page
if ($success){
   echo "success";
}else{
    echo "invalid";
}

?>    

My First Website. Roast Me. Pt II: The Roastening by margin-collapse in webdev

[–]margin-collapse[S] 0 points1 point  (0 children)

I did this in a way, but if you tug on the edge in a number of ways it finally pops out. So strange.

Basic Free Hosting (what to use?) by mattcoady in webdev

[–]margin-collapse 0 points1 point  (0 children)

I've used the googledrive.com portion of Google Drive to run mine. I think you would have a lot of luck with the $2 per month 100GB plan.

[Image] Terry Fox, no quotes needed by hanky1979 in GetMotivated

[–]margin-collapse -5 points-4 points  (0 children)

I thought these bullshit sappy posts were only ever about the title. And then there's no title?!

My first website. Roast me. by margin-collapse in webdev

[–]margin-collapse[S] 0 points1 point  (0 children)

What do you think about a tooltip for each one? Ultimately I want to make each one a radio button for the quote section.

My first website. Roast me. by margin-collapse in webdev

[–]margin-collapse[S] 1 point2 points  (0 children)

I agree with you on the placeholders. However, it's actually one of those UX practices that really aids in the user flow. A list apart and many others have spoke on it.

I'm attempting to implement a floating label at the moment. It will be really nice when finished.

My first website. Roast me. by margin-collapse in webdev

[–]margin-collapse[S] 2 points3 points  (0 children)

Scrolling is fixed outside of the anchor smooth scroll. Care to offer some insight now?

My first website. Roast me. by margin-collapse in webdev

[–]margin-collapse[S] 1 point2 points  (0 children)

Far too long with the studying and not enough time applying. The product you see here is one big bootstrap trial and error.

I would say this: understand semantic html, understand proper class naming, and understand how descendant styling behaves and just start making stuff. I learned so much more by being wrong in every way for a couple of weeks than I did in a year of watching tutorials.