Questions tagged as 'ajax'

1
answer

Site navigation without reload using ajax does not work correctly

All right? Next, I'm making a site with AJAX navigation so you do not have to load the site every time you go to a page. Home, news, contact, etc .. I managed to make the site, update the url, return button, everything right .. However I...
asked by 22.04.2015 / 15:30
1
answer

How to get the number of images in a folder with Javascript / Jquery

I tried to use this function: function getCount(foldername) { var myObject, f, filesCount; myObject = new ActiveXObject("Scripting.FileSystemObject"); f = myObject.GetFolder(foldername); filesCount = f.files.Count;...
asked by 01.06.2015 / 20:13
3
answers

Get URL ID Code and insert into JS

How to get the code galeria of url http://URL/galerias.php?galeria=casais and put in js? $(document).ready(function() { $('#conteudo').load('galeria.php?galeria='prodId'', function(){ $('#gallery a').lightBox...
asked by 04.03.2015 / 04:28
2
answers

Open another page in JQuery modal

I have a problem that I can not resolve in any way. Well, I have a project in Asp.NET MVC as follows: Home Model public class Objeto { public Objeto() { } public Objeto(string nome, double valor, double perc...
asked by 13.04.2015 / 17:03
1
answer

How to get values to populate a dropdown dynamically

I'm developing in .NET MVC and in my application, I have a form that registers people via Ajax. This element should appear in a dropdown list, it should appear dynamically without refreshing the page, does anyone know of any way to do this?...
asked by 10.03.2015 / 17:18
3
answers

How to execute a jquery / javascript function only on page load and avoid postback?

Hello. I have a function to "create" a Accordion of jQuery UI in my div . It turns out that inside this my div there are several controls that make post on the page. What I want is that by making a post on the page, my accordion...
asked by 30.12.2014 / 17:10
1
answer

How to make a for inside an html + = of Ajax?

Hello everyone, I have a problem and I wanted help. How can I make a for within html += of ajax? JS: $('.requerAjax').click(function(e) { e.preventDefault(); var mes = $(this).attr('rel'); $.ajax({ type:...
asked by 03.01.2015 / 00:10
1
answer

After filtering content, jQuery does not work

I made a code listing database items with PHP (using data-id for jQuery to "read" the click), but when you filter the items using Ajax, click it to work. PHP while ($furni = $furnis->fetch_assoc()) { echo '<img src="./web-gallery...
asked by 22.03.2015 / 14:53
1
answer

Delete record without page refresh?

I have the following Ajax / Jquery to delete a record according to the action of a href. <script type="text/javascript"> function apagarRegistro(idTel) { var baseurl = '<?php echo $sig_url;?>'; $.a...
asked by 13.02.2015 / 13:51
1
answer

How to send PHP variables using Ajax

I'm loading the page through ajax but as I have to send parameters via url I do not know how to send them with ajax. I tried it that way <?php $album=$_GET['album']; $id=$_GET['ntf']; ?> <script type="text/javascript"> $(functi...
asked by 22.11.2014 / 20:15