CN106713501B - The method of locating terminal of ActiveX component based on WEB application - Google Patents

The method of locating terminal of ActiveX component based on WEB application Download PDF

Info

Publication number
CN106713501B
CN106713501B CN201710076373.0A CN201710076373A CN106713501B CN 106713501 B CN106713501 B CN 106713501B CN 201710076373 A CN201710076373 A CN 201710076373A CN 106713501 B CN106713501 B CN 106713501B
Authority
CN
China
Prior art keywords
terminal
server
computer identity
activex
browser
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.)
Active
Application number
CN201710076373.0A
Other languages
Chinese (zh)
Other versions
CN106713501A (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.)
Sichuan Shangtong Industrial Co Ltd
Original Assignee
Sichuan Shangtong Industrial 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 Sichuan Shangtong Industrial Co Ltd filed Critical Sichuan Shangtong Industrial Co Ltd
Priority to CN201710076373.0A priority Critical patent/CN106713501B/en
Publication of CN106713501A publication Critical patent/CN106713501A/en
Application granted granted Critical
Publication of CN106713501B publication Critical patent/CN106713501B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/02Protocols based on web technology, e.g. hypertext transfer protocol [HTTP]
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/54Interprogram communication
    • G06F9/547Remote procedure calls [RPC]; Web services
    • G06F9/548Object oriented; Remote method invocation [RMI]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/52Network services specially adapted for the location of the user terminal

Abstract

The method of locating terminal of the invention discloses a kind of ActiveX component based on WEB application, method and step is as follows, by windows system, support ActiveX function web browser based on, step 1 reads computer identity, it is sent in step 2 computer identity, the identification of step 3 computer identity, step 4 terminal display, after terminal enters the page, server-side obtains COOKIE value and server-side Session ID is retrieved, identification terminal shows respective interface, shows present terminal geographical location and periphery trade company by third party's map interface.Compared with prior art, the present invention carries ActiveX technology using web browser and obtains every terminal iidentification, is interacted by network transmission with server-side end data, to judge the corresponding position of every terminal and permission.And the same server-side can manage multiple terminals, can be each terminal distribution different rights.

Description

