Random
- Tru frame Product promotion Work Graphic Design 2016
- AJAX Remote Read, Local Write w/JavaScript //the callback function run after loading JSONp below function test_results_loaded(data){ //post data to a service via ajax var xhr = new XMLHttpRequest(); xhr.open("POST", "https://orgnsm@orgnsm.org:lkAGWUE01H@orgnsm.testrail.com//index.php?/api/v2/add_result/1", true); xhr.setRequestHeader('Cont... Code JavaScript JQuery 2013
- Obtain matching entities function obtain_entities_by_type($entity_type,$bundle,$limit=10,$offset=0,$subject_nid=FALSE){ $query=new EntityFieldQuery(); $query->entityCondition('entity_type', $entity_type) ->entityCondition('bundle', $bundle) ->propertyCondition('status', 1) ->range($offset, $limit... Code Template Coding Drupal 2013
- Reading/setting Drupal config variables <?php function organic_context_config_page(){ $form = array(); $form['onthisdate_maxdisp'] = array( '#type' => 'textfield', '#title' => t('Maximum number of links'), '#default_value' => variable_get('onthisdate_maxdisp', 3), '#size' => 2, '#maxlength' =&... Code Drupal 2014
- Show field when a different selection is made on the same form function HOOK_form_alter( &$form, &$form_state, $form_id ){ if( $form_id == "user_register_form" || $form_id == "user_profile_form" ) { // Shows OTHER text field when 'Other' is selected as their specialty $form["field_specialty_other"]["#states"] = array( "visible" => arr... Code JavaScript Template Coding Drupal 2013
- Nested-query approach to mining field_collection data and relationship <?php function get_species_country($id_country) { $inner = new EntityFieldQuery(); $inner_r = $inner->entityCondition('entity_type', 'field_collection_item') ->fieldCondition('field_species_country', 'target_id', $id_country, '=') ->execute(); if(!emp... Code Template Coding Drupal 2014
- In the Weeds Restaurant Management Tool Stylesheet Coding JavaScript Work 2016
- Lotto-rithm Algorithm knowledge promotion Work Graphic Design 2016
- Dynamic Form Submission The JavaScript jQuery(function($){ $("#contact").submit(function(){ //grab form values before blowing it out of the DOM in the next line values=$(this).serialize(); $("#contact").html( "<p>Sending message...</p>\n" ); //send the values to the PHP handler $.aja... Code JavaScript PHP JQuery 2013
- Custom Post Types Adds custom post type called "Reviews" <?php function create_post_type(){ register_post_type('review', array( 'labels'=>array( 'name'=>__('Reviews'), 'singular_name'=>__('Review') ), 'public'=>true, 'has_archive'=>true, 'capabilities'=>array... Wordpress Code 2016
- AG & Associates Construction Portfolio & Promotion Work Wordpress Stylesheet Coding PHP 2016