Archive for the ‘技术’ Category

goo.gl短链接的实现

2010年02月05日 星期五

1. http://geekgen.it/api.php?mode=api&w=googl&url=http://google.com

2. http://jsbin.com/idalu3 源码: goo.gl

关于Short Url的两篇文章

2010年02月05日 星期五

之一:Short URL Auto-Discovery [http://wiki.snaplog.com/short_url]

之二:rel=”shortlink” [http://microformats.org/wiki/rel-shortlink]

The features of MOSS 2007

2010年01月21日 星期四

Enterprise Portal

Web Form Web Part                                Use for Web Content of Type Display ( Web Form)

Web Report Web Part                              Use for Web Content of Type Output ( Report and Web Report)

Generic Web Part                                    Use for Web Let

Web Menu Web Part                                Use for Web Menu on top and left

Box Menu Web Part                                 Use for Web Menu on Activity Center Task List

Page Title Web Part                                 Use for Page Title leveraging AX Label

Windows SharePoint Services

Content Editor Web Part

Use for formatted text, tables, and images.

Form Web Part

Use to connect simple form controls to other Web Parts.

Image Web Part

Use to display pictures and photos.

Members

Use the Members Web Part to see a list of the site members and their online status.

Page Viewer Web Part

Use to display linked content, such as files, folders, or Web pages. The linked content is isolated from other content on the Web Part Page.

Relevant Documents

Use this webpart to display documents that are relevant to the current user.

User Tasks

Use this webpart to display tasks that are assigned to the current user.

XML Web Part

Use for XML, and XSL Transformation of the XML.

List View Web Part

Microsoft SharePoint Server 2007


Business Data

Business Data Actions

Display a list of actions from the Business Data Catalog.

Business Data Item

Display one item from a data source in the Business Data Catalog.

Business Data Item Builder

Creates a Business Data item from parameters in the query string and provides it to other web parts. This web part is only used on Business Data profile pages.

Business Data List

Display a list of items from a data source in the Business Data Catalog.

Business Data Related List

Display a list of items related to one or more parent items from a data source in the Business Data Catalog.

Content Rollup

Colleague Tracker

Displays your list of colleagues and any recent changes they made have had.

Memberships

Displays your site and distribution list memberships.

My Links

Use to display your links

My SharePoint Sites

Use to display documents authored by you on sites where you are a member and sites of your choice.

My Workspaces

Displays sites created under your My Site.

Site Aggregator

Use to display sites of your choice.

Dashboard

Key Performance Indicators

Shows a list of status indicators. Status indicators display important measures for your organization, and show how your organization is performing with respect to your goals.

KPI Details

Displays the details of a single status indicator. Status indicators display an important measure for an organization and may be obtained from other data sources including SharePoint lists, Excel workbooks, and SQL Server 2005 Analysis Services KPIs.

Other

Excel Web Access

Use the Excel Web Access to interact with an Excel 2007 workbook as a Web page.

I need to…

SharePoint FREE Training site: http://goo.gl/driC

2010年01月20日 星期三

Point8020 Learning Solutions from SharePoint: http://www.point8020.com/Training.aspx

jQuery 1.4 API Cheat Sheet

2010年01月20日 星期三

jQuery 1.4 API Cheat Sheet
printable PDF version
PNG version

Legend

Conventional signs

[obj] — array of objects
1.4+ — new in 1.4
1.4∗ — changed in 1.4

Data types

* — anything
$ — jQuery object
arr — array
bool — boolean
el — DOM element
fn — function
int — integer
obj — object
str — string
XHR — XMLHttpRequest

Core

jQuery function

$.jQuery( selector [, context] ), .jQuery( element ), .jQuery( elementArray ), .jQuery( jQueryObject ), .jQuery( )1.4∗
$.jQuery( html [, ownerDocument] ), .jQuery( html, props )1.4∗
$.jQuery( fn )

jQuery Object Accessors

$.each( fn(index, element) )
num.size( ), .length
$.eq( index )
[el],el.get( [index] )
num.index( )1.4∗, .index( selector )1.4∗, .index( element )
arr.toArray( )1.4+

Interoperability

$jQuery.noConflict( [extreme] )

Attributes

Attributes

str.attr( name )
$.attr( name, val ), .attr( map ), .attr( name, fn(index, attr) )
$.removeAttr( name )

Class

$.addClass( class ), .addClass( fn(index, class) )1.4∗
bool.hasClass( class )
$.removeClass( [class] ), .removeClass( fn(index, class) )1.4∗
$.toggleClass( class [, switch] ), .toggleClass( fn(index, class) [, switch] )1.4∗

HTML, text

str.html( )
$.html( val ), .html( fn(index, html) )1.4∗
str.text( )
$.text( val ), .text( fn(index, html) )1.4∗

Value

str,arr.val( )
$.val( val ), .val( fn() )1.4∗

CSS

CSS

str.css( name )
$.css( name, val ), .css( map ), .css( name, fn(index, val) )1.4∗

Positioning

obj.offset( )
$.offset( coord ), .offset( fn( index, coord ) )1.4+
obj.position( )
int.scrollTop( )
$.scrollTop( val )
int.scrollLeft( )
$.scrollLeft( val )

Height and Width

int.height( )
$.height( val )
int.width( )
$.width( val )
int.innerHeight( )
int.innerWidth( )
int.outerHeight( [margin] )
int.outerWidth( [margin] )

Traversing

Filtering

$.eq( index )
$.first( )1.4+
$.last( )1.4+
$.has( selector ), .has( element )1.4+
$.filter( selector ), .filter( fn(index) )
bool.is( selector )
$.map( fn(index, element) )
$.not( selector ), .not( elements ), .not( fn( index ) )
$.slice( start [, end] )

Tree traversal

$.children( [selector] )
$.closest( selector [, context] )1.4∗
arr.closest( selectors [, context] )1.4+
$.find( selector )
$.next( [selector] )
$.nextAll( [selector] )
$.nextUntil( [selector] )1.4+
$.parent( [selector] )
$.parents( [selector] )
$.parentsUntil( [selector] )1.4+
$.prev( [selector] )
$.prevAll( [selector] )
$.prevUntil( [selector] )1.4+
$.siblings( [selector] )

Miscellaneous

$.add( selector [, context] ), .add( elements ), .add( html )1.4∗
$.andSelf( )
$.contents( )
$.end( )

Manipulation

Inserting Inside

$.append( content ), .append( fn( index, html ) )1.4∗
$.appendTo( target )
$.prepend( content ), .prepend( fn( index, html ) )1.4∗
$.prependTo( target )

Inserting Outside

$.after( content ), .after( fn() )1.4∗
$.before( content ), .before( fn() )1.4∗
$.insertAfter( target )
$.insertBefore( target )

Inserting Around

$.unwrap( )1.4+
$.wrap( wrappingElement ), .wrap( fn )1.4∗
$.wrapAll(wrappingElement ), .wrapAll( fn )1.4∗
$.wrapInner( wrappingElement ), .wrapInner( fn )1.4∗

Replacing

$.replaceWith( content ), .replaceWith( fn )1.4∗
$.replaceAll( selector )

Removing

$.detach( [selector] )1.4+
$.empty( )
$.remove( [selector] )

Copying

$.clone( [withDataAndEvents] )

Events

Page Load

$.ready( fn() )

Event Handling

$.bind( type [, data ], fn(eventObj) )
$.one( type [, data ], fn(eventObj) )
$.trigger( event [, data])
obj.triggerHandler( event [, data])
$.unbind( [type] [, fn])

Live Events

$.live( eventType [, data], fn() )
$.die( [eventType] [, fn() ])

Interaction Helpers

$.hover( fnIn(eventObj), fnOut(eventObj))
$.toggle( fn(eventObj), fn2(eventObj) [, ...])

Event Helpers

$

.blur( [fn] ),
.mousedown( [fn] ),
.change( [fn] ),
.mouseenter( [fn] ),
.click( [fn] ),
.mouseleave( [fn] ),
.dblclick( [fn] ),
.mousemove( [fn] ),
.error( [fn] ),
.mouseout( [fn] ),
.focus( [fn] ),
.mouseout( [fn] ),
.focusin( [fn] ),1.4+
.mouseup( [fn] ),
.focusout( [fn] ),1.4+
.resize( [fn] ),
.keydown( [fn] ),
.scroll( [fn] ),
.keypress( [fn] ),
.select( [fn] ),
.keyup( [fn] ),
.submit( [fn] ),
.load( fn ),
.unload( fn )

Effects

Basics

$.show( [ duration [, fn] ] )
$.hide( [ duration [, fn] ] )
$.toggle( [showOrHide] )
$.toggle( duration [, fn] )

Sliding

$.slideDown( duration [, fn] )
$.slideUp( duration [, fn] )
$.slideToggle( [duration] [, fn] )

Fading

$.fadeIn( duration [, fn] )
$.fadeOut( duration [, fn] )
$.fadeTo( duration, opacity [, fn] )

Custom

$.animate( params [, duration] [, easing] [, fn] )
$.animate( params, options )
$.stop( [clearQueue] [, jumpToEnd] )
$.delay( duration [, queueName] )1.4+

Settings

AJAX

Low-Level Interface

XHRjQuery.ajax( options )

  • boolasync = true
  • fnbeforeSend( XHR )
  • boolcache = true
  • fncomplete(XHR, status)
  • strcontentType
  • objcontext
  • obj, strdata
  • fndataFilter( data, type )
  • boolglobal = true
  • boolifModified = false
  • strjsonp
  • fnjsonpCallback
  • strpassword
  • boolprocessData = true
  • numtimeout
  • strtype = ‘GET’
  • strurl = curr. page
  • strusername
  • fnxhr
  • strscriptCharset
  • strdataType ∈ {xml, json, script, html}
  • fnerror( XHR, status, errorThrown )
  • fnsuccess( data, status, XHR )
jQuery.ajaxSetup( options )

Shorthand Methods

$.load( url [, data] [, fn( responseText, status, XHR )] )
XHRjQuery.get( url [, data] [, fn( data, status, XHR )] [, type] )
XHRjQuery.getJSON( url [, data] [, fn( data, status )] )
XHRjQuery.getScript( url [, fn( data, status )] )
XHRjQuery.post( url [, data] [, fn( data, status )] [, type] )

Global Ajax Event Handlers

$.ajaxComplete( fn( event, XHR, options ) )
$.ajaxError( fn( event, XHR, options, thrownError ) )
$.ajaxSend( fn( event, XHR, options ) )
$.ajaxStart( fn(  ) )
$.ajaxStop( fn(  ) )
$.ajaxSuccess( fn(event, XHR, options) )

Miscellaneous

str.serialize(  )
[obj].serializeArray(  )
strjQuery.param( obj, [traditional] )1.4∗

Utilities

Browser and Feature Detection

objjQuery.browserdeprecated
booljQuery.boxModeldeprecated

Basic operations

objjQuery.each( obj, fn( index, valueOfElement ) )
objjQuery.extend( [deep,] target, obj1 [, objN] )
arrjQuery.grep( array, fn( element, index ) [, invert] )
arrjQuery.makeArray( obj )
arrjQuery.map( array, fn( element, index ) )
numjQuery.inArray( val, array )
arrjQuery.merge( first, second )
fnjQuery.proxy( fn, scope ), jQuery.proxy( scope, name )1.4+
arrjQuery.unique( array )
strjQuery.trim( str )

Data functions

$.clearQueue( [name] )1.4+
$.dequeue( [name] ), jQuery.dequeue( [name] )
objjQuery.data( element, key ), jQuery.data(  )1.4+
obj.data(  ), .data( key )
$.data( key, val ), .data( obj )1.4∗
$.removeData( [name] )
[fn].queue( [name] ) jQuery.queue( [name] )
$.queue( [name,] fn( next ) ), jQuery.queue( [name,] fn(  ) )
$.queue( [name,] queue ), jQuery.queue( [name,] queue )

Test operations

booljQuery.isArray( obj )
booljQuery.isEmptyObject( obj )1.4+
booljQuery.isFunction( obj )
booljQuery.isPlainObject( obj )1.4+

Source: http://futurecolors.ru/jquery/

Trying to report error to Sharepoint ToolPane

2010年01月14日 星期四

/// <summary>
/// A custom editor part for picking data fields for a table web part
/// </summary>
class CustomEditorPart:EditorPart
{
#region Declarations

// In addition to other controls, etc, declare an error variable

string _errorText = string.Empty;

#endregion Declarations

#region Apply Changes

/// <summary>
/// Applies the changes to the web part properties
/// </summary>
/// <returns></returns>
public override bool ApplyChanges()
{
try
{

// You code goes here

return true;
}
catch (Exception ex)
{
_errorText = ex.Message;
return false;
}
}

#endregion Apply Changes

#region Rendering (Error Text)

/// <summary>
/// Update the error text if needed
/// </summary>
/// <param name="e"></param>
protected override void OnPreRender(EventArgs e)
{
if (_errorText != string.Empty)
{
this.Zone.ErrorText += Environment.NewLine + _errorText;
}

base.OnPreRender(e);
}

#endregion Rendering (Error Text)
}

来源: http://goo.gl/IbOo