The method of locating terminal of ActiveX component based on WEB application
Technical field
The present invention relates to a kind of internet area more particularly to a kind of terminal of the ActiveX component based on WEB application are fixed Position method.
Background technique
Terminal accesses server-side by browser http protocol, and server-side can not know terminal location, thus can not be independent Control each terminal.
Summary of the invention
It solves the above problems the object of the invention is that providing one kind, the ActiveX component based on WEB application passes through JavaScript script calls the method for locating terminal of ActiveX control acquisition computer identity.
To achieve the goals above, the technical solution adopted by the present invention is that: a kind of ActiveX component based on WEB application Method of locating terminal, method and step is as follows, by windows system, support ActiveX function web browser based on,
Step 1 reads computer identity,
When terminal accesses server-side by browser, server-side calls ActiveX control to obtain by JavaScript script Computer identity is taken, each computer identity is unique, and the mark also has corresponding coordinate and permissions data in server end;
It is sent in step 2 computer identity,
When browser accesses server-side, server-side is created unique Session ID and is stored in terminal in the form of COOKIE In, and computer identity is submitted by server-side by asynchronous AJAX;
The identification of step 3 computer identity,
Server-side obtain computer identity after, by with database retrieval, obtain the corresponding coordinate longitude of the mark, latitude Degree, function privilege, and be recorded in Session, and return to processing result, allow terminal to enter WEB homepage after success;
Step 4 terminal display
After terminal enters the page, server-side obtains COOKIE value and server-side Session ID is retrieved, identification terminal, display Respective interface shows present terminal position and periphery trade company by third party's map interface.
Preferably, passing through ActiveXObject object reference in browser JavaScript script in step 1 WScript.Network obtains local machine mark.
Preferably, in step 2, by AJAX object in the library jQuery send HTTP Asynchronous Request will be sent in mark to Server-side.
Preferably, terminal controls respectively, different terminals customize operation.
Compared with the prior art, the advantages of the present invention are as follows: ActiveX technology is carried using browser and obtains every terminal Mark, is interacted by network transmission with server-side end data, to judge the corresponding position of every terminal and permission.And it is same A server-side can manage multiple terminals, can be each terminal distribution different rights.
Detailed description of the invention
Fig. 1 is invention's principle block diagram.
Specific embodiment
The invention will be further described below.
Embodiment: referring to Fig. 1, a kind of method of locating terminal of the ActiveX component based on WEB application, method and step It is as follows, it is necessary for windows system, based on web browser must support ActiveX function,
Step 1 reads computer identity
This is obtained by ActiveXObject object reference WScript.Network in browser JavaScript script Machine computer name (computer name is computer identity in this application).
It is sent in step 2 computer identity
When browser accesses server-side, server-side is created unique Session ID and is stored in terminal in the form of COOKIE In, and will be given in mark to server-side by AJAX object transmission HTTP Asynchronous Request in the library jQuery.
The identification of step 3 computer identity
Server-side obtain computer identity after, by with database retrieval, obtain the corresponding coordinate longitude of the mark, latitude Degree, function privilege simultaneously records in Session, and returns and handle successfully permission terminal and enter WEB homepage.
Step 4 terminal display
After terminal enters the page, server-side obtains COOKIE value and server-side Session ID is retrieved, identification terminal, display Respective interface shows present terminal position and periphery trade company by third party's map interface.
The present invention carries ActiveX technology using browser and obtains every terminal iidentification, passes through network transmission and server-side End data interaction, to judge the corresponding position of every terminal and permission.Terminal controls respectively, and different terminals customize operation, The same server-side can manage multiple terminals, can be each terminal distribution different rights.
The method of locating terminal of the ActiveX component to provided by the present invention based on WEB application has carried out detailed above It introduces, used herein a specific example illustrates the principle and implementation of the invention, the explanation of above embodiments It is merely used to help understand method and its core concept of the invention;At the same time, for those skilled in the art, according to this The thought of invention, there will be changes in the specific implementation manner and application range, will be to change and improvement of the invention It is possible, the conception and scope without exceeding accessory claim defined, in conclusion the content of the present specification should not be understood For limitation of the present invention.

Claims (3)

1. a kind of method of locating terminal of the ActiveX component based on WEB application, it is characterised in that: method and step is as follows, with Windows system, support ActiveX function web browser based on,
Step 1 reads computer identity,
When terminal accesses server-side by browser, browser calls ActiveX control to obtain meter by JavaScript script Calculation machine mark, each computer identity is unique, and the mark also has corresponding coordinate and permissions data in server end;
It is sent in step 2 computer identity,
When browser accesses server-side, server-side is created unique Session ID and is saved in the form of COOKIE in the terminal, And computer identity is submitted by server-side by asynchronous AJAX;
The identification of step 3 computer identity,
Server-side obtain computer identity after, by with database retrieval, obtain the corresponding coordinate longitude of the mark, latitude, function Energy permission, and be recorded in Session, and return to processing result, allow terminal to enter WEB homepage after success;
Step 4 terminal display
After terminal enters the page, server-side obtains COOKIE value and server-side Session ID is retrieved, identification terminal, and display is corresponding Interface shows present terminal position and periphery trade company by third party's map interface;
In step 1, obtained by ActiveXObject object reference WScript.Network in browser JavaScript script Local machine is taken to identify.
2. the method for locating terminal of the ActiveX component according to claim 1 based on WEB application, it is characterised in that: step In rapid two, sending HTTP Asynchronous Request by AJAX object in the library jQuery will be sent in mark to server-side.
3. the method for locating terminal of the ActiveX component according to claim 1 based on WEB application, it is characterised in that: eventually End controls respectively, and different terminals customize operation.
CN201710076373.0A 2017-02-13 2017-02-13 The method of locating terminal of ActiveX component based on WEB application Active CN106713501B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710076373.0A CN106713501B (en) 2017-02-13 2017-02-13 The method of locating terminal of ActiveX component based on WEB application

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710076373.0A CN106713501B (en) 2017-02-13 2017-02-13 The method of locating terminal of ActiveX component based on WEB application

