CN101158974A - Method and device for quoting resource - Google Patents
Method and device for quoting resource Download PDFInfo
- Publication number
- CN101158974A CN101158974A CNA200710187679XA CN200710187679A CN101158974A CN 101158974 A CN101158974 A CN 101158974A CN A200710187679X A CNA200710187679X A CN A200710187679XA CN 200710187679 A CN200710187679 A CN 200710187679A CN 101158974 A CN101158974 A CN 101158974A
- Authority
- CN
- China
- Prior art keywords
- resource
- quoting
- effectively
- link
- searching
- 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
Abstract
The invention discloses a method and a device of resource quotation. The method of resource quotation in the invention includes that: trigger to link an application page; search one by one a plurality of quotation resources corresponding to resource link symbols, and upon requesting and obtaining the valid quotation resources, stop searching. The device of resource quotation in the invention comprises a triggering unit for triggering to link the application page; a searching unit is for, after the triggering unit triggers to link the application page, searching one by one a plurality of quotation resources corresponding to the resource link symbols, and upon requesting and obtaining the valid quotation resources, stopping searching. The invention has the effects of reducing the error rate when only one quotation resource exists and enhancing the experience of users.
Description
Technical field
The present invention relates to communication field, relate in particular to a kind of method and device of quoting resource.
Background technology
HTML (Hypertext Markup Language) (HTML, Hyper Text Markup Language) is a kind of simple marking language that is used for making hypertext document, comes the structure of marking document and the information of mark hyperlink by various marks.Html language can link together easily leaving local text or figure and text non-indigenous or figure in, forms organic whole, and the user need not consider that specifying information is on the current application or in other application at network.Plain href attribute of html element and src attribute can be used for quoting local or picture non-indigenous and various data resource in html language, when the user clicks respective icon or linked object, can arrive the related content href or the src that search for icon therewith or linked object on the network and be called as the resource link symbol.The src attribute is an employed attribute that is used for linking local or related resource non-indigenous during the page is used with the href attribute, the user wants when current page jumps to another page, html language uses src or href to locate the URL(uniform resource locator) (URL of the access resources of wanting, Uniform Resource Location), but in a certain definite moment user's a request, src attribute and href attribute can only be located the quoting resource of a URL.
In research and practice process to prior art, the inventor finds that there is following problem in prior art: because resource link symbol can only the corresponding single resource addresses of quoting, if quote that resource does not exist or expired, can't open target resource, the page is with the page of makeing mistakes of display server appointment, and user experience is very poor.
Summary of the invention
The technical matters that the embodiment of the invention will solve provides a kind of method and device of quoting resource, can support many quoting resources.
For solving the problems of the technologies described above, the method embodiment of quoting resource provided by the present invention is achieved through the following technical solutions:
The embodiment of the invention provides a kind of method of quoting resource, comprising:
Trigger link and use the page; The corresponding a plurality of resources of quoting of searching resource link symbol when asking effectively to quote resource, stop search one by one.
The embodiment of the invention also provides a kind of system of quoting resource, comprising:
Trigger element is used for triggering link and uses the page; Search unit, after being used for described trigger element and triggering link and use the page, corresponding a plurality of resources of quoting of searching resource link symbol one by one, ask some quote resource the time, stop search.
A technical scheme in the technique scheme has following beneficial effect: because the embodiment of the invention corresponding a plurality of resources of quoting of searching resource link symbol one by one, the wrong probability when reducing to have only to quote a resource strengthens user experience.
Description of drawings
The method flow diagram of the quoting resource that Fig. 1 provides for the embodiment of the invention;
The installation drawing of the quoting resource that Fig. 2 provides for the embodiment of the invention.
Embodiment
The embodiment of the invention provides a kind of method and device of quoting resource, is used for quoting of page resource.
The embodiment of the invention defines the corresponding a plurality of resource URL that quote of single resource link symbol, the many resource address that will quote are separated with specific separator, there is not the URL that just quotes next resource quoting a certain resource URL in the user as this resource, up to find effectively quote resource URL till.
Describe the method and the device of quoting resource in detail below in conjunction with accompanying drawing.
See also Fig. 1 and be the method flow diagram of the quoting resource that the embodiment of the invention provides.
When the user clicks the application page or wants jump page, enter following flow process.
The page is used in step 101, triggering link;
When the user clicks the application page or jump to other application pages, trigger link and use the page.
Step 102, corresponding a plurality of resources of quoting of searching resource link symbol one by one;
The src attribute definition of embodiment of the invention html language is as follows: src=" url_a, url_b, url_c ... "
Browser is a plurality of resource addresses of quoting of searching resource connector correspondence one by one, as url_a, and url_b, and url_c, browser judges at different methods of service whether the resource of being quoted exists; Browser is at first searched in local buffer and is quoted resource, if local buffer do not exist this to quote resource, then to network, search for, when the resource of being quoted when local and network do not exist, return a mistake; The search next one is quoted resource on local buffer or network, up to asking effectively to quote resource, stops search.
If a plurality of resources of quoting of resource connector correspondence all are the invalid resources of quoting, when promptly last of browser searches resource connector correspondence quoted resource, still can not search when effectively quoting resource, stop search, show mistake to the user.In the corresponding a plurality of resources of quoting of searching resource link symbol, not when effectively quoting resource, to stop search in a plurality of resources of quoting, prevent to search for a plurality of resources of quoting and unrestrictedly carry out, waste system resource.
This step is finished resource and is repeatedly located the maximum possible resource of avoiding being cited and fall through.
Resource is effectively quoted in step 103, parsing;
What search in the analyzing step 102 effectively quotes resource, downloads from the Internet and effectively quotes resource, if can not download or download mistake, then returns mistake, and the execution in step 102 search next ones are quoted resource.
Search effectively quote resource after, browser will effectively be quoted resource and resolve, so that finally be presented in face of the user.
Step 104, show to resolve quote resource.
Resolved effectively quote resource after, on the page, show the resource of quoting of parsing to the user.
So far, the method for quoting resource by the agency of finishes, and uses the device of this method below in conjunction with description of drawings.
See also Fig. 2 and be the installation drawing of the quoting resource that the embodiment of the invention provides.
The device of quoting resource comprises:
Trigger element 100 is used for triggering link and uses the page;
Search unit 200, after being used for described trigger element and triggering link and use the page, corresponding a plurality of resources of quoting of searching resource link symbol one by one, ask some quote resource the time, stop search.
Further, described quoting resource device also comprises:
Resolution unit 300 is used in described searching unit requests resolving the described resource of effectively quoting after effectively quote resource;
Display unit 400 is used to show the resource of quoting of described parsing.
Further, can not search when effectively quoting resource at described search unit, described display unit shows mistake.
More than the method and the device of a kind of quoting resource provided by the present invention is described in detail, for one of ordinary skill in the art, thought according to the embodiment of the invention, part in specific embodiments and applications all can change, in sum, this description should not be construed as limitation of the present invention.
Claims (8)
1. the method for a quoting resource is characterized in that, comprising:
Trigger link and use the page;
The corresponding a plurality of resources of quoting of searching resource link symbol when asking effectively to quote resource, stop search one by one.
2. the method for quoting resource according to claim 1 is characterized in that, described request is resolved the described resource of effectively quoting after effectively quote resource;
The resource of quoting that shows described parsing.
3. the method for quoting resource according to claim 2 is characterized in that, described parsing is described when effectively quoting resource error, returns mistake;
The corresponding next one of searching resource link symbol is quoted resource.
4. according to the method for claim 1 or 2 or 3 described quoting resources, it is characterized in that the corresponding a plurality of resources of quoting of the described link of searching resource one by one symbol in the time can not asking effectively to quote resource, stop search.
5. the method for quoting resource according to claim 4 is characterized in that, and is described in the time can not asking effectively to quote resource, shows mistake.
6. the device of a quoting resource is characterized in that, comprising:
Trigger element is used for triggering link and uses the page;
Search unit, after being used for described trigger element and triggering link and use the page, corresponding a plurality of resources of quoting of searching resource link symbol one by one, ask some quote resource the time, stop search.
7. the device of quoting resource according to claim 6 is characterized in that, described quoting resource device also comprises:
Resolution unit is used in described searching unit requests resolving the described resource of effectively quoting after effectively quote resource;
Display unit is used to show the resource of quoting of described parsing.
8. the device of quoting resource according to claim 7 is characterized in that, can not search when effectively quoting resource at described search unit, and described display unit shows mistake.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CNA200710187679XA CN101158974A (en) | 2007-11-21 | 2007-11-21 | Method and device for quoting resource |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CNA200710187679XA CN101158974A (en) | 2007-11-21 | 2007-11-21 | Method and device for quoting resource |
Publications (1)
Publication Number | Publication Date |
---|---|
CN101158974A true CN101158974A (en) | 2008-04-09 |
Family
ID=39307076
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CNA200710187679XA Pending CN101158974A (en) | 2007-11-21 | 2007-11-21 | Method and device for quoting resource |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN101158974A (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103631926A (en) * | 2012-03-31 | 2014-03-12 | 北京奇虎科技有限公司 | Method and device for connecting link in search engine results page |
CN110019038A (en) * | 2018-04-12 | 2019-07-16 | 平安普惠企业管理有限公司 | File reference analysis method, apparatus, equipment and computer readable storage medium |
-
2007
- 2007-11-21 CN CNA200710187679XA patent/CN101158974A/en active Pending
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103631926A (en) * | 2012-03-31 | 2014-03-12 | 北京奇虎科技有限公司 | Method and device for connecting link in search engine results page |
CN103631926B (en) * | 2012-03-31 | 2017-07-04 | 北京奇虎科技有限公司 | The connection method linked in a kind of result of page searching and device |
CN110019038A (en) * | 2018-04-12 | 2019-07-16 | 平安普惠企业管理有限公司 | File reference analysis method, apparatus, equipment and computer readable storage medium |
CN110019038B (en) * | 2018-04-12 | 2023-03-21 | 平安普惠企业管理有限公司 | File reference analysis method, device, equipment and computer readable storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US9986056B2 (en) | In-server redirection of HTTP requests | |
US9729499B2 (en) | Browser and method for domain name resolution by the same | |
US7672938B2 (en) | Creating search enabled web pages | |
US7689667B2 (en) | Protocol to fix broken links on the world wide web | |
CN100367276C (en) | Method and appts for searching within a computer network | |
US8812737B2 (en) | Context-specific unicode characters in shortened URLs | |
US8082488B2 (en) | Method for accessing a parent page while browsing web pages | |
CN102855334B (en) | A kind of browser and the method obtaining dns resolution data thereof | |
US8676880B2 (en) | Server apparatus, communication apparatus, and method for generating navigation information | |
CN101159762B (en) | Method and device of accelerating download of web page contents | |
US20110093533A1 (en) | Generating site maps | |
US20120290909A1 (en) | Methods and apparatus of accessing related content on a web-page | |
US20110282978A1 (en) | Browser plug-in | |
WO2012151752A1 (en) | Annotating search results with images | |
JP2011043924A (en) | Web action history acquisition system, web action history acquisition method, gateway device and program | |
KR101637016B1 (en) | Method for providing user reaction web page | |
CN103347069A (en) | Method and device for realizing network access | |
CN103718179A (en) | Information processing apparatus, information processing method, information processing program, and storage medium having information processing program stored therein | |
US9521182B1 (en) | Systems and methods related to identifying authorship of internet content | |
US20220050885A1 (en) | Favorites management and information search service providing system and favorites management and information search service providing method using same | |
CN101158974A (en) | Method and device for quoting resource | |
CN101145936B (en) | A method and system for adding tags in Web pages | |
WO2016011699A1 (en) | Method and device for use in configuring navigation page of browser | |
CN110719344B (en) | Domain name acquisition method and device, electronic equipment and storage medium | |
CN102902787B (en) | A kind of method of browser and acquisition dns resolution data thereof |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
REG | Reference to a national code |
Ref country code: HK Ref legal event code: DE Ref document number: 1115457 Country of ref document: HK |
|
C12 | Rejection of a patent application after its publication | ||
RJ01 | Rejection of invention patent application after publication | ||
REG | Reference to a national code |
Ref country code: HK Ref legal event code: WD Ref document number: 1115457 Country of ref document: HK |