Atitit.vod Search Doc.doc-on-demand system searching function design document

Source: Internet
Author: User

Atitit.vod Search Doc.doc -on- demand system searching function design document

of the button Enter event 1

Left rig event 1

Up-down event 2

Key_events.key_search = function (e, curr) {

var value = $ ('. SearchBox. TextBox '). Text ();

Xhr.search_keyword (value, function (data) {

Render.movie_list_tiny (data);

ATI P89

$ (". SearchBox"). Hide ();

Search_finish ();

});

};

Enter event for key

Key_events.key = function (e, curr) {

var value = curr.html ();

$ ('. SearchBox. TextBox '). Append (value);

};

Key_events.key_space = function (e, curr) {

$ ('. SearchBox. TextBox '). Append (');

};

Key_events.key_backspace = function (e, curr) {

var value = $ ('. SearchBox. TextBox '). Text ();

$ ('. SearchBox. TextBox '). HTML (value.substr (0, value.length-1));

};

Left rig event

ATI addd recomm key Evente all. Code sh nad. n d only Recomm

$ (document). On (' KeyDown ', function (e) {

var direction, Next_hover;

Console.log (E.keycode)

PAA Add e.keycode==8 Backend

if (direction) {

var curr_hover_obj=get_curr_hover ();

var From_is_hv_tab = $ (curr_hover_obj). Hasclass (' Hv_tab ');

Next_hover = Get_next_hover_by_dir (direction);

Get a Next object by direction

function Get_next_hover_by_dir (direction) {

if (!direction) return;

var boundinglist = re_calc_bounding (), intersectedlist = [], n;

Up-down event

author::  Nickname :Old Wow's claws( Full Name::AttilaxAkbar Al Rapanui Attilaksachanui) 

Kanji Name: Etila ( Ayron) , email:[email protected]

reprint Please indicate source: http://www.cnblogs.com/attilax/

Atiend

Atitit.vod Search Doc.doc-on-demand system searching function design document

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.