Find Jobs
Hire Freelancers

2 small javascript adjustments to existing form page

$30-250 USD

Terminado
Publicado hace alrededor de 10 años

$30-250 USD

Pagado a la entrega
Hi! I have a page that dynamically creates a bunch of forms that then through jquery/ajax submits to a target page. I need to add two functions to the form. 1. Each generated form should have a random value from an array. 2. Each form should have its own result-div. The current code which uses some ASP.NET server coding (taken out) looks like this: //SERVERCODE —————————— //SERVERCODE %> <script type="text/javascript" src="[login to view URL]"></script> <script type="text/javascript" > var USERNAMES = ['USERNAME1’, ’USERNAME2’, ’USERNAME3’]; </script> <% //SERVERCODE THAT FETCHES SOM VALUES AND MAKES LOOP //Creates a ’count’ variable that increases with one for each loop count = count + 1 It basically creates a form for all items in a row. %> <strong> <div id="results"></div> <form name="contact<%=count%>" action=”[login to view URL]" method="POST" id="contact<%=count%>"> <div><%=variable1%>. <%=variable1%></div> <div>id: <input type="text" name="id" id="id" value=<%=id%> /></div> <div>kopare: <input type="text" name=”buyer” id=”buyer” value=”RANDOMSELECTEDUSERNAMEFROMUSERNAMESARRAY” /></div> <div>Bud: <input type="text" name=”bid” id=”bid” value="<%=bid%>”/></div> <div id=”result<%=count%>”></div> <div><input type="submit" name="submit" value="Submit" /></div> </form> <hr> <% //SERVERCODE /End of loop etc… %> <script type="text/javascript"> $(document).ready(function() { $("form").submit(function() { // Getting the form ID var formID = $(this).attr('id'); var formDetails = $('#'+formID); $.ajax({ type: "POST", url: '<%=target%>.aspx', data: [login to view URL](), success: function (data) { // Inserting html into the result div //The results should be shown in each forms private div. $('#results').html(data); }, error: function(jqXHR, text, error){ // Displaying if there are any errors $('#result').html(error); } }); return false; }); }); </script>
ID del proyecto: 5411333

Información sobre el proyecto

7 propuestas
Proyecto remoto
Activo hace 10 años

¿Buscas ganar dinero?

Beneficios de presentar ofertas en Freelancer

Fija tu plazo y presupuesto
Cobra por tu trabajo
Describe tu propuesta
Es gratis registrarse y presentar ofertas en los trabajos
Adjudicado a:
Avatar del usuario
Hi, I'm a recent graduate with a degree in Computer Science and a lot of experience with JavaScript. I would love to help you out on your project. The only part I'm not totally clear about is the result divs - do you mean you want the result of each specific form to post the AJAX returned data into a specific div? Ie, <form1></form1><div1>#data would go here from form 1</div1><form2></form2><div2>#data from form2 here</div2>?
$40 USD en 2 días
5,0 (5 comentarios)
3,6
3,6
7 freelancers están ofertando un promedio de $73 USD por este trabajo
Avatar del usuario
hi , please check my feedback regarding my work hope you will be satisfied , i have 3 years of php experience and have good skills in jquery and ajax , will deliver what you want , thanks
$94 USD en 1 día
5,0 (25 comentarios)
6,3
6,3
Avatar del usuario
Hi PntTrading, I am intrested in working with you. I need some more details on this requirements, I need to understand the existing thing. Could you provide me with the Url if available to check.? Await your reply.
$166 USD en 3 días
5,0 (4 comentarios)
3,5
3,5
Avatar del usuario
A proposal has not yet been provided
$63 USD en 3 días
5,0 (1 comentario)
2,3
2,3
Avatar del usuario
I'm a young and experienced frontend creative developer with a lot of enthusiasm and a desire to work, which allows me to create innovative and high quality designs.
$55 USD en 1 día
5,0 (2 comentarios)
1,7
1,7
Avatar del usuario
I am having 8.2 year of experience in web development. I would like to work with you. I complete this task asap.
$55 USD en 1 día
5,0 (1 comentario)
1,8
1,8
Avatar del usuario
Hi Sir, I have worked a lot with jQuery and JavaScript and am completely aware of using it properly. I have scored 80% in jQuery test which might suggest that I have a good hold of it. Moreover if you want I can show you a demo at first (before you award me the project) of the normal functioning of your requirement if you clarify me a bit. Hope you will turn up to me.
$40 USD en 2 días
0,0 (0 comentarios)
0,0
0,0

Sobre este cliente

Bandera de SWEDEN
Bromma, Sweden
5,0
91
Forma de pago verificada
Miembro desde ago 30, 2010

Verificación del cliente

¡Gracias! Te hemos enviado un enlace para reclamar tu crédito gratuito.
Algo salió mal al enviar tu correo electrónico. Por favor, intenta de nuevo.
Usuarios registrados Total de empleos publicados
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Cargando visualización previa
Permiso concedido para Geolocalización.
Tu sesión de acceso ha expirado y has sido desconectado. Por favor, inica sesión nuevamente.