Publications (2)

Publication Number Publication Date
CN106713501A CN106713501A (en) 2017-05-24
CN106713501B true CN106713501B (en) 2019-11-26

Family

ID=58911291

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710076373.0A Active CN106713501B (en) 2017-02-13 2017-02-13 The method of locating terminal of ActiveX component based on WEB application

Country Status (1)

Country Link
CN (1) CN106713501B (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101841764A (en) * 2009-03-16 2010-09-22 华为软件技术有限公司 Method and device for sending and acquiring position information of mobile terminal
CN103902680A (en) * 2014-03-21 2014-07-02 百度在线网络技术(北京)有限公司 Search recommendation method and device
CN104270404A (en) * 2014-08-29 2015-01-07 小米科技有限责任公司 Login method and device based on terminal identification
CN104410650A (en) * 2014-12-24 2015-03-11 四川金网通电子科技有限公司 Method for authenticating user based on Session and Cookie
CN104506612A (en) * 2014-12-19 2015-04-08 北京奇虎科技有限公司 Information recommendation method, server and browser device

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2000099440A (en) * 1998-09-11 2000-04-07 Internatl Business Mach Corp <Ibm> System, device and method for distributing data and position display device
US20100287178A1 (en) * 2009-05-08 2010-11-11 Google Inc. Refining location estimates and reverse geocoding based on a user profile

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101841764A (en) * 2009-03-16 2010-09-22 华为软件技术有限公司 Method and device for sending and acquiring position information of mobile terminal
CN103902680A (en) * 2014-03-21 2014-07-02 百度在线网络技术(北京)有限公司 Search recommendation method and device
CN104270404A (en) * 2014-08-29 2015-01-07 小米科技有限责任公司 Login method and device based on terminal identification
CN104506612A (en) * 2014-12-19 2015-04-08 北京奇虎科技有限公司 Information recommendation method, server and browser device
CN104410650A (en) * 2014-12-24 2015-03-11 四川金网通电子科技有限公司 Method for authenticating user based on Session and Cookie

Also Published As

Publication number Publication date
CN106713501A (en) 2017-05-24

Similar Documents

Publication Publication Date Title
CN102843357B (en) Access the method for network, application server and system
US10614621B2 (en) Method and apparatus for presenting information
CN102780619B (en) Method and device for processing message
CN104410711A (en) Cross-domain network resource request method and device for client
CN107818046B (en) A/B test method and device for application program page
US20150139082A1 (en) Generating Sequenced Instructions For Connecting Through Captive Portals
US11244153B2 (en) Method and apparatus for processing information
CN110808868B (en) Test data acquisition method and device, computer equipment and storage medium
CN104618449A (en) Web singe-point login implementing method and device
CN108259533A (en) A kind of data transmission method and device
CN103825919A (en) Method, device and system for data resource caching
CN106933817B (en) Content query method, device and system based on B/S structure
CN104618388A (en) Quick registration and login method and corresponding reset server and information server
CN105871976A (en) Data cross-domain request method and system, and devices
CN110674427B (en) Method, device, equipment and storage medium for responding to webpage access request
CN106557584A (en) A kind of web site collection method and device
JP2011043924A (en) Web action history acquisition system, web action history acquisition method, gateway device and program
KR20140037751A (en) Methods and systems for providing content provider-specified url keyword navigation
CN105787750A (en) Information pushing method and information pushing device
EP3864531A1 (en) Dynamic bookmarking of web addresses accessed via short url
US11064052B2 (en) Page insertion method and device
CN106713501B (en) The method of locating terminal of ActiveX component based on WEB application
CN105554740B (en) A kind of method, device and equipment identifying hotspot
CN110633432A (en) Method, device, terminal equipment and medium for acquiring data
CN107483294B (en) Method and device for monitoring network request

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant