CN106202289A - A kind of homepage finding method and electronic equipment - Google Patents

A kind of homepage finding method and electronic equipment Download PDF

Info

Publication number
CN106202289A
CN106202289A CN201610509414.6A CN201610509414A CN106202289A CN 106202289 A CN106202289 A CN 106202289A CN 201610509414 A CN201610509414 A CN 201610509414A CN 106202289 A CN106202289 A CN 106202289A
Authority
CN
China
Prior art keywords
webpage
request
browser
location
data
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.)
Granted
Application number
CN201610509414.6A
Other languages
Chinese (zh)
Other versions
CN106202289B (en
Inventor
杨德立
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Qihoo Technology Co Ltd
Original Assignee
Beijing Qihoo Technology Co Ltd
Qizhi Software Beijing Co Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Beijing Qihoo Technology Co Ltd, Qizhi Software Beijing Co Ltd filed Critical Beijing Qihoo Technology Co Ltd
Priority to CN201610509414.6A priority Critical patent/CN106202289B/en
Publication of CN106202289A publication Critical patent/CN106202289A/en
Application granted granted Critical
Publication of CN106202289B publication Critical patent/CN106202289B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/953Querying, e.g. by the use of web search engines
    • G06F16/9537Spatial or temporal dependent retrieval, e.g. spatiotemporal queries

Landscapes

  • Engineering & Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Data Mining & Analysis (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The invention discloses a kind of homepage finding method and electronic equipment, this homepage finding method includes: the browser response webpage request of opening generates homepage finding request;The request of described homepage finding is sent the destination application to described electronic equipment by described browser, and wherein, described destination application can be positioned by the positioning function of self;Described browser receives described destination application and responds the locating result information that the request of described homepage finding sends;Described browser, according to described locating result information, injects location data to described webpage.In technique scheme, send Location Request by the intended application request with positioning function installed on electronic equipment to be positioned by destination application, the locating result information receiving destination application feedback realizes homepage finding, solve seedless browser in prior art and cannot be carried out the technical problem of homepage finding, it is achieved the homepage finding of seedless browser.

Description

A kind of homepage finding method and electronic equipment
Technical field
The present invention relates to networking technology area, particularly relate to a kind of homepage finding method and electronic equipment.
Background technology
Along with the development of science and technology, network technology has obtained quick development, and people are not only by network Obtain data miscellaneous, it is also possible to carry out location by webpage and obtain relevant positional information, bring to the life of people Greatly facilitate.
In prior art, browser is divided into core browser and seedless browser.The homepage finding of seedless browser is usual Need to realize by the positioning function within operating system, such as, in android system, homepage finding needs GMS The support of (Google Mobile Service, Google's Information Mobile Service).But, there is determining in a lot of operation system of smart phone Bit function is castrated, and is castrated as the GMS in android system services, causes the problem that webpage cannot position.
Summary of the invention
In view of the above problems, it is proposed that the present invention is for overcoming the problems referred to above or solving the problems referred to above at least in part A kind of homepage finding method and electronic equipment.
One aspect of the present invention, it is provided that a kind of homepage finding method, is applied to an electronic equipment, including:
The browser response webpage request of opening generates homepage finding request;
Described browser is by the destination application in described homepage finding request transmission to described electronic equipment, wherein, Described destination application can be positioned by the positioning function of self;
Described browser receives described destination application and responds the locating result information that the request of described homepage finding sends;
Described browser, according to described locating result information, injects location data to described webpage.
Optionally, described browser, according to described locating result information, injects location data to described webpage, including:
If comprising location successful information in described locating result information, described browser obtains in the successful information of described location Position data;
Described position data is injected described webpage as described location data by described browser.
Optionally, described browser, according to described locating result information, injects location data to described webpage, including:
If comprising location failure information or location time-out information in described locating result information, described browser is by described fixed Position failure information or described location time-out information inject described webpage as described location data, or, described browser will be pre- If position data injects described webpage as described location data.
Optionally, described predeterminated position data include: described browser response webpage open obtain before request Prelocalization data, local position data or conventional location data, wherein, described conventional location data are in preset time period Use the position data that frequency is the highest.
Optionally, described after described webpage injects location data, described method also includes:
Described browser obtains the target position data of user's input;
Described location data modification is described target position data by described browser, and is sent out by described target position data Deliver to described destination application, so that follow-up location is repaiied by described destination application according to described target position data Just.
Optionally, the response webpage request of opening of described browser generates homepage finding request, including:
Described browser response webpage opens request, when starting to open at webpage, is beaten at response webpage by described browser Obtain before opening request is injected in webpage in prelocalization data, and generates the request of described homepage finding;
Described browser, according to described locating result information, injects location data to described webpage, including:
When opening webpage and completing, according to described locating result information, inject location data to described webpage and be used for updating Described in prelocalization data.
Optionally, the response webpage request of opening of described browser generates homepage finding request, including:
Described browser response webpage opens request, when starting to open at webpage, is beaten at response webpage by described browser The local position data obtained before opening request is injected in webpage, and generates the request of described homepage finding;
Described browser, according to described locating result information, injects location data to described webpage, including:
When opening webpage and completing, according to described locating result information, inject location data to described webpage and be used for updating Described local position data.
Optionally, the response webpage request of opening of described browser generates homepage finding request, including:
Described browser response webpage opens request, when starting to open at webpage, is beaten at response webpage by described browser The conventional location data obtained before opening request are injected in webpage, and generate the request of described homepage finding, described conventional location Data are to use the position data that frequency is the highest in preset time period;
Described browser, according to described locating result information, injects location data to described webpage, including:
When opening webpage and completing, according to described locating result information, inject location data to described webpage and be used for updating Described conventional location data.
Another aspect of the present invention, it is provided that a kind of electronic equipment, including:
Browse unit, is used for responding the webpage request of opening and generates homepage finding request;
Transmitting element, for the request of described homepage finding is sent the destination application to described electronic equipment, its In, described destination application can be positioned by the positioning function of self;
Receive unit, respond, for receiving described destination application, the positioning result letter that the request of described homepage finding sends Breath;
Injection unit, for according to described locating result information, injecting location data to described webpage.
Optionally, described injection unit is used for: if comprising location successful information in described locating result information, described in browse Device obtains the position data in the successful information of described location;Described position data is noted by described browser as described location data Enter described webpage.
Optionally, described injection unit is additionally operable to: if comprising location failure information or location in described locating result information Time-out information, described location failure information or location time-out information are injected described net as described location data by described browser Page, or, predeterminated position data are injected described webpage as described location data by described browser.
Optionally, described predeterminated position data include:
Described browser response webpage open obtain before request at prelocalization data, local position data or conventional Location data, wherein, described conventional location data are to use the position data that frequency is the highest in preset time period.
Optionally, described electronic equipment also includes:
Acquiring unit, is used for described after described webpage injects location data, obtains the target location of user's input Data;
Updating block, being used for described location data modification is described target position data, and by described target location number According to sending to described destination application, so that described destination application is positioned into follow-up according to described target position data Row is revised.
Optionally, described browse unit is additionally operable to: response webpage opens request, when starting to open at webpage, and will be in response What webpage obtained before opening request is injected in webpage in prelocalization data, and generates the request of described homepage finding;
Described injection unit is used for: when opening webpage and completing, and according to described locating result information, injects to described webpage Location data are used for updating described in prelocalization data.
Optionally, described browse unit is additionally operable to: response webpage opens request, when starting to open at webpage, and will be in response The local position data that webpage obtains before opening request is injected in webpage, and generates the request of described homepage finding;
Described injection unit is used for: when opening webpage and completing, and according to described locating result information, injects to described webpage Location data are used for updating described local position data.
Optionally, described browse unit is additionally operable to: response webpage opens request, when starting to open at webpage, and will be in response Webpage open request before obtain conventional location data be injected in webpage, and generate described homepage finding request, described often It is in preset time period, use the position data that frequency is the highest by location data;
Described injection unit is used for: when opening webpage and completing, and according to described locating result information, injects to described webpage Location data are used for updating described conventional location data.
The technical scheme provided in the embodiment of the present application, at least has the following technical effect that or advantage:
When needs carry out homepage finding, asked by the intended application with positioning function installed on electronic equipment Send Location Request, to be positioned by destination application, receive the locating result information of destination application feedback, enter And inject location data according to locating result information to webpage, to solve seedless browser in prior art, to cannot be carried out webpage fixed The technical problem of position, it is achieved the homepage finding of seedless browser.
Described above is only the general introduction of technical solution of the present invention, in order to better understand the technological means of the present invention, And can be practiced according to the content of description, and in order to allow above and other objects of the present invention, the feature and advantage can Become apparent, below especially exemplified by the detailed description of the invention of the present invention.
Accompanying drawing explanation
By reading the detailed description of hereafter preferred implementation, various other advantage and benefit common for this area Technical staff will be clear from understanding.Accompanying drawing is only used for illustrating the purpose of preferred implementation, and is not considered as the present invention Restriction.And in whole accompanying drawing, it is denoted by the same reference numerals identical parts.In the accompanying drawings:
Fig. 1 shows the schematic flow sheet of a kind of homepage finding method;
Fig. 2 shows the schematic diagram of a kind of electronic equipment.
Detailed description of the invention
It is more fully described the exemplary embodiment of the disclosure below with reference to accompanying drawings.Although accompanying drawing shows the disclosure Exemplary embodiment, it being understood, however, that may be realized in various forms the disclosure and should be by embodiments set forth here Limited.On the contrary, it is provided that these embodiments are able to be best understood from the disclosure, and can be by the scope of the present disclosure Complete conveys to those skilled in the art.
Embodiments provide a kind of homepage finding method and electronic equipment, be used for solving in prior art seedless clear Device of looking at cannot be carried out the technical problem of homepage finding.
Refer to Fig. 1, the embodiment of the present application provides a kind of homepage finding method, is applied to an electronic equipment, including:
The response webpage request of opening of S10: browser generates homepage finding request;
The request of described homepage finding is sent the destination application to described electronic equipment by S20: described browser, its In, described destination application can be positioned by the positioning function of self;
S30: described browser receives described destination application and responds the positioning result that the request of described homepage finding sends Information;
S40: described browser, according to described locating result information, injects location data to described webpage.
Browser is when opening webpage, it usually needs position user present position, in order to provide the user with more Effective service, such as: a certain shopping website, when opening this website, need the position letter that Positioning Electronic Devices is presently in Breath, and then commercial product recommending can be carried out according to positioning result.For homepage finding, the embodiment of the present application provides a kind of new location Mode, user initiate webpage open request time, perform S10: browser response webpage open request generate homepage finding request. The request of this homepage finding, for the destination application request location installed on electronic equipment, performs next step S20 for this.When So, while the browser response webpage request of opening generates homepage finding request, also produce web data and obtain request, carry out net The operation of webpage is opened in page data loading etc..
Homepage finding request is sent the destination application to electronic equipment by S20 browser.Wherein, intended application journey Sequence can be positioned by the positioning function of self, and can send locating result information to browser, the most no matter browses Device has core browser or seedless browser, all can obtain the current location of electronic equipment thus realize homepage finding.Target Application program can be map application, such as: Baidu's map, high moral map, search dog map etc..Concrete, can browse Interface is set between device and destination application, by interface, Location Request is sent to destination application, it is also possible to pass through Operating system sends Location Request to destination application, as browser sends Location Request, operating system root to operating system Send to destination application according to Location Request invocation target application program and by Location Request.Wherein, sent out by operating system Send Location Request not limited by destination application and there is versatility.
Destination application, when receiving Location Request, responds this Location Request and electronic equipment is presently in position enters Row location obtains locating result information.Owing to destination application self has positioning function, for map, navigation type application journey Sequence, is had accurate positioning, quick superior function, it is possible to obtain positioning result accurately, is obtained by destination application for this Obtain locating result information and can also overcome the inaccurate technical problem of homepage finding in prior art.Destination application obtains in location After obtaining locating result information, locating result information is fed back to browser.
S30 browser receives the locating result information that destination application response homepage finding request sends.Same, clear Looking at device can be by the interface locating result information between destination application, it is also possible to it is fixed to be received by operating system Position object information.
Performing S40 further, browser, according to the locating result information received, injects location data to webpage.Location Object information comprises three kinds: 1, location successful information, 2, location failure information, 3, location time-out information, browser can basis The different locating result information received, inject different location data to webpage.Concrete, when locating result information comprises During the successful information of location, browser can obtain the position data in the successful information of location, using the position data that gets as Location data inject webpage.Position data can be position coordinates coords, it is also possible to for the address name that position coordinates is corresponding. The example that readjustment injects location successful information is as follows:
Public static final String LOCATION_SUCCESS=
" javascript:hackLocationSuccess (coords:{latitude:%f, longitude:%f, Accuracy:%f}}) ";
When comprising location failure information or location time-out information in locating result information, browser will position failure information Or location time-out information injects webpage as location data, or, predeterminated position data are injected webpage as location data.Fixed Position failure information and location time-out information can be concrete Word messages, it is also possible to be code information, such as: position and unsuccessfully believe Breath can represent with 01231, and location time-out information can represent with 01230, location failure information, the readjustment of location time-out information Injection example is as follows:
Public static final String LOCATION_FAILED=
"javascript:hackLocationFailed({TIMEOUT:0,POSITION_UNAVAILABLE:1, PERMISSION_DENIED:2,UNKNOWN_ERROR:3,code:1});";
Public static final String LOCATION_TIMEOUT=
"javascript:hackLocationFailed({TIMEOUT:0,POSITION_UNAVAILABLE:1, PERMISSION_DENIED:2,UNKNOWN_ERROR:3,code:0});";
During using predeterminated position data as location data injection webpage, predeterminated position data can be: browser is in response Webpage open obtain before request in prelocalization data, local position data or conventional location data.Wherein, at prelocalization number According to the location data obtained at previous homepage finding for browser, such as: the location obtained when previous homepage finding Data are " Chengdu ", then when instantly positioning failed, and " Chengdu " is injected webpage;Local position data is that electronic equipment is corresponding The ownership place of communicating number, such as: the ownership place of electronic equipment correspondence communicating number 185XXXX0231 is " Beijing ", then Local position data is then " Beijing ", when positioning unsuccessfully, " Beijing " is injected webpage;Conventional location data are at Preset Time The position data that frequency is the highest is used, such as: assume that preset time period is one week, if user uses frequency in one week in cycle The highest position data is " Wuhan ", then when positioning unsuccessfully, and as location data, " Wuhan " is injected webpage.
The embodiment of the present application, after injecting location data to webpage, also provides a user with the interface of location data modification, If location data are inaccurate, user can input target position data accurately at this interface.Browser obtains user's input Target position data;And be the target position data that user inputs by the location data modification of display on webpage, and by target position Put data to send to destination application, so that follow-up location is modified by destination application more target position data, Help destination application to obtain and position data the most accurately, play the effect of feedback location.
In actual application, for the webpage needing homepage finding, page load logic is typically first to obtain Location data, it is thus achieved that perform follow-up webpage after the data of location and open process, as obtained web content data and location data The relevant content data etc. of coupling, arises that the situation of the data to be positioned such as webpage, affects the loading of follow-up data, lead for this Causing Consumer's Experience the best, the problem of data to be positioned such as during in order to solve to open webpage, the embodiment of the present application also provides for a kind of fixed Predeterminated position data are injected webpage when starting to open at webpage by the mode that bit data is injected, and generate and send webpage fixed simultaneously Position request so that webpage rapidly enters and obtains next step positioning data, it is to avoid location data latency, promotes Consumer's Experience;? Open webpage when completing, according to the locating result information received, inject location data to webpage and be used for updating predeterminated position number According to.May be identical with predeterminated position data by the actual location data obtained of destination application, it is also possible to differ.Not phase Meanwhile, browser is further according to web data relevant to location data in the data more new web page of location.
Wherein, can be browser obtain before response webpage opens request predeterminated position data at prelocalization number According to, local position data or conventional location data.Carry out different location data for different predeterminated position data to inject:
1., browser response webpage open request, when starting to open at webpage onPageStarted (), browser is existed What response webpage obtained before opening request is injected in webpage in prelocalization data, and generates and sends homepage finding request; When opening webpage and completing onPageFinished (), the location knot sent according to destination application feedback webpage Location Request Really information, injects location data for updating in prelocalization data to webpage.Such as: when onPageStarted (), browser Obtain before being asked by this secondary response homepage finding injects webpage in prelocalization data " Renminnan Road one section ", generates and sends Homepage finding is asked, to obtain locating result information by destination application such as Baidu's map;OnPageFinished () Time, according to the locating result information of destination application response homepage finding request feedback, if the location in locating result information Data are " Renminnan Road two-stage nitration ", then " Renminnan Road two-stage nitration " is injected in webpage the injecting data before updating " Renminnan Road one section ".
2., browser response webpage open request, when starting to open at webpage onPageStarted (), browser is existed The local position data that response webpage obtains before opening request is injected in webpage, and generates and sends homepage finding request; When opening webpage and completing onPageFinished (), the location sent according to destination application response homepage finding request Object information, injects location data to webpage and is used for updating local position data.Such as: when onPageStarted (), browse The local position data " Tianjin " that device obtains before being asked by this secondary response homepage finding injects webpage, generates and sends webpage fixed Position request, to obtain locating result information by destination application the highest moral map;When onPageFinished (), according to The locating result information of destination application response homepage finding request feedback, if the location data in locating result information are " Beijing ", then " Beijing " is injected in webpage the injecting data " Tianjin " before updating.
3., browser response webpage open request, when starting to open at webpage onPageStarted (), browser is existed The conventional location data that response webpage obtains before opening request are injected in webpage, and generate and send homepage finding request, Conventional location data are the position data that the use frequency in preset time period is the highest;Complete opening webpage During onPageFinished (), according to the locating result information of destination application response homepage finding request feedback, to webpage Inject location data to be used for updating conventional location data.
In specific implementation process, in order to avoid location data are injected unsuccessful, it is also possible to carry out twice location data Inject: when starting to open at webpage onPageStarted (), generate and send homepage finding request, receive destination application The locating result information that response homepage finding is asked and sent, injects location data according to locating result information to webpage;Beating Open webpage when completing onPageFinished (), inject location data to webpage in detail again according to positioning result, it is achieved location The successful injection of data.
In technique scheme, sending homepage finding by browser to the destination application with positioning function please Ask, to obtain locating result information by destination application, thus inject location data according to locating result information to webpage, Solve seedless browser in prior art and cannot complete the technical problem of homepage finding, simultaneously as fixed by self having The destination application of bit function positions, it is thus achieved that positioning result the most accurate, improve Consumer's Experience, and, logical Cross the program not limited by opening web page address, do not carried positioning function by electronic equipment and limited, it is possible to do not change net In the case of standing, it is thus achieved that homepage finding result the most accurately.
Refer to Fig. 2, a kind of homepage finding method provided based on the embodiment of the present application, the application implements also correspondence to be provided A kind of electronic equipment, this electronic equipment includes:
Browse unit 201, is used for responding the webpage request of opening and generates homepage finding request;
Transmitting element 202, for the request of described homepage finding is sent the destination application to described electronic equipment, Wherein, described destination application can be positioned by the positioning function of self;
Receive unit 203, respond, for receiving described destination application, the location knot that the request of described homepage finding sends Really information;
Injection unit 204, for according to described locating result information, injecting location data to described webpage.
In specific implementation process, described injection unit 204 is used for: position successfully if comprising in described locating result information Information, obtains the position data in the successful information of described location;Described position data is injected described as described location data Webpage.If described locating result information comprises location failure information or location time-out information, by described location failure information or Location time-out information injects described webpage as described location data, or, using predeterminated position data as described location data Inject described webpage.Wherein, described predeterminated position data include: described browser obtained before response webpage opens request In prelocalization data, local position data or conventional location data, wherein, described conventional location data are in preset time period The position data that interior use frequency is the highest.
Further, described electronic equipment also includes: acquiring unit 205 and updating block 206.Acquiring unit 205, is used for Described after described webpage injects location data, obtain the target position data of user's input.Updating block 206, is used for It is described target position data by described location data modification, and described target position data is sent to described intended application journey Sequence, so that follow-up location is modified by described destination application according to described target position data.
In specific implementation process, described browse unit 201 is additionally operable to: response webpage opens request, is starting to open at net During page, obtain before opening request at response webpage is injected in webpage in prelocalization data, and it is fixed to generate described webpage Position request;Described injection unit 204 is used for: when opening webpage and completing, and according to described locating result information, notes to described webpage Enter to position data described in prelocalization data for updating.
Described browse unit 201 is additionally operable to: response webpage opens request, when starting to open at webpage, and will be at response webpage The local position data obtained before opening request is injected in webpage, and generates the request of described homepage finding;Described injection is single Unit 204 is additionally operable to: when opening webpage and completing, and according to described locating result information, injects location data to described webpage and is used for Update described local position data.
Described browse unit 201 is additionally operable to: response webpage opens request, when starting to open at webpage, and will be at response webpage The conventional location data obtained before opening request are injected in webpage, and generate the request of described homepage finding, described conventional fixed Bit data is to use the position data that frequency is the highest in preset time period;Described injection unit 204 is additionally operable to: opening net When page completes, according to described locating result information, inject location data to described webpage and be used for updating described conventional location data.
About the electronic equipment in above-described embodiment, the concrete mode that wherein unit performs to operate is somebody's turn to do relevant The embodiment of method is described in detail, explanation will be not set forth in detail herein.
The technical scheme provided in the embodiment of the present application, at least has the following technical effect that or advantage:
The present invention sends homepage finding by browser to the destination application with positioning function and asks, to pass through mesh Mark application program obtains locating result information, thus injects location data according to locating result information to webpage, solves existing In technology, seedless browser cannot complete the technical problem of homepage finding, simultaneously as by the mesh self with positioning function Mark application program position, it is thus achieved that positioning result the most accurate, improve Consumer's Experience, and, by the program not Limited by opening web page address, do not carried positioning function by electronic equipment and limited, it is possible in the case of not changing website, Obtain homepage finding result the most accurately.
Algorithm and display are not intrinsic to any certain computer, virtual system or miscellaneous equipment relevant provided herein. Various general-purpose systems can also be used together with based on teaching in this.As described above, construct required by this kind of system Structure be apparent from.Additionally, the present invention is also not for any certain programmed language.It is understood that, it is possible to use various Programming language realizes the content of invention described herein, and the description done language-specific above is to disclose this Bright preferred forms.
In description mentioned herein, illustrate a large amount of detail.It is to be appreciated, however, that the enforcement of the present invention Example can be put into practice in the case of not having these details.In some instances, it is not shown specifically known method, structure And technology, in order to do not obscure the understanding of this description.
Similarly, it will be appreciated that one or more in order to simplify that the disclosure helping understands in each inventive aspect, exist Above in the description of the exemplary embodiment of the present invention, each feature of the present invention is grouped together into single enforcement sometimes In example, figure or descriptions thereof.But, the method for the disclosure should not be construed to reflect an intention that i.e. required guarantor The application claims feature more more than the feature being expressly recited in each claim protected.More precisely, as following Claims reflected as, inventive aspect is all features less than single embodiment disclosed above.Therefore, The claims following detailed description of the invention are thus expressly incorporated in this detailed description of the invention, the most each claim itself All as the independent embodiment of the present invention.
Those skilled in the art are appreciated that and can carry out the module in the equipment in embodiment adaptively Change and they are arranged in one or more equipment different from this embodiment.Can be the module in embodiment or list Unit or assembly are combined into a module or unit or assembly, and can put them in addition multiple submodule or subelement or Sub-component.In addition at least some in such feature and/or process or unit excludes each other, can use any Combine all features disclosed in this specification (including adjoint claim, summary and accompanying drawing) and so disclosed appoint Where method or all processes of equipment or unit are combined.Unless expressly stated otherwise, this specification (includes adjoint power Profit requires, summary and accompanying drawing) disclosed in each feature can be carried out generation by providing identical, equivalent or the alternative features of similar purpose Replace.
Although additionally, it will be appreciated by those of skill in the art that embodiments more in this include institute in other embodiments Including some feature rather than further feature, but the combination of the feature of different embodiment means to be in the scope of the present invention Within and form different embodiments.Such as, in the following claims, embodiment required for protection any it One can mode use in any combination.
The all parts embodiment of the present invention can realize with hardware, or to run on one or more processor Software module realize, or with combinations thereof realize.It will be understood by those of skill in the art that and can use in practice Microprocessor or digital signal processor (DSP) realize in gateway according to embodiments of the present invention, proxy server, system The some or all functions of some or all parts.The present invention is also implemented as performing side as described herein Part or all equipment of method or device program (such as, computer program and computer program).Such The program realizing the present invention can store on a computer-readable medium, or can have the shape of one or more signal Formula.Such signal can be downloaded from internet website and obtain, or provides on carrier signal, or with any other shape Formula provides.
The present invention will be described rather than limits the invention to it should be noted above-described embodiment, and ability Field technique personnel can design alternative embodiment without departing from the scope of the appended claims.In the claims, Any reference marks that should not will be located between bracket is configured to limitations on claims.Word " comprises " and does not excludes the presence of not Arrange element in the claims or step.Word "a" or "an" before being positioned at element does not excludes the presence of multiple such Element.The present invention and can come real by means of including the hardware of some different elements by means of properly programmed computer Existing.If in the unit claim listing equipment for drying, several in these devices can be by same hardware branch Specifically embody.Word first, second and third use do not indicate that any order.These word explanations can be run after fame Claim.
The invention discloses, A1, a kind of homepage finding method, be applied to an electronic equipment, it is characterised in that including:
The browser response webpage request of opening generates homepage finding request;
Described browser is by the destination application in described homepage finding request transmission to described electronic equipment, wherein, Described destination application can be positioned by the positioning function of self;
Described browser receives described destination application and responds the locating result information that the request of described homepage finding sends;
Described browser, according to described locating result information, injects location data to described webpage.
2A, according to the method described in A1, it is characterised in that described browser is according to described locating result information, to described Webpage injects location data, including:
If comprising location successful information in described locating result information, described browser obtains in the successful information of described location Position data;
Described position data is injected described webpage as described location data by described browser.
3A, according to the method described in A1, it is characterised in that described browser is according to described locating result information, to described Webpage injects location data, including:
If comprising location failure information or location time-out information in described locating result information, described browser is by described fixed Position failure information or described location time-out information inject described webpage as described location data, or, described browser will be pre- If position data injects described webpage as described location data.
4A, according to the method described in A3, it is characterised in that described predeterminated position data include:
Described browser response webpage open obtain before request at prelocalization data, local position data or conventional Location data, wherein, described conventional location data are to use the position data that frequency is the highest in preset time period.
5A, according to the arbitrary described method of A1~4A, it is characterised in that described to described webpage inject location data it After, described method also includes:
Described browser obtains the target position data of user's input;
Described location data modification is described target position data by described browser, and is sent out by described target position data Deliver to described destination application, so that follow-up location is repaiied by described destination application according to described target position data Just.
6A, according to the method described in A1 or 2A, it is characterised in that described browser response webpage open request generate webpage Location Request, including:
Described browser response webpage opens request, when starting to open at webpage, is beaten at response webpage by described browser Obtain before opening request is injected in webpage in prelocalization data, and generates the request of described homepage finding;
Described browser, according to described locating result information, injects location data to described webpage, including:
When opening webpage and completing, according to described locating result information, inject location data to described webpage and be used for updating Described in prelocalization data.
7A, according to the method described in A1 or 2A, it is characterised in that described browser response webpage open request generate webpage Location Request, including:
Described browser response webpage opens request, when starting to open at webpage, is beaten at response webpage by described browser The local position data obtained before opening request is injected in webpage, and generates the request of described homepage finding;
Described browser, according to described locating result information, injects location data to described webpage, including:
When opening webpage and completing, according to described locating result information, inject location data to described webpage and be used for updating Described local position data.
8A, according to the method described in A1 or 2A, it is characterised in that described browser response webpage open request generate webpage Location Request, including:
Described browser response webpage opens request, when starting to open at webpage, is beaten at response webpage by described browser The conventional location data obtained before opening request are injected in webpage, and generate the request of described homepage finding, described conventional location Data are to use the position data that frequency is the highest in preset time period;
Described browser, according to described locating result information, injects location data to described webpage, including:
When opening webpage and completing, according to described locating result information, inject location data to described webpage and be used for updating Described conventional location data.
The invention also discloses, 9B, a kind of electronic equipment, it is characterised in that including:
Browse unit, is used for responding the webpage request of opening and generates homepage finding request;
Transmitting element, for the request of described homepage finding is sent the destination application to described electronic equipment, its In, described destination application can be positioned by the positioning function of self;
Receive unit, respond, for receiving described destination application, the positioning result letter that the request of described homepage finding sends Breath;
Injection unit, for according to described locating result information, injecting location data to described webpage.
10B, according to the electronic equipment described in B9, it is characterised in that described injection unit is used for:
If described locating result information comprises location successful information, obtain the positional number in the successful information of described location According to;
Described position data is injected described webpage as described location data.
11B, according to the electronic equipment described in B9, it is characterised in that described injection unit is additionally operable to:
If described locating result information comprising location failure information or location time-out information, by described location failure information Or location time-out information injects described webpage as described location data, or, using predeterminated position data as described location number According to injecting described webpage.
12B, according to the electronic equipment described in B11, it is characterised in that described predeterminated position data include:
Described browser response webpage open obtain before request at prelocalization data, local position data or conventional Location data, wherein, described conventional location data are to use the position data that frequency is the highest in preset time period.
13B, according to the arbitrary described electronic equipment of B9~12B, it is characterised in that also include:
Acquiring unit, is used for described after described webpage injects location data, obtains the target location of user's input Data;
Updating block, being used for described location data modification is described target position data, and by described target location number According to sending to described destination application, so that described destination application is positioned into follow-up according to described target position data Row is revised.
14B, according to the electronic equipment described in B9 or 10B, it is characterised in that described browse unit is additionally operable to: response webpage Opening request, when starting to open at webpage, obtain before opening request at response webpage is injected into net in prelocalization data In Ye, and generate the request of described homepage finding;
Described injection unit is used for: when opening webpage and completing, and according to described locating result information, injects to described webpage Location data are used for updating described in prelocalization data.
15B, according to the electronic equipment described in B9 or 10B, it is characterised in that described browse unit is additionally operable to: response webpage Opening request, when starting to open at webpage, the local position data obtained before opening request at response webpage is injected into net In Ye, and generate the request of described homepage finding;
Described injection unit is used for: when opening webpage and completing, and according to described locating result information, injects to described webpage Location data are used for updating described local position data.
16B, according to the electronic equipment described in B9 or 10B, it is characterised in that described browse unit is additionally operable to: response webpage Opening request, when starting to open at webpage, the conventional location data obtained before opening request at response webpage are injected into net In Ye, and generating the request of described homepage finding, described conventional location data are to use frequency the highest in preset time period Position data;
Described injection unit is used for: when opening webpage and completing, and according to described locating result information, injects to described webpage Location data are used for updating described conventional location data.

Claims (10)

1. a homepage finding method, is applied to an electronic equipment, it is characterised in that including:
The browser response webpage request of opening generates homepage finding request;
The request of described homepage finding is sent the destination application to described electronic equipment by described browser, wherein, described Destination application can be positioned by the positioning function of self;
Described browser receives described destination application and responds the locating result information that the request of described homepage finding sends;
Described browser, according to described locating result information, injects location data to described webpage.
2. the method for claim 1, it is characterised in that described browser is according to described locating result information, to described Webpage injects location data, including:
If comprising location successful information in described locating result information, described browser obtains the position in the successful information of described location Put data;
Described position data is injected described webpage as described location data by described browser.
3. the method for claim 1, it is characterised in that described browser is according to described locating result information, to described Webpage injects location data, including:
If comprising location failure information or location time-out information in described locating result information, described location is lost by described browser Lose information or described location time-out information and inject described webpage as described location data, or, described browser is by default position Put data and inject described webpage as described location data.
4. method as claimed in claim 3, it is characterised in that described predeterminated position data include:
Described browser response webpage open obtain before request in prelocalization data, local position data or conventional location Data, wherein, described conventional location data are to use the position data that frequency is the highest in preset time period.
5. the method as described in Claims 1 to 4 is arbitrary, it is characterised in that described to described webpage inject location data it After, described method also includes:
Described browser obtains the target position data of user's input;
Described location data modification is described target position data by described browser, and is sent extremely by described target position data Described destination application, so that follow-up location is modified by described destination application according to described target position data.
6. method as claimed in claim 1 or 2, it is characterised in that the response webpage request of opening of described browser generates webpage Location Request, including:
Described browser response webpage opens request, and when starting to open at webpage, being opened at response webpage by described browser please Ask obtain before to be injected in webpage in prelocalization data, and generate the request of described homepage finding;
Described browser, according to described locating result information, injects location data to described webpage, including:
When opening webpage and completing, according to described locating result information, inject location data to described webpage and be used for updating described In prelocalization data.
7. method as claimed in claim 1 or 2, it is characterised in that the response webpage request of opening of described browser generates webpage Location Request, including:
Described browser response webpage opens request, and when starting to open at webpage, being opened at response webpage by described browser please Ask the local position data obtained before to be injected in webpage, and generate the request of described homepage finding;
Described browser, according to described locating result information, injects location data to described webpage, including:
When opening webpage and completing, according to described locating result information, inject location data to described webpage and be used for updating described Local position data.
8. method as claimed in claim 1 or 2, it is characterised in that the response webpage request of opening of described browser generates webpage Location Request, including:
Described browser response webpage opens request, and when starting to open at webpage, being opened at response webpage by described browser please Ask the conventional location data obtained before to be injected in webpage, and generate the request of described homepage finding, described conventional location data For using the position data that frequency is the highest in preset time period;
Described browser, according to described locating result information, injects location data to described webpage, including:
When opening webpage and completing, according to described locating result information, inject location data to described webpage and be used for updating described Conventional location data.
9. an electronic equipment, it is characterised in that including:
Browse unit, is used for responding the webpage request of opening and generates homepage finding request;
Transmitting element, for sending the destination application to described electronic equipment, wherein, institute by the request of described homepage finding State destination application to be positioned by the positioning function of self;
Receive unit, respond, for receiving described destination application, the locating result information that the request of described homepage finding sends;
Injection unit, for according to described locating result information, injecting location data to described webpage.
10. electronic equipment as claimed in claim 9, it is characterised in that described injection unit is used for:
If described locating result information comprises location successful information, obtain the position data in the successful information of described location;
Described position data is injected described webpage as described location data.
CN201610509414.6A 2016-06-30 2016-06-30 Webpage positioning method and electronic equipment Active CN106202289B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610509414.6A CN106202289B (en) 2016-06-30 2016-06-30 Webpage positioning method and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610509414.6A CN106202289B (en) 2016-06-30 2016-06-30 Webpage positioning method and electronic equipment

Publications (2)

Publication Number Publication Date
CN106202289A true CN106202289A (en) 2016-12-07
CN106202289B CN106202289B (en) 2020-03-10

Family

ID=57464167

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610509414.6A Active CN106202289B (en) 2016-06-30 2016-06-30 Webpage positioning method and electronic equipment

Country Status (1)

Country Link
CN (1) CN106202289B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109669737A (en) * 2018-12-19 2019-04-23 百度在线网络技术(北京)有限公司 Application processing method, device, equipment and medium
CN110971753A (en) * 2019-10-12 2020-04-07 平安国际智慧城市科技股份有限公司 Positioning method and device based on browser, mobile terminal and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN201489531U (en) * 2009-06-30 2010-05-26 富钧环境工程股份有限公司 Personnel tracking system using Android platform device
US20130079032A1 (en) * 2011-09-23 2013-03-28 Tara Chand Singhal Systems for faster access and download of digital content in mobile wireless devices using wirelless device browser
CN103020247A (en) * 2012-12-18 2013-04-03 北京奇虎科技有限公司 Page presentation method and device
CN103247226A (en) * 2013-04-23 2013-08-14 北京小米科技有限责任公司 Method and device for determining electronic map

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN201489531U (en) * 2009-06-30 2010-05-26 富钧环境工程股份有限公司 Personnel tracking system using Android platform device
US20130079032A1 (en) * 2011-09-23 2013-03-28 Tara Chand Singhal Systems for faster access and download of digital content in mobile wireless devices using wirelless device browser
CN103020247A (en) * 2012-12-18 2013-04-03 北京奇虎科技有限公司 Page presentation method and device
CN103247226A (en) * 2013-04-23 2013-08-14 北京小米科技有限责任公司 Method and device for determining electronic map

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109669737A (en) * 2018-12-19 2019-04-23 百度在线网络技术(北京)有限公司 Application processing method, device, equipment and medium
CN109669737B (en) * 2018-12-19 2023-04-18 百度在线网络技术(北京)有限公司 Application processing method, device, equipment and medium
CN110971753A (en) * 2019-10-12 2020-04-07 平安国际智慧城市科技股份有限公司 Positioning method and device based on browser, mobile terminal and storage medium

Also Published As

Publication number Publication date
CN106202289B (en) 2020-03-10

Similar Documents

Publication Publication Date Title
US9304808B2 (en) Updating a workflow when a user reaches an impasse in the workflow
US7783723B2 (en) Systems and methods for submitting data from a WML-based browser
US20140289366A1 (en) Service providing method and system for instance hosting
US20160321628A1 (en) Online payment method, system, and apparatus
US20120173962A1 (en) Online application providing apparatus
US20150201022A1 (en) Method for providing internet of things service
CN105302710A (en) Method and apparatus for determining test case in need of regression testing
EP3337219A1 (en) Carrier configuration processing method, device and system, and computer storage medium
US20150113423A1 (en) System and method to configure a field device
CN106060004A (en) Database access method and database agent node
CN104579830B (en) service monitoring method and device
CN103475744A (en) Resource downloading method, device and system on basis of Web application
CN108776587B (en) Data acquisition method and device, computer equipment and storage medium
US9245044B2 (en) Use of generic universal resource indicators
US9104398B2 (en) Invocation of external web services using dynamically generated composite applications
CN109271778B (en) Using installation source differentiating method, electronic equipment and computer storage medium
CN108958855B (en) Page jump method, device and system
CN103347029A (en) Method, terminal, server and system for service data interaction
CN106202289A (en) A kind of homepage finding method and electronic equipment
CN107360036A (en) A kind of network failure locating method, terminal and server
CN105450449A (en) File operation methods and devices
CN104539607A (en) Information checking method, terminal and server
CN114185804A (en) Interface testing method and device and terminal equipment
CN110704320A (en) Control operation method and device
CN105930431A (en) Method, device and system for accessing database

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
TR01 Transfer of patent right

Effective date of registration: 20240104

Address after: 100088 room 112, block D, 28 new street, new street, Xicheng District, Beijing (Desheng Park)

Patentee after: BEIJING QIHOO TECHNOLOGY Co.,Ltd.

Address before: 100088 room 112, block D, 28 new street, new street, Xicheng District, Beijing (Desheng Park)

Patentee before: BEIJING QIHOO TECHNOLOGY Co.,Ltd.

Patentee before: Qizhi software (Beijing) Co.,Ltd.

TR01 Transfer of patent right