Tagged: jquery RSS

  • Nathan Haskins 6:32 pm on October 6, 2010 Permalink | Reply
    Tags: ajax, html, javascript, jquery,   

    moving data from php to javascript: static includes 

    research into including php generated html into javascript for ajax dom updates.

    yea… its all about removing the \n ‘s from the human readable markup. im trying to get it so i can edit one nice html template, and have php insert the data, and then minify it for javascript, so javascript can add it to the page at whim. so many buzz words.

    much more research needs to be done into further stress testing the minify function, although it currently accept quite a bit.also need to work on a function to merge the human readable html template with mysql data… it does that, then calls minify, then hands it back to javascript initially as an inline variable, and later as json. I need to get it so i have nice clean template with variable holders….dry as possible.

     
  • Nathan Haskins 9:18 am on May 26, 2010 Permalink | Reply
    Tags: , IE, jquery, menus, slideshow, z-index   

    IE js menus hide behind jQuery slide show 

    This is a problem I’ve ran into in the past, but failed to document properly.

    http://brenelz.com/blog/squish-the-internet-explorer-z-index-bug/

    http://annevankesteren.nl/2005/06/z-index

    Here is the link I used to solved it . dude breaks it down simple. Just make the header z-index higher than the body content.

    http://webdemar.com/webdesign/superfish-jquery-menu-ie-z-index-bug/

     
  • Nathan Haskins 12:47 pm on May 5, 2010 Permalink | Reply
    Tags: jquery, studio2108.com   

    studio 2108 sliding menus vs static for seo 

    Sliders are awesome, but are they blocking google from indexing? The idea is to use jQuery to change the links at runtime to # href’s for ‘sliding’. While the original will remain as static paths to pages. Should work right? google doesn’t process JS….

    sudo

    //find any link with the class nav_home, and that have a # in the href value
    //store the value in an array, split it into 2, # and string
    //save the string value as a var
    //replace the value of the href with the string var

    ened up going with this kinda of deal:

    $(function(){
    
    //swap out the default permalink addresses with anchor jumps
    
    $("li.nav_home>a"     ).attr("href",      "#home");
    $("li.nav_about>a"    ).attr("href",     "#about");
    $("li.nav_services>a" ).attr("href",  "#services");
    $("li.nav_portfolio>a").attr("href", "#portfolio");
    $("li.nav_contact>a"  ).attr("href",   "#contact");
    
    });
    

    http://stackoverflow.com/questions/179713/how-to-change-the-href-for-a-hyperlink-using-jquery