CN103631973A - Refreshing-free paging method based on Ajax (asynchronous Javascript and XML) technology - Google Patents
Refreshing-free paging method based on Ajax (asynchronous Javascript and XML) technology Download PDFInfo
- Publication number
- CN103631973A CN103631973A CN201310720286.6A CN201310720286A CN103631973A CN 103631973 A CN103631973 A CN 103631973A CN 201310720286 A CN201310720286 A CN 201310720286A CN 103631973 A CN103631973 A CN 103631973A
- Authority
- CN
- China
- Prior art keywords
- data
- ajax
- refreshing
- paging method
- background server
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/80—Information retrieval; Database structures therefor; File system structures therefor of semi-structured data, e.g. markup language structured data such as SGML, XML or HTML
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/90—Details of database functions independent of the retrieved data types
- G06F16/95—Retrieval from the web
- G06F16/957—Browsing optimisation, e.g. caching or content distillation
- G06F16/9574—Browsing optimisation, e.g. caching or content distillation of access to content, e.g. by caching
Abstract
The invention relates to a refreshing-free paging method based on an Ajax (asynchronous Javascript and XML) technology in order to solve the technical problems that the conventional paging method is low in response speed, wastes the bandwidth and severely affects the user experience. Necessary data can be only sent to and taken back from a background server by the Ajax technology; an SOAP (simple object access protocol) or other XML (extensible markup language)-based Web Service interfaces are used, and a response from the background server is processed by a client by JavaScript. The refreshing-free paging method can be widely applied to output of data of a database.
Description
Technical field
The present invention relates to a kind of data processing method, particularly relate to a kind of based on Ajax technology without refreshing paging method.
Background technology
Along with popularizing of internet, increasing web station system enters popular sight line.In the time will exporting in the face of the mass data in database, the most unmanageable is exactly to adopt the data in which kind of paging technique output database just more reasonable, simple, quick.Existing method comprises redirect paging and upper and lower paging, yet these two kinds of methods are playing in the face of for example some video files while checking that message is introduced, and carry out after the operation of translation, and video file will be reopened, and has a strong impact on user and experiences.Existing paging method makes server accepting and processing after the data that transmit, and can produce a new webpage, has wasted many bandwidth, because the most of HTML code in former and later two pages is identical often.
Take blog web station system as example, and video also can be reloaded.Because each all needing alternately of applying sends request to server, the response time of application just depends on the response time of server, and this has just caused the local application of response ratio of user interface much slow.
Summary of the invention
The present invention is exactly that existing paging method response speed is slow in order to solve, waste bandwidth, have a strong impact on the technical matters that user experiences, a kind of fast response time is provided, save bandwidth, improve that user experiences based on Ajax technology without refreshing paging method.
Ajax i.e. " Asynchronous JavaScript and XML " (asynchronous JavaScript and XML), and Ajax is not abb., refers to a kind of webpage development technology that creates interaction network page application.Ajax is used asynchronous data transfer (HTTP request) between browser and Web server, so just can make webpage from a small amount of information of background server request, and service data under the prerequisite of not upgrading full page, completes two-page separation function.
The invention provides a kind of based on Ajax technology without refreshing paging method, comprise the following steps:
(1) create one and show the div label of data and the hyperlink of supertext paging, clickable hyperlinks is called self-defining function, and Transfer Parameters calls the file of realizing two-page separation function;
(2) file of two-page separation function receives the parameter passing over, and shows number of pages, to background server data query;
(3) by Ajax data processing equipment, to background server, inquire about all data;
(4) background server return data is to Ajax data processing equipment;
(5) Ajax data processing equipment, according to number of pages parameter filtering data, returns to the data that current page need to show;
(6) data are shown in div label.
Preferably, the demonstration number of pages in step (2) is specifically defaulted as homepage for the first time.
The invention has the beneficial effects as follows, rationally, simple, fast response time, saving bandwidth, can make the whole structure of the page compacter, greatly improved user's experience; The present invention's application Ajax technology can allow mass data or supertext data page export, can only to background server, send and fetch essential data, it uses SOAP or some other Web Service interface based on XML, and processes the response from background server at customer end adopted JavaScript.Therefore the data that exchange between background server and browser reduce in a large number, thereby make response speed faster.A lot of work for the treatment of simultaneously can complete on the client machine of the request of sending, so the processing time of Web server has also reduced.
Accompanying drawing explanation
Fig. 1 is process flow diagram of the present invention.
Embodiment
As shown in Figure 1, process flow diagram of the present invention, comprises the following steps:
Step S101, creates one and shows the div label of data and the hyperlink of supertext paging, and clickable hyperlinks is called self-defining function artpagination (), and Transfer Parameters calls another file wy_fenye_ok.php that realizes two-page separation function.
Step S102, the file of two-page separation function receives the parameter passing over, and shows number of pages (being defaulted as for the first time homepage), to background server data query.
Step S103, inquires about all data by Ajax data processing equipment to background server.
Step S104, background server return data is to Ajax data processing equipment.
Step S105, Ajax data processing equipment, according to number of pages parameter filtering data, returns to the data that current page need to show.
Step S105, is shown to data in div label.
The present invention includes wy_fenye.php, a wy_fenye_ok.php and discuss_js.js3 file.
In wy_fenye.php file, create a div label, the id=" fenye " of div label is set.Then, in div label, write the code of this paging of long article output, and in the hyperlink of supertext paging, apply onclick event, call self-defining function artpagination (), the parameter of transmission realizes the file wy_fenye_ok.php of two-page separation function for another.
Wy_fenye.php file key code is as follows:
The above,, only to the preferred embodiments of the present invention, is not limited to the present invention, and for a person skilled in the art, the present invention can have various modifications and variations.Every in claim limited range of the present invention, any modification of making, be equal to replacement, improvement etc., all should be within protection scope of the present invention.
Claims (2)
- Based on Ajax technology without refreshing a paging method, it is characterized in that, comprise the following steps:(1) create one and show the div label of data and the hyperlink of supertext paging, click described hyperlink and call self-defining function, Transfer Parameters calls the file of realizing two-page separation function;(2) file of described two-page separation function receives the parameter passing over, and shows number of pages, to background server data query;(3) by Ajax data processing equipment, to described background server, inquire about all data;(4) described background server return data is given described Ajax data processing equipment;(5) described Ajax data processing equipment, according to number of pages parameter filtering data, returns to the data that current page need to show;(6) data are shown in described div label.
- According to claim 1 a kind of based on Ajax technology without refreshing paging method, it is characterized in that, the demonstration number of pages in described step (2) is specifically defaulted as homepage for the first time.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201310720286.6A CN103631973A (en) | 2013-12-20 | 2013-12-20 | Refreshing-free paging method based on Ajax (asynchronous Javascript and XML) technology |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201310720286.6A CN103631973A (en) | 2013-12-20 | 2013-12-20 | Refreshing-free paging method based on Ajax (asynchronous Javascript and XML) technology |
Publications (1)
Publication Number | Publication Date |
---|---|
CN103631973A true CN103631973A (en) | 2014-03-12 |
Family
ID=50213014
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201310720286.6A Pending CN103631973A (en) | 2013-12-20 | 2013-12-20 | Refreshing-free paging method based on Ajax (asynchronous Javascript and XML) technology |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN103631973A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105550000A (en) * | 2015-12-22 | 2016-05-04 | 金蝶软件(中国)有限公司 | Generation method and system of mobile terminal sliding plugin |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101490674A (en) * | 2006-07-07 | 2009-07-22 | 国际商业机器公司 | Method for defining a Wiki page layout using a Wiki page |
CN101826085A (en) * | 2009-12-30 | 2010-09-08 | 厦门市美亚柏科信息股份有限公司 | AJAX-based method for importing/exporting large file into/from web page on line |
CN102411585A (en) * | 2010-09-21 | 2012-04-11 | 厦门市美亚柏科信息股份有限公司 | Webpage paging data pre-loading method and system |
CN102637201A (en) * | 2012-03-14 | 2012-08-15 | 南京新与力文化传播有限公司 | Webpage loading method based on asynchronous data transmission |
-
2013
- 2013-12-20 CN CN201310720286.6A patent/CN103631973A/en active Pending
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101490674A (en) * | 2006-07-07 | 2009-07-22 | 国际商业机器公司 | Method for defining a Wiki page layout using a Wiki page |
CN101826085A (en) * | 2009-12-30 | 2010-09-08 | 厦门市美亚柏科信息股份有限公司 | AJAX-based method for importing/exporting large file into/from web page on line |
CN102411585A (en) * | 2010-09-21 | 2012-04-11 | 厦门市美亚柏科信息股份有限公司 | Webpage paging data pre-loading method and system |
CN102637201A (en) * | 2012-03-14 | 2012-08-15 | 南京新与力文化传播有限公司 | Webpage loading method based on asynchronous data transmission |
Non-Patent Citations (1)
Title |
---|
刘红坤: "基于Ajax和PHP数据分页的实现", 《计算机系统应用》 * |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105550000A (en) * | 2015-12-22 | 2016-05-04 | 金蝶软件(中国)有限公司 | Generation method and system of mobile terminal sliding plugin |
CN105550000B (en) * | 2015-12-22 | 2019-03-01 | 金蝶软件(中国)有限公司 | A kind of generation method and system of mobile terminal slide-insert |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN104158836B (en) | A kind of method by data render mobile application interface | |
CN102654885B (en) | Mobile terminal webpage adaptation system and method | |
CN100437483C (en) | Event distributing method and device based on Web page | |
CN103179133B (en) | Based on the client of entity class and the method for server communication | |
TWI672027B (en) | Data processing method, device and system in webpage | |
CN104391868B (en) | The device and method of dynamic page static | |
CN104283777B (en) | The method and apparatus of message compression | |
CN103973737A (en) | Method, server and browser for actively pushing messages | |
CN104866272A (en) | Control treatment system and method of monitor screen wall | |
CN101441631A (en) | Data access method for asynchronous web page browsing | |
CN104378399A (en) | Data push method, platform server, client terminal and system | |
CN107911466A (en) | A kind of association method under multi-layer framework | |
CN105893116A (en) | Visual process management system and method oriented to real-time data flow processing | |
CN103513986B (en) | A kind of method utilizing CGI technology to realize dynamic web server in without operating system equipment | |
CN108038009A (en) | Front and back end exchange method, device and computer equipment based on Web applications | |
CN105069116A (en) | Method and system for converting json string into array | |
CN102917067A (en) | Method and device for increasing response speed based on self-adaption concurrency control of client | |
CN102780718A (en) | Method and system for prompting new message | |
CN103488735B (en) | Method and terminal that terminal browser page furbishing is shown | |
CN104750928A (en) | Online simulation method based on B/S network structure mode | |
CN203299613U (en) | Intelligent building control system | |
CN106598829A (en) | Webpage automation test method and apparatus | |
CN105407150A (en) | Remote control method of application program | |
CN103455503B (en) | Word stock collection, webpage rendering intent, apparatus and system | |
CN103631973A (en) | Refreshing-free paging method based on Ajax (asynchronous Javascript and XML) technology |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
WD01 | Invention patent application deemed withdrawn after publication | ||
WD01 | Invention patent application deemed withdrawn after publication |
Application publication date: 20140312 |