Jump to content
Fórum Script Brasil
  • 0

.bind .one não funciona para cancelamento do 2 load


Enigma_avatar

Question

existe alguma forma de evitar um segundo load ou desabilitar o elemento que ativa ele?

exemplo do problema

somente os 2 primeiros links estao linkados com conteudos ( Login/Panel e Ygopro/ads) pois ainda estou tentando resolver o codigo para prosseguir.

a 1 parte de mover esta perfeito, o problema e na hora do click toda hora que seleciono algum link ele recarrega a div novamente.

script

$('#link2 a, #clicklogin').click(function(){
    goTo(1,0); 
    $('#paginalogin').load("includes/novo_pag_login.php");
    $('#clicklogin').one('click');
});

$('#link3 a, #clickygopro').click(function(){
    goTo(2,0);
    $('#paginaygopro').load("includes/novo_pag_ads.php");
    $('#clickygopro').unbind('click');
});
pagina
<div id="main">

 <section id="box1" class="box"> <nav> 
  <ul>
    <li id="link1"><a href="#"><img src="imagens/yugionline.png" width="100%" height="54" border="0"></a></li>
    <li id="link2"><a id="clicklogin" href="#">Login/Painel</a></li>
    <li id="link3"><a id="clickygopro" href="#">YgoPro-ADS</a></li>
    <li id="link4"><a href="#">Power Of Chaos</a></li>
    <li id="link5"><a href="#">Dueling Network</a></li>
    <li id="link6"><a href="#">Ferramentas</a></li>
    <li id="link7"><a href="#">Bate Papo</a></li>
    <li id="link8"><a href="#">Parceria</a></li>
    <li id="link9"><a href="#">Contato</a></li>
  </ul>
  </nav>  
  <h2><?include("includes/novo_paginainicial.php");?></h2>

  </section> 
  
  <section id="box2" class="box">
   <nav> 
  <ul>
<li id="link1"><a href="#"><img src="imagens/yugionline.png" width="100%" height="54" border="0"></a></li>
    <li id="link2"><a id="clicklogin" href="#">Login/Painel</a></li>
    <li id="link3"><a id="clickygopro" href="#">YgoPro-ADS</a></li>

<li id="link4"><a href="#">Power Of Chaos</a></li>
<li id="link5"><a href="#">Dueling Network</a></li>
<li id="link6"><a href="#">Ferramentas</a></li>
<li id="link7"><a href="#">Bate Papo</a></li>
<li id="link8"><a href="#">Parceria</a></li>
<li id="link9"><a href="#">Contato</a></li>
</ul>
</nav>


<h2> <div id="paginalogin"></div>  </h2>



</section>
<section id="box3" class="box">
<nav>
<ul>
<li id="link1"><a href="#"><img src="imagens/yugionline.png" width="100%" height="54" border="0"></a></li>
    <li id="link2"><a id="clicklogin" href="#">Login/Painel</a></li>
    <li id="link3"><a id="clickygopro" href="#">YgoPro-ADS</a></li>

<li id="link4"><a href="#">Power Of Chaos</a></li>
<li id="link5"><a href="#">Dueling Network</a></li>
<li id="link6"><a href="#">Ferramentas</a></li>
<li id="link7"><a href="#">Bate Papo</a></li>
<li id="link8"><a href="#">Parceria</a></li>
<li id="link9"><a href="#">Contato</a></li>
</ul>
</nav>

<h2><div id="paginaygopro"></div></h2>


</section>

uma luz aew e feliz ano novo pro 6

Link to comment
Share on other sites

0 answers to this question

Recommended Posts

There have been no answers to this question yet

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



  • Forum Statistics

    • Total Topics
      152k
    • Total Posts
      651.5k
×
×
  • Create New...