Sunday, 14 December 2014

Fetch cities from database in alphabetical order

Code To  Fetch cities in Alphabetical order with jquery Ajax ---

$(document).ready(function(){

$(".country").change(function() {
setTimeout(
  function()
  {
      var options = $('select.city option');
    var arr = options.map(function(_, o) {
        return {
            t: $(o).text(),
            v: o.value
        };
    }).get();
    arr.sort(function(o1, o2) {
        return o1.t > o2.t ? 1 : o1.t < o2.t ? -1 : 0;
    });
    options.each(function(i, o) {
        console.log(i);
        o.value = arr[i].v;
        $(o).text(arr[i].t);
    });

  }, 1000);

});

-------------------------------------

$("#input_1_10").change(function() {

//get the selected value

var categ = $("#input_1_10 option:selected").text();
    //var state = this.value;
var  city = $("#input_1_21").val();
//var category = $("#input_1_10").val();
//var  categ = $("#input_1_10 option:selected").text();


//alert(categ+city);

   $.ajax({
        url: 'http://therapy.leadingedgeinfosolutions.com/chkstatus.php',
        type: 'POST',
        data: {city : city,category: category},
        success: function(data) {


        if( data == 'no')
{

$("#lightf2").show();
$("#fade").show();
$("#input_132").val(state);
$("#input_98").val(categ);


return false;
}
         
        }
    });
    //make the ajax call

});
});
</script>

Jquery No Conflicts Code Goes here

<script src="jquery.js"></script>


<script>
$.noConflict();

jQuery( document ).ready(function( $ ) {

  // Code that uses jQuery's $ can follow here.

});

// Code that uses other library's $ can follow here.

</script>

Map the original object that was referenced by $ back to $.


jQuery.noConflict();
// Do something with jQuery
jQuery( "div p" ).hide();
// Do something with another library's $()
$( "content" ).style.display = "none";

The jQuery noConflict() Method

$.noConflict(); jQuery(document).ready(function(){   jQuery("button").click(function(){     jQuery("p").text("jQuery is still working!");   }); });
You can also create your own shortcut very easily. The noConflict() method returns a reference to jQuery, that you can save in a variable, for later use. Here is an example:
var jq = $.noConflict(); jq(document).ready(function(){   jq("button").click(function(){     jq("p").text("jQuery is still working!");   }); });

Sliders Tooltip and Other Useful Stuff

http://www.htmldrive.net/ - 

Saturday, 13 December 2014

Total Plugins Used Details

1. contact form-7
2. gravity form
3. just custom fields for wordpress plugin
4. Social media plugins
5. store locator plgin
6. wp-e-commerce plugin
7. All In One SEO Pack plugin
8. Nextgen Gallery plugin
9. google captcha plugin
10. math captcha
11. Paid membership pro plugin  --- http://www.paidmembershipspro.com/homepage/
12. Contact Form 7 Datepicker
13. Custom Facebook Feed
14. HG Slider
15. Profile Builder -- Login, registration and edit profile shortcodes for the front-end
16. Recent Posts Widget Extended..
17. Smooth Scroll Up -- Smooth Scroll Up is a lightweight plugin that creates a customizable "Scroll to top / Back to top
18. WP Flicker - WP Flicker plugin will display your flicker images just like a nice image gallery.
19 .All In One SEO Pack
20. Gravity Forms Category Selector Add-On
21. Gravity Forms PayPal Add-On
22. Gravity Forms User Registration Add-On
23. Newsletter - Newsletter is a cool plugin to create your own subscriber list, to send newsletters, to build your business. Before update give a look to this page to know what's changed.
24. WordPress Researcher -- WordPress research tool.
25. Advanced-Custom-Fields - https://wordpress.org/plugins/advanced-custom-fields/screenshots/
26 . Buddy Press

27. wordpress security plugin - https://wordpress.org/plugins/wordfence/installation/   -- Good      Some sites worked with on wordpress

28 . recent-posts-slider.0.7.5   - shows featured images title in slide show

29.ajaxy-search-form  - seraches all posts

30 . azindex  - shows hotel list on single page

sites -
1. http://www.mammalena.info/
2. http://hillcrestfarmmarket.com/
3. http://beckyfox.com
4. http://www.swimava.com/
5. https://revyrealty.com/
6. http://www.kelownamartialarts.com/  -  quest martial arts kelowna
7. http://www.thepondsbellevue.ca/
8. http://siciliana.it/sicilywine/
9. http://www.talkingimage.co.uk/
10. http://www.cuttingedgeconcepts.ca/
11. http://www.kellyobryans.com/
12. http://www.skiwest.ca/
13. http://www.thecreekskelowna.ca/
14.http://www.missiongroup.ca/aqua-marine-valet/
15. http://bettselectric.com/
16. http://www.sports-ville.in/
17. http://outlawsonline.com/
18 . http://christianprisonpenpals.org/

http://allyourwebsolutions.blogspot.in

     --   Themes worked  --
   1. zippy
   2. cherry framework
   3. classipress  - for directory sites
   4.  genesis theme
  5.  Zeeflow
  6. custom themes and child themes 

Gravity Form Access the input values of individual form elements using their IDs like so

Following the Gravity guidelines you set up the hook to call your own function - in the case below the function is after_submission().

You can access the input values of individual form elements using their IDs like so;


add_action("gform_after_submission", "after_submission", 10, 2);

function after_submission($entry, $form){

    $name = $entry["2"];
    $address = $entry["17"] . ', '. $entry["18"] .', '. $entry["19"];


}