The document provides an overview and code snippets for an Eagles 2011 NFL Draft mobile app created with Sencha Touch. It discusses challenges faced like learning Sencha Touch, displaying live updates, and adapting images for different screen sizes. Lessons learned include destroying DOM elements when done, establishing post-launch content parameters, and using background-size for images. The document also discusses tooling, dependencies, and best practices for mobile development.
The document provides an overview and code snippets for an Eagles 2011 NFL Draft mobile app created with Sencha Touch. It discusses challenges faced like learning Sencha Touch, displaying live updates, and adapting images for different screen sizes. Lessons learned include destroying DOM elements when done, establishing post-launch content parameters, and using background-size for images. The document also discusses tooling, dependencies, and best practices for mobile development.
This document provides an overview of several JavaScript topics including:
- A 3-part webinar series covering JavaScript history, standards, IDEs, data types, arrays, objects, regular expressions, OOP, and working with the DOM.
- Examples of adding click handlers to buttons and divs, submitting HTML forms with JavaScript, and using the load and other events.
- Working with the window, screen, and document objects, and methods like getElementById.
- Mouse events like mousedown, mouseup, mousemove. Keyboard events and timers.
- Making AJAX requests with raw XMLHttpRequest and jQuery.
The document describes Johannes Brodwall's philosophy of "bare-knuckle web development" which advocates for lightweight frameworks, test-driven development, and avoiding unnecessary complexity. It then demonstrates this approach through building a simple phonebook web application in Java using only the bare essentials like servlets and XML parsing. Finally, it discusses further directions this approach could be taken, such as building applications for the Norwegian agricultural authority and power grid operator.
The document summarizes a library of UI components called Prototype UI that provides reusable JavaScript components like windows, carousels, and menus. It is created by a team including Samuel Lebeau, Juriy Zaytsev, and Sébastien Gruhier. The components are highly customizable, skinnable, and have a coherent API. Examples are provided showing how to create windows that can be dragged and minimized to desktop icons using only a few lines of code. Future plans include adding more tests, documentation, demos, and new components like dialog boxes and portals.
This document discusses quality assurance (QA) for PHP projects. It introduces various QA tools and techniques including syntax checking, documentation, testing, version control and code coverage. Screenshots are provided to illustrate concepts like detecting bugs early, observing behavior and preventing mistakes. The document also includes exercises for attendees to practice setting up version control with Git, running syntax checks with PHP Lint, generating documentation with phpDocumentor, and testing models with PHPUnit.
The document discusses MVC frameworks in JavaScript and covers topics like why use MVC, Backbone and Spine fundamentals, Backbone views, models, collections, routers and history, as well as tips and tricks for using Backbone including bootstrapping data, handling nested models, custom ajax requests, and testing with Jasmine. It provides code examples and explanations of concepts to illustrate how to build applications using the MVC pattern with Backbone.js.
This document contains an XML file that defines a test flow for a message broker. It includes:
- Details of the test modules, monitors, input and output nodes
- An event showing a message being sent to an input queue
- The structure and contents of the message being sent
Getting touchy - an introduction to touch events / Web Standards Days / Mosco...Patrick Lauke
This document discusses touch events and how to handle touch interactions in web applications. It begins by explaining how touch events are simulated using mouse events and the limitations of this approach. It then introduces the native touch events of touchstart, touchmove, and touchend. The document covers handling both single and multiple touch points, touch gestures, and implementing touch-friendly interfaces. It also discusses touch event support across browsers and future pointer event standards.
This document describes a framework for building and launching micro-apps using Node.js, Electron, and Cordova. It discusses using Node.js to build single-page apps and a server, and leveraging Electron and Cordova to deploy the apps as desktop and mobile applications respectively. Code samples are provided for configuring, building, and launching multiple micro-apps from a single application window on different platforms.
The document discusses the importance of unit testing and describes how developers are returning to write good tests after cutting corners during economic difficulties. It provides examples of unit tests being written for an order management system using PHPUnit to test the createOrder method by mocking dependencies and asserting the return value.
TDC2017 | São Paulo - Trilha Java EE How we figured out we had a SRE team at ...tdc-globalcode
This document discusses how to build APIs productively using Spring Boot, Spring MVC, and Spring Data. It covers how Spring Boot helps with dependency management, embedded servlet containers, and auto-configuration. Spring MVC is described as providing simplicity in API exposure and serialization/deserialization. Spring Data provides standard repository implementations and abstraction for data access across different data sources, including support for caching.
This document discusses adding comment functionality to a Ruby on Rails application. It describes creating a Comment model with a polymorphic association that can belong to either a Bill or User. Migrations are run to support the comments table. Code examples demonstrate associating comments to bills and users, and retrieving associated comments. The document provides a tutorial for implementing a basic comments feature that works across multiple models.
This document discusses best practices for developing Node.js applications. It recommends using frameworks like Express for building web apps, libraries like Async to avoid callback hell, and organizing code into modular sub-applications. It also covers testing, error handling, documentation, and open-sourcing projects. Standards like Felix's Style Guide and domain-driven design principles are advocated. Communication channels like events, HTTP APIs, and WebSockets are examined.
※다운로드하시면 더 선명한 자료를 보실 수 있습니다.
머릿속으로 그리던 나만의 앱, 생각만 잔뜩 하고 어디서부터 시작할지 고민 중이세요?
Android에 대한 가벼운 이해를 곁들여서 간단한 앱을 만들어가는 과정을 통해 (앱 개발이 생소한) 개발자들이 느끼는 Android 앱 개발의 진입장벽을 조금 낮춰보는 시간을 준비했습니다.
목차
1. 기획
2. 화면 개발
3. 서버 연동
4. 데이터 UI 바인딩
5. Play Store 출시
대상
Android 앱을 한번 만들어 보고 싶은 개발자라면 누구나
■관련 동영상: https://youtu.be/VhBKxRKPaSo
※다운로드하시면 더 선명한 자료를 보실 수 있습니다.
벅스 Android 5.0에 Kotlin, Jetpack을 적용하면서 얻은 노하우와 시행착오를 공유합니다.
목차
1. 소개
2. Java to Kotlin
3. AAC (Android Architecture Components)
4. 미디어 앱 아키텍처(Media app architecture)
대상
- Kotlin과 Jetpack을 서비스에 적용하려는 Android 개발자
- 관련 Android 기술에 관심 있는 누구나
■관련 동영상: https://youtu.be/PqsjZn30XGE
The document discusses the benefits of CoffeeScript compared to JavaScript. It provides examples of cleaner CoffeeScript syntax for functions, loops, and list comprehensions compared to their JavaScript equivalents. Overall, CoffeeScript code is more concise and readable than plain JavaScript code.
This document contains hacked HTML code that was inserted by "Vaga kontol & Dr_h0uCk BiG BOSS fuck lol". The code includes JavaScript that animates text revealing the message "This site was hacked by vaga-HACkeR Dz. sok jago bangsat" and other messages claiming responsibility for the hack. It also includes code to block right clicking on the page and redirect any clicks.
netmind - Primer Contacto con el Desarrollo de Aplicaciones para Windows 8netmind
The document discusses Windows 8 app development. It covers topics like the Windows 8 platform and tools, UI controls like AppBar and FlipView, semantic zoom and grouping in ListView, contracts, notifications, publishing to the Windows Store, and key development points. Visual Studio 2012 is introduced as the development tool. Code examples are provided for various controls and concepts.
1) The document discusses Geb, a browser automation framework for testing web and mobile applications. It provides examples of using Page Object Model and control modules to organize tests.
2) It describes using selectors, assertions, waiting techniques, and interacting with elements via mouse, keyboard and JavaScript. Multiple browsers are supported for testing.
3) Project structure, organizing requirements as stories and features, implementing page objects and test steps are covered. Other frameworks like Selenide are also mentioned.
This document discusses the key concepts in KnockoutJS including observables, bindings, utilities, data features, and plugins. It provides code examples for creating observables and computed values, using built-in and custom bindings, and leveraging utilities and the mapping plugin. Resources for learning more about KnockoutJS are also listed.
This document discusses using jQuery with Ruby on Rails. It covers including jQuery and rails.js in Rails 3 applications, reproducing CSRF meta tags, using remote links, and rendering JavaScript templates. It also discusses making AJAX requests in Rails 2 applications by returning JSON from controllers and binding to jQuery events in rails.js. The document provides an introduction and agenda for a presentation on integrating jQuery into Ruby on Rails applications.
jQuery & 10,000 Global Functions: Working with Legacy JavaScriptGuy Royse
Long ago, in the late days of the first Internet boom, before jQuery, before Underscore, before Angular, there was a web application built by a large corporation. This application was written as a server-side application using server-side technology like Java or PHP. A tiny seed of JavaScript was added to some of the pages of this application to give it a little sizzle.
Over the ages, this tiny bit of JavaScript grew like kudzu. Most of it was embedded in the HTML in
This document provides an overview of several JavaScript topics including:
- A 3-part webinar series covering JavaScript history, standards, IDEs, data types, arrays, objects, regular expressions, OOP, and working with the DOM.
- Examples of adding click handlers to buttons and divs, submitting HTML forms with JavaScript, and using the load and other events.
- Working with the window, screen, and document objects, and methods like getElementById.
- Mouse events like mousedown, mouseup, mousemove. Keyboard events and timers.
- Making AJAX requests with raw XMLHttpRequest and jQuery.
The document describes Johannes Brodwall's philosophy of "bare-knuckle web development" which advocates for lightweight frameworks, test-driven development, and avoiding unnecessary complexity. It then demonstrates this approach through building a simple phonebook web application in Java using only the bare essentials like servlets and XML parsing. Finally, it discusses further directions this approach could be taken, such as building applications for the Norwegian agricultural authority and power grid operator.
The document summarizes a library of UI components called Prototype UI that provides reusable JavaScript components like windows, carousels, and menus. It is created by a team including Samuel Lebeau, Juriy Zaytsev, and Sébastien Gruhier. The components are highly customizable, skinnable, and have a coherent API. Examples are provided showing how to create windows that can be dragged and minimized to desktop icons using only a few lines of code. Future plans include adding more tests, documentation, demos, and new components like dialog boxes and portals.
This document discusses quality assurance (QA) for PHP projects. It introduces various QA tools and techniques including syntax checking, documentation, testing, version control and code coverage. Screenshots are provided to illustrate concepts like detecting bugs early, observing behavior and preventing mistakes. The document also includes exercises for attendees to practice setting up version control with Git, running syntax checks with PHP Lint, generating documentation with phpDocumentor, and testing models with PHPUnit.
The document discusses MVC frameworks in JavaScript and covers topics like why use MVC, Backbone and Spine fundamentals, Backbone views, models, collections, routers and history, as well as tips and tricks for using Backbone including bootstrapping data, handling nested models, custom ajax requests, and testing with Jasmine. It provides code examples and explanations of concepts to illustrate how to build applications using the MVC pattern with Backbone.js.
This document contains an XML file that defines a test flow for a message broker. It includes:
- Details of the test modules, monitors, input and output nodes
- An event showing a message being sent to an input queue
- The structure and contents of the message being sent
Getting touchy - an introduction to touch events / Web Standards Days / Mosco...Patrick Lauke
This document discusses touch events and how to handle touch interactions in web applications. It begins by explaining how touch events are simulated using mouse events and the limitations of this approach. It then introduces the native touch events of touchstart, touchmove, and touchend. The document covers handling both single and multiple touch points, touch gestures, and implementing touch-friendly interfaces. It also discusses touch event support across browsers and future pointer event standards.
This document describes a framework for building and launching micro-apps using Node.js, Electron, and Cordova. It discusses using Node.js to build single-page apps and a server, and leveraging Electron and Cordova to deploy the apps as desktop and mobile applications respectively. Code samples are provided for configuring, building, and launching multiple micro-apps from a single application window on different platforms.
The document discusses the importance of unit testing and describes how developers are returning to write good tests after cutting corners during economic difficulties. It provides examples of unit tests being written for an order management system using PHPUnit to test the createOrder method by mocking dependencies and asserting the return value.
TDC2017 | São Paulo - Trilha Java EE How we figured out we had a SRE team at ...tdc-globalcode
This document discusses how to build APIs productively using Spring Boot, Spring MVC, and Spring Data. It covers how Spring Boot helps with dependency management, embedded servlet containers, and auto-configuration. Spring MVC is described as providing simplicity in API exposure and serialization/deserialization. Spring Data provides standard repository implementations and abstraction for data access across different data sources, including support for caching.
This document discusses adding comment functionality to a Ruby on Rails application. It describes creating a Comment model with a polymorphic association that can belong to either a Bill or User. Migrations are run to support the comments table. Code examples demonstrate associating comments to bills and users, and retrieving associated comments. The document provides a tutorial for implementing a basic comments feature that works across multiple models.
This document discusses best practices for developing Node.js applications. It recommends using frameworks like Express for building web apps, libraries like Async to avoid callback hell, and organizing code into modular sub-applications. It also covers testing, error handling, documentation, and open-sourcing projects. Standards like Felix's Style Guide and domain-driven design principles are advocated. Communication channels like events, HTTP APIs, and WebSockets are examined.
※다운로드하시면 더 선명한 자료를 보실 수 있습니다.
머릿속으로 그리던 나만의 앱, 생각만 잔뜩 하고 어디서부터 시작할지 고민 중이세요?
Android에 대한 가벼운 이해를 곁들여서 간단한 앱을 만들어가는 과정을 통해 (앱 개발이 생소한) 개발자들이 느끼는 Android 앱 개발의 진입장벽을 조금 낮춰보는 시간을 준비했습니다.
목차
1. 기획
2. 화면 개발
3. 서버 연동
4. 데이터 UI 바인딩
5. Play Store 출시
대상
Android 앱을 한번 만들어 보고 싶은 개발자라면 누구나
■관련 동영상: https://youtu.be/VhBKxRKPaSo
※다운로드하시면 더 선명한 자료를 보실 수 있습니다.
벅스 Android 5.0에 Kotlin, Jetpack을 적용하면서 얻은 노하우와 시행착오를 공유합니다.
목차
1. 소개
2. Java to Kotlin
3. AAC (Android Architecture Components)
4. 미디어 앱 아키텍처(Media app architecture)
대상
- Kotlin과 Jetpack을 서비스에 적용하려는 Android 개발자
- 관련 Android 기술에 관심 있는 누구나
■관련 동영상: https://youtu.be/PqsjZn30XGE
The document discusses the benefits of CoffeeScript compared to JavaScript. It provides examples of cleaner CoffeeScript syntax for functions, loops, and list comprehensions compared to their JavaScript equivalents. Overall, CoffeeScript code is more concise and readable than plain JavaScript code.
This document contains hacked HTML code that was inserted by "Vaga kontol & Dr_h0uCk BiG BOSS fuck lol". The code includes JavaScript that animates text revealing the message "This site was hacked by vaga-HACkeR Dz. sok jago bangsat" and other messages claiming responsibility for the hack. It also includes code to block right clicking on the page and redirect any clicks.
netmind - Primer Contacto con el Desarrollo de Aplicaciones para Windows 8netmind
The document discusses Windows 8 app development. It covers topics like the Windows 8 platform and tools, UI controls like AppBar and FlipView, semantic zoom and grouping in ListView, contracts, notifications, publishing to the Windows Store, and key development points. Visual Studio 2012 is introduced as the development tool. Code examples are provided for various controls and concepts.
1) The document discusses Geb, a browser automation framework for testing web and mobile applications. It provides examples of using Page Object Model and control modules to organize tests.
2) It describes using selectors, assertions, waiting techniques, and interacting with elements via mouse, keyboard and JavaScript. Multiple browsers are supported for testing.
3) Project structure, organizing requirements as stories and features, implementing page objects and test steps are covered. Other frameworks like Selenide are also mentioned.
This document discusses the key concepts in KnockoutJS including observables, bindings, utilities, data features, and plugins. It provides code examples for creating observables and computed values, using built-in and custom bindings, and leveraging utilities and the mapping plugin. Resources for learning more about KnockoutJS are also listed.
This document discusses using jQuery with Ruby on Rails. It covers including jQuery and rails.js in Rails 3 applications, reproducing CSRF meta tags, using remote links, and rendering JavaScript templates. It also discusses making AJAX requests in Rails 2 applications by returning JSON from controllers and binding to jQuery events in rails.js. The document provides an introduction and agenda for a presentation on integrating jQuery into Ruby on Rails applications.
jQuery & 10,000 Global Functions: Working with Legacy JavaScriptGuy Royse
Long ago, in the late days of the first Internet boom, before jQuery, before Underscore, before Angular, there was a web application built by a large corporation. This application was written as a server-side application using server-side technology like Java or PHP. A tiny seed of JavaScript was added to some of the pages of this application to give it a little sizzle.
Over the ages, this tiny bit of JavaScript grew like kudzu. Most of it was embedded in the HTML in
The document discusses techniques for writing clean JavaScript code. It provides examples of code smells and improvements to address issues like attaching events from the outside, separating selection from logic, shallow scope, overwriting default behavior, and separating logic from views. The document advocates for practices like modularizing functions, separating DOM manipulation from models, and creating model objects to represent DOM elements rather than directly manipulating the DOM. It encourages learning clean JavaScript techniques to write better structured and more maintainable code.
This document summarizes jQuery secrets including:
1. Utilities for saving and removing state from DOM elements using jQuery.data() and jQuery.removeData().
2. Global AJAX settings that can be modified using jQuery.ajaxSetup().
3. Shortcuts for AJAX calls like jQuery.get(), jQuery.post(), and jQuery.load().
4. Methods for binding and namespacing events, and extending animation speeds.
This document provides an overview of jQuery, including what it is, why it's useful, how to get started, and some common jQuery syntax. jQuery is a JavaScript library that makes it much easier to use JavaScript on websites. It simplifies tasks like DOM manipulation, event handling, animation, and Ajax. The document explains how to download jQuery, includes some basic jQuery syntax using selectors and methods, and covers various features like effects, HTML/CSS manipulation, events, traversing, and Ajax.
This document discusses various jQuery secrets including:
1. Utilities for saving and removing state from DOM elements using jQuery.data() and jQuery.removeData().
2. Hidden events like getData, setData, and changeData that are emitted when data is read, set, or changed on an element.
3. Extending jQuery with custom functions, properties, and AJAX shortcuts.
4. Binding custom events and namespaces, self-defined animation speeds, and extending jQuery plugins.
The document discusses jQuery, a JavaScript library that makes DOM scripting and Ajax requests easier. It provides functions to select elements, handle events, animate elements and load JSON data. Some key features include CSS selector syntax, DOM manipulation methods, event handling and Ajax functions. The document also covers plugins, effects, and utilities included in jQuery.
This document contains information about protractor training including understanding JavaScript and examples of protractor, setting up protractor in Eclipse, the Jasmine testing framework, and tricks and tips. It also includes sections on Angular, controllers, views, MVC patterns, Razor templating, app fabric caching, WCF, HTML5, CSS3, Bootstrap, HTTP/HTTPS requests, logging, and more.
Angularjs Protractor Training in viman nagar,just only in 8k. let's call us on 8652457999 for more information.
We have provided basic information in ppt, you can get more in training. we provide 100+ examples which make you perfect in Protractor. We also provide corporate training.
We have already provided multiple corporate training in multiple offices.
You can learn online
Taming that client side mess with Backbone.jsJarod Ferguson
Backbone.js gives structure to web applications by providing models, collections, views and connecting them to APIs. It includes models for representing and handling data, collections for managing multiple models, views for presenting data and handling user interaction, and connects everything to APIs. Using Backbone avoids callback soup and keeps logic separated. Many large sites use Backbone including GitHub, Medium, and Uber.
QA Fest 2017. Ярослав Святкин. Тестовый фреймворк GEB для тестирования WEB пр...QAFest
Доклад будет полезен тем, кто хочет узнать как бысто писать тесты на языке програмирования Groovy и не думать о фреймворке, PageObject и инициализации WebDriver. Фреймворк это сложно? Нет! Я покажу способ, который позволяет думать о тестировании приложения, а не о стуктуре кода.
Some Advanced Tracking in Google Analytics in 5 mins - PhillyJS meet up Nico Miceli
This document discusses various advanced tracking techniques that can be implemented in Google Analytics using JavaScript. It covers setting up asynchronous tracking code, tracking events and custom variables, tracking clicks on external links and form interactions, and using scroll tracking to understand how much of an article users read. Code examples are provided for tracking events, custom variables, tracking clicks on links and form inputs, and scroll tracking to understand readership. Overall, the document explores different ways to gain deeper insights into user behavior on a website through advanced JavaScript-based tracking in Google Analytics.
This document summarizes jQuery secrets presented by Bastian Feder. It discusses utilities like jQuery.data() and jQuery.removeData() for saving and removing state on DOM elements. It also covers AJAX settings, events, extending jQuery, and jQuery plugins. The presentation provides code examples for working with data, events, namespaces, AJAX, and extending jQuery functionality.
Mobile applications Development - Lecture 12
Javascript
jQuery (Zepto)
useful microframeworks
This presentation has been developed in the context of the Mobile Applications Development course at the Computer Science Department of the University of L’Aquila (Italy).
http://www.di.univaq.it/malavolta
This document contains a summary of jQuery secrets presented by Bastian Feder. It discusses various techniques including saving and removing state from DOM elements using jQuery.data() and jQuery.removeData(), extending jQuery functionality through plugins, and customizing AJAX requests and event handling. The presentation provides code examples for working with jQuery's data storage methods, namespaces, promises/deferreds, global AJAX settings, and extending jQuery.
This talk recaps some features and practices that are best to avoid in good jQuery pages and apps. Following these rules will improve performance and maintainability, and may prevent your co-workers from coming after you with sharp objects.
The document discusses various techniques for improving web applications, including:
1. Enabling in-place AJAX reloading of pages using jQuery.
2. Optimizing page loads by only rendering necessary content for AJAX requests.
3. Adding hash URLs to enable back-button functionality when using AJAX.
4. Improving cross-browser compatibility by detecting browsers and conditional loading of styles.
This document discusses Java Script on Rails and Ajax functionality in Rails. It summarizes various Ajax helpers in Rails, different types of Ajax responses, and how Rails processes Ajax requests using RJS (Ruby-generated JavaScript). It also discusses unobtrusive JavaScript and different approaches to JavaScript in Rails applications.
When you move beyond adding simple enhancements to your website with jQuery and start building full-blown client-side applications, how do you organize your code? At this month's Triangle JS Meetup, we'll take a look at patterns for application development using jQuery that promote the principles of tight encapsulation and loose coupling, including classes, the publish/subscribe paradigm, and dependency management and build systems.
Similar to The rise and fall of a techno DJ, plus more new reviews and notable screenings (20)
Democrats in the Illinois Legislature unveiled an alternative $36.3 billion state budget plan that includes less severe cuts to higher education, Medicaid, and funding for local governments compared to the Republican governor's earlier proposal. The Democratic Speaker says the budget is open to negotiation but that revenue increases are needed to address the $3 billion shortfall, while the Republican governor lobbied his party to push for business reforms without agreeing to new taxes.
The rise and fall of a techno DJ, plus more new reviews and notable screenings
1. The rise and fall of a techno DJ, plus more new reviews and
notable screenings
"asc";
var params =
sort: mySort,
ajaxComponent: componentId,
startIndex: myStart,
showAll: showAllComments
;
jQuery.ajax(
url: url,
data: (params),
success: function (data)
jQuery("#"+componentId+"_PaginationBottom").remove();
jQuery("#"+componentId+"_commentContent .brandNewComment").remove();
jQuery("#BlogComments .sortSpinner").hide();
if (myStart == "1") jQuery("#"+componentId+"_commentContent").html(data);
else jQuery("#"+componentId+"_commentContent").append(data);
);
function removeEdit(oid)
if (oid)
var cont = jQuery("#BlogComments-comment-"+oid).closest(".brandNewComment");
cont.find(".newCommentOptions").fadeOut("fast", function()
jQuery(this).remove();
);
2. function getComment(oid, commentLimit)
var url = "/Bleader/archives/2015/06/26/the-rise-and-fall-of-a-techno-dj-plus-more-new-
reviews-and-notable-screenings";
var limitMsg = commentLimit?'':'';
if (oid)
var params =
ajaxComponent: componentId,
commentOid: oid
;
jQuery.ajax(
url: url,
data: (params),
success: function (data)
if (!jQuery.trim(jQuery("#"+componentId+"_commentContent").html()))
jQuery("#"+componentId+"_commentContent").append(limitMsg+data).find(".brandNewComment")
.fadeIn("fast");
else
jQuery("#"+componentId+"_commentContent").children("div.comment, div.brandNewComment,
div.limitMsg").filter(":last").after(limitMsg+data).parent().find(".brandNewComment").fadeIn("fast");
var t=setTimeout(function()removeEdit(oid),300000);
var myTotal = parseInt(jQuery("#comments_total").text(), 10);
myTotal++;
updateCommentTotals(false,myTotal);
);
function doLikeComment(e)
e.preventDefault();
if (!this.clicked)
3. function reportComment(e)
e.preventDefault();
e.stopPropagation();
var oid = jQuery(this).attr("rel");
var elem = jQuery("#"+oid+"_report");
elem.click(function(e)e.stopPropagation();)
if (!elem.is(":visible"))
jQuery("#BlogComments .reportCommentContainer").hide();
if (elem.is(":empty"))
var params =
oid: oid,
ajaxComponent: "ReportComment"
;
jQuery.ajax(
url: "/gyrobase/Tools/ReportComment",
data: (params),
success: function (data)
elem.html(data);
elem.fadeIn("fast");
);
else
elem.fadeIn("fast");
// attach close event handler to the html
4. jQuery("html").one("click", function()
jQuery("#BlogComments .reportCommentContainer:visible").hide();
);
function closeReport(obj)
jQuery(obj).closest(".reportCommentContainer").fadeOut("fast");
function submitReport(e)
var params = jQuery(e).closest("form").serialize()+"ajaxComponent=ReportComment";
jQuery.ajax(
url: "/gyrobase/Tools/ReportComment",
type: "POST",
data: (params),
success: function (data)
jQuery(e).closest(".reportCommentContainer").html(data);
);
(function($)
var subscribed=false;
function showFollowPanel(e)
e.preventDefault();
5. myPanel = $(this).parent().next(".togglePanel");
myPanel.fadeIn("fast");
function doSubscribe(obj)
var myPanel = obj.parent().next(".togglePanel");
myPanel.fadeIn("fast");
if (!subscribed)
var myLink = obj.parent();
var myLoader = myPanel.children(".loading");
var myUpdater = myPanel.children(".ajaxUpdater");
var params =
object: myPanel.attr("data-toolsoid"),
macro: myPanel.attr("data-toolsajaxmacro"),
url: window.location
;
$.ajax(
url: "/gyrobase/Macros/ToolsAjax",
data: (params),
type: "POST",
dataType: "html",
success: function (data)
subscribed = true;
if (myUpdater)
myUpdater.html(data);