html("Le stream est actif") }else{ $("#info").html("Le stream n'est pas actif") $("#click").click(function(){ chrome.tabs.create({url :'https://www.twitch.tv/darkbestplayer'}) }) } } } xhr.send() ``` Fichier bakground.js ``` setInterval(function(){ checkStream(); }, 5000); function
html){ afficher(html); history.pushState({key : i}, 'titre', url); }, error: function(XMLHttpRequest,textStatus,errorThrown){ alert(textStatus); } }); }; window.onpopstate = function(event){ var urlcourant = document.location.pathname; alert(event.state); if(event.state == null){ $.ajax({ url : '/intranet/refonte/index.php', cache
html = ''; foreach ($projects as $project) { $html .= $this->renderView('resume.html.twig', array( 'project' => $project, )); } if ($html == '') { $this->addFlash('error', 'warn.project.check'); return $this->redirect($this->generateUrl('project_list')); } // Génération du pdf $html2pdf = $this
html->link($html->image('/img/fre.png', array('alt'=>'Français','title'=>'Français')), array('language'=>'fre')+$this->params'pass'], array('escape'=>false));?>
html , je voulais donc récupérer les informations du xml en jquery pour les affichers dans mon html , mon code me parraît bon mais j'obtiens l'erreur suivante : XMLHttpRequest cannot
Html->link(__('Liste des cadences'), array('action' => 'index')); ?> [/code] Mon index.ctp [code]
html){ if(html){ $("#statut_middle").append(html); $("#loader_reload_statut").hide(); }else{ $("#loader_reload_statut").html("Il n'y a plus de statut à télécharger."); } }, error: function(){ alert('Une erreur
html qui est amener à évoluer. - Le fichier structure html est en php pour ajouter : header('Access-Control-Allow-Origin: \*', true); pour autoriser l'origine externe de la requête. La fonction
html) && (content_html != ''))bdy.innerHTML = content_html; content.appendChild(bdy); ftr.className ='modal-footer'; ftr.innerHTML = footer; content.appendChild(ftr); $('body').append(modal); create_button("button", "Envoyer", "modalClick", "#modalHere", "modalClick", true, "#envoyerInformations");//mettre display none