43 comments found

Please help me!! My boss is going to kill me!!!

Hello,

How can I have the text on the navigation be white in it’s normal state? This will make it easier to read for my viewers I think. Thanks!

rohithpaul

Yes you can change the text color, just modifying few lines in css.After u purhcase let me know if you need my help. thx

yorkiead Purchased

Hi i’m getting an error when trying to submit the contact form. It’s saying “There was a problem sending your message. Please try again.” Here is my form: <form id=”contactForm” action=”processForm.php” method=”post”>

  • <input type=”text” name=”senderName” id=”senderName” placeholder=”Please type your name” required/>
  • <input type=”email” name=”senderEmail” id=”senderEmail” placeholder=”Please type your email address” required />
  • <input type=”text” name=”senderPhone” id=”senderPhone” placeholder=”Please type your phone number” required />
  • <textarea name=”message” id=”message” placeholder=”Please type your message” required cols=”80” rows=”10” maxlength=”10000”></textarea>
  • <input type=”submit” id=”sendMessage” name=”sendMessage” value=”Send Email” />
</form> Here is my script: <script type=”text/javascript”>

var messageDelay = 2000; // How long to display status messages (in milliseconds)

// Init the form once the document is ready $( init );

// Initialize the form

function init() {

// Hide the form initially.
// Make submitForm() the form's submit handler.
// Position the form so it sits in the centre of the browser window.
$('#contactForm').submit( submitForm ).addClass( 'positioned' );
// When the "Send us an email" link is clicked:
// 1. Fade the content out
// 2. Display the form
// 3. Move focus to the first field
// 4. Prevent the link being followed
$('a[href="#contactForm"]').click( function() {
  $('#content').fadeTo( 'slow', .2 );
  $('#contactForm').fadeIn( 'slow', function() {
    $('#senderName').focus();
  } )
} );
return false;
// When the "Escape" key is pressed, close the form
$('#contactForm').keydown( function( event ) {
  if ( event.which == 27 ) {
    $('#contactForm').fadeOut();
    $('#content').fadeTo( 'slow', 1 );
  }
} );

}

// Submit the form via Ajax

function submitForm() { var contactForm = $(this); }

// Are all the fields filled in?
if ( !$('#senderName').val() || !$('#senderEmail').val() || !$('#senderPhone').val() || !$('#message').val() ) {
// No; display a warning message and return to the form
$('#incompleteMessage').fadeIn().delay(messageDelay).fadeOut();
contactForm.fadeOut().delay(messageDelay).fadeIn();
} else {
}
// Yes; submit the form to the PHP script via Ajax
$('#sendingMessage').fadeIn();
$.ajax( {
  url: contactForm.attr( 'action' ) + "?ajax=true",
  type: contactForm.attr( 'method' ),
  data: contactForm.serialize(),
  success: submitFinished
} );
// Prevent the default form submission occurring
return false;

// Handle the Ajax response

function submitFinished( response ) { response = $.trim( response ); $(’#sendingMessage’).fadeOut(); }

if ( response == "success" ) {
// Form submitted successfully:
// 1. Display the success message
// 2. Clear the form fields
// 3. Fade the content back in
$('#successMessage').fadeIn().delay(messageDelay).fadeOut();
$('#senderName').val( "" );
$('#senderEmail').val( "" );
$('#senderPhone').val( "" );
$('#message').val( "" );
$('#content').delay(messageDelay+500).fadeTo( 'slow', 1 );
} else {
}
// Form submission failed: Display the failure message,
// then redisplay the form
$('#failureMessage').fadeIn().delay(messageDelay).fadeOut();
$('#contactForm').delay(messageDelay+500).fadeIn();

</script>

And here is my php:

<?php

// Define some constants define( “RECIPIENT_NAME”, “Charles Sowden” ); define( “RECIPIENT_EMAIL”, “dane@yorkieadvertising.com” ); define( “EMAIL_SUBJECT”, “Brookvale Mazda Mobile Contact Form” );

// Read the form values $success = false; $senderName = isset( $_POST[‘senderName’] ) ? preg_replace( ”/[\.\-\’ a-zA-Z0-9]/”, ””, $_POST[‘senderName’] ) : ””; $senderEmail = isset( $POST[‘senderEmail’] ) ? preg_replace( ”/[\.\-\\@a-zA-Z0-9]/”, ””, $_POST[‘senderEmail’] ) : ””; $senderPhone = isset( $POST[‘senderPhone’] ) ? preg_replace( ”/[^\.\-\\0-9]/”, ””, $_POST[‘senderPhone’] ) : ””; $message = isset( $_POST[‘message’] ) ? preg_replace( ”/(From:|To:|BCC:|CC:|Subject:|Content-Type:)/”, ””, $_POST[‘message’] ) : ””;

// If all values exist, send the email if ( $senderName && $senderEmail && $senderPhone && $message ) { $recipient = RECIPIENT_NAME . ” <” . RECIPIENT_EMAIL . ”>”; $headers = “From: ” . $senderName . ” <” . $senderEmail . ”>”; $success = mail( $recipient, EMAIL_SUBJECT, $message, $headers ); }

// Return an appropriate response to the browser if ( isset($_GET[“ajax”]) ) { echo $success ? “success” : “error”; } else { ?>

<head>
  <title>Thanks!</title>
</head>
<?php if ( $success ) echo “

Thanks for sending your message! We’ll get back to you shortly.

” ?> <?php if ( !$success ) echo “

There was a problem sending your message. Please try again.

” ?>

Click your browser’s Back button to return to the page.

<?php } ?>

I’m at a loss as to what’s going on here..

rohithpaul

This shouldn’t happen. IT works fine in my machine, can you give me the URL.

by
by
by
by
by
by