Html->script('tiny_mce/tiny_mce.js', array('inline' => false)); echo $this->Html->scriptStart(array('inline' => false)); ?> tinyMCE.init({ mode : 'textareas', theme : 'advanced', plugins : 'inlinepopups, image', theme_advanced_buttons1 : 'bold, italic, underline, |, bullist, numlist
html(); var progress = ' '; form.html(form+progress); }; function sucessful(data){ donnee = parseJSON(data); if(donnee.status == 'erreur'){ alert(donnee.texte); }else{ $('#form').hide(); var form2 = $('#form2').html(); var content = ' '; $('#form2').html(content+form2
html, body').stop().animate({ 'scrollTop': $target.offset().top+2 }, 500, 'swing', function () { window.location.hash = target; $(document).on("scroll", onScroll); }); }); }); })(jQuery); ``` Code sur ma page html qui fonctionne bien: Code : ``` $(document).ready(function
data){ if(data == 'success'){ $("#resultat").html(" La page a bien été enregistrée "); } else{ $("#resultat").html(" Erreur lors de l'enregistrement "); } }, 'text' ); return false; }); }); Merci de votre aide !
html particulière : je veux placer chaque gallerie dans un code html précis, je ne souhaite donc pas faire de boucle car le html ne se répète pas, donc dans ma vue, pour
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 = renderToString(); const preloadedState = store.getState() res.send(renderFullHtml(html, preloadedState)); }) console.log("=== SERVER STARTED ===") app.listen(8080) function renderFullHtml (html, preloadedState) { return ` Ma page ${html} window.__PRELOADED_STATE__ = ${JSON.stringify(preloadedState).replace(/
html(' '+nouveauPays+' '); $("div[id=two] h2").html(pays).attr('style','margin-top:-14px;padding-bottom:5px;color:#C00'); $('div[id=foo] #list').html(""); $("div[id=foo] div[data-role
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