I have a trouble with my code, the Site works on Angular.js and the submission for the form show Error 404 Cannot POST . I think the $[login to view URL] no have the correct path.
However i need a freelancer to fix the problem quickly.
I have the SSH access to make this possible.
Controller JS:
-------------------------------------------------------------------------------------------------------------
[login to view URL]('GeekSolutionsController',['$resource','$scope', '$cookies', '$cookieStore','$http','$analytics', '$location', '$route', '$routeParams', '$rootScope', 'httpUpdate', function ($resource, $scope, $cookies, $cookieStore, $http, $analytics, $location, $route, $routeParams, $rootScope, httpUpdate) {
/* Usage of $[login to view URL] =... instead of this.var=... will result in calling directly {{[login to view URL]}}
* in HTML'angular instead of calling the controller specifically as {{[login to view URL]}}
*/
$[login to view URL] = {
result: 'Antes de enviar tu solicitud para el evento, verifica que la información sea correcta. '
};
[login to view URL] = function () {
var scope = [login to view URL]($('#razon_social')).scope();
[login to view URL]('Los datos son: ' + scope);
$[login to view URL]('/mailEvent', $[login to view URL]).success(function (data, status, headers, config) {
/*$[login to view URL] = 4;*/
[login to view URL]('Success: ' + data);
$[login to view URL] = 'El mensaje fue enviado satisfactoriamente. ¡Muchas gracias!'; // clear the form so our user is ready to enter another
// $[login to view URL]('ContactForm', { category: 'Contact', label: 'ContactForm' });
}).error(function (data, headers, status, config) {
var pathname = [login to view URL];
[login to view URL]('El error es el siguiente: ' + data);
[login to view URL]('El encabezado es: ' + headers);
[login to view URL]('El config es: ' + config);
[login to view URL]('El status es: ' + status);
[login to view URL]('El pathname es: ' + pathname);
//$[login to view URL] = 4;
$[login to view URL] = 'El mensaje no fue enviado, hemos detectado amenazas de seguridad.';
});
};
}]);
Server side JS:
-------------------------------------------------------------------------------------------------------------
[login to view URL]('/mailEvent', function (req, res) {
[login to view URL]('Pasamos al [login to view URL]');
var smtpTrans = [login to view URL](smtpTransport(SMTPoptions));
//Variables are body. : subject, text, name, mail, phone, ext, business, address
var mailOptions = {
from: '',
to: '',
//to: '',
replyTo: [login to view URL],
subject: [login to view URL],
text: [login to view URL],
//Use object : req.body.ng-model to be posted from angular,
html: ''
};
[login to view URL](mailOptions, function (err, responseStatus) {
[login to view URL](); // Don't forget to close the connection pool!
[login to view URL]('/mailEvent sendMail Called');
if (err)
[login to view URL](err);
[login to view URL]('It worked!');//Response required for Angular & Express method
});
});
The error still there friends, i have HTML5, Angular Controller, Server Side.
However i have other forms works perfectly in the site, but this one no work.
I paid only the just. We can chat and discuss the job.
Cheers!
Hello, I am eager to work on this project because it fits my experience and skill.I believe I would deliver ot you the best of work. I have handled many projects of this nature for over seven years now and therefore I would be able to work faster and efficiently on this one. Feel free to go through my profile to inspect the reviews and feedback I have had on my most rcent projects.I have a lighter workload currently, and I woudl dedicate enough time to doing the project. You are assured of quality work and timely delivery.