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, CSS et JS et j'essaye de coder une petite carte interactive des stations de ski autour de Grenoble. Pour ça j'ai créé mes zones ou je souhaite
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 = $view->loadHelper('Html'); ``` Et pour l'utiliser : ``` $html->link() ``` Je n'ai pas trouvé d'éléments satisfaisant dans la doc à ce sujet ... Quelqu'un aurait-il la solution
Html->image(sprintf($post'thumbf'],800,200)) endif . " " . $post'intro']; echo $this->Rss->item(array(), array( 'title' => $post'name'], 'link' => $this->Html->url($post'link'], true), 'guid' => array('url' => $this
Html->link(__('Liste des cadences'), array('action' => 'index')); ?> [/code] Mon index.ctp [code]
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){ afficher(html); }, error:function(XMLHttpRequest, textStatus, errorThrown){ alert(textStatus); } }) return false; }); $("#main-menu a").bind('click',function(){ page=$(this).attr("href"); $("a ").removeClass('active'); $(this).addClass('active'); $.ajax({ url: "contenu
html de la nav page index: ``` CONTACT ABOUT WORK ``` Fichier html de la nav page interne: ``` CONTACT ABOUT WORK ``` Merci d'avance pour toute aide que vous pourrez m'apporter
html = new simple_html_dom(); $html->load_file($lien2); $csv = []; $tr = $html->find('#btable', 0); foreach ($tr->find('tr') as $item) { $td = $item->find("td"); $temp = []; for ($i = 0; $i < sizeof