Unrelated to your issue, I would consider an effects queue.

Just sayin'

On Thu, 4 Jun 2009 15:17:24 -0230, "Dave Maharaj :: WidePixels.com"
<d...@widepixels.com> wrote:
> I am cleaning up some html code and originally i had
> <li>
>   <div class="loading" id="loading_profile"></div>
>   <div id="profile">
>     <dl class="entry" >
>       <dt>Profile Settings</dt>
>       <dd class="skills">
>         <?php foreach ($user['Preferences'] as $preference): 
>       echo $preference['name'] . ', ';
>         endforeach; ?>
>       </dd>
>     </dl>
>   </div>
> </li>
>  
> but the DIV inside the LI was too much so I went with adding the
> id="profile
> to <LI> but script is no longer working 
>  
> <li id="profile">
>   <div class="loading" id="loading_profile"></div>
>   <div     <dl class="entry" >
>       <dt>Profile Settings</dt>
>       <dd class="skills">
>         <?php foreach ($user['Preferences'] as $preference): 
>       echo $preference['name'] . ', ';
>         endforeach; ?>
>       </dd>
>     </dl>
> </li>
>  
> SCRIPT:
> $("a[class^='edit_']").click(function(){
>  var url_id = $(this).attr('href');
>  var x = $(this).attr('id').split('_');
>  var y = x[0];
>  var z = x[1];
>   $("#loading_"+z).show("fast", function() {
>    $("#"+z).slideUp( 1000, function(){
>     $(".edit_"+z).hide(0.1, function() {
>      $("#"+z).load( url_id , function(){
>       $("#"+z).slideDown( 1000, function() {
>        $("#loading_"+z).hide(function(){
>         $("#"+z).fadeTo("fast", 1, function() {
>          $("#"+z).fadeIn("slow");
>         });  
>        }); 
>       });
>      return false;
>      });
>     });
>    });
>   });
>  });
>  
> Do i eed to edit the selecot as li#?
>  
> Dave

Reply via email to