Find Jobs
Hire Freelancers

545151 Jquery Refresh if Content is different.

N/A

Concluído
Publicado há mais de 12 anos

N/A

Pago na entrega
I currently have a page that uses [login to view URL] on a timer to load an external php script into a div. That php script queries my mysql database for the last entry and then returns an iframe with an embedded google map. My problem is with the [login to view URL] it doesnt check to see if the data is different so my page still refreshes every 5 seconds. I would like to be able to call the external php script and return the data, then jquery can check to see if it matches the current content, if so, just ignore it. If it doesnt, then update the div which will cause the page to refresh to the new map location. -------- <script src="[login to view URL]"></script> <script> $(document).ready(function() { $("#timediv1").load('[login to view URL]'); var refreshId = setInterval(function() { $("#timediv1").load('[login to view URL]'); }, 5000); $.ajaxSetup({ cache: false }); }); </script> -------- [login to view URL] returns echos an iframe tag with the embedded googlemap. I can write the php to match whatever the jquery is looking for, i'm open to suggesions.
ID do Projeto: 2291093

Sobre o projeto

1 proposta
Projeto remoto
Ativo há 12 anos

Quer ganhar algum dinheiro?

Benefícios de ofertar no Freelancer

Defina seu orçamento e seu prazo
Seja pago pelo seu trabalho
Descreva sua proposta
É grátis para se inscrever e fazer ofertas em trabalhos
Concedido a:
Avatar do Usuário
Clear with Requirement. Ready to get started. Quality work Assured. Thanks.
$25 USD em 1 dia
5,0 (703 avaliações)
7,8
7,8

Sobre o cliente

Bandeira do(a) UNITED STATES
Ortonville, United States
5,0
5
Método de pagamento verificado
Membro desde jan. 12, 2012

Verificação do Cliente

Obrigado! Te enviamos um link por e-mail para que você possa reivindicar seu crédito gratuito.
Algo deu errado ao enviar seu e-mail. Por favor, tente novamente.
Usuários Registrados Total de Trabalhos 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)
Carregando pré-visualização
Permissão concedida para Geolocalização.
Sua sessão expirou e você foi desconectado. Por favor, faça login novamente.