Embodiment
Basic thought of the present invention is through in the process that generates e-magazine, adopting different modes that e-magazine is divided into several different parts that are mutually related; Utilize far-end network side update service device to upgrade the content-data in the parts of memory of content data in a plurality of parts again; Realize the Data Update of e-magazine; It is simple and easy to do to operate, and has effectively reduced the maintenance cost of e-magazine.
To combine the accompanying drawing in the embodiment of the invention below, the technical scheme in the embodiment of the invention will be carried out clear, intactly description; Obviously, described embodiment only is the present invention's part embodiment, rather than whole embodiment.Based on the embodiment among the present invention, those of ordinary skills are not making the every other embodiment that is obtained under the creative work prerequisite, all belong to the scope of the present invention's protection.
The embodiment of the invention 1 provides the method for electronic journal data updating, and is as shown in Figure 1, and this method comprises:
In step 101, will comprise the e-magazine packet that moves parts, content parts and updating component and send to user side;
Wherein, the operation parts of e-magazine are that example, updating component are example with the update software program, and are elaborated for example with the executable program of e-magazine in the present embodiment; Concrete; The embodiment of the invention proposes to utilize the different parts of e-magazine; And the incidence relation between each parts realizes the renewal of e-magazine, as for how generating the e-magazine that comprises a plurality of associated members can realize through multiple existing mode, repeats no more at this; Present embodiment is an example with following generating mode only; But be not limited thereto: adopt Flash to call the external data technology and generate the Flash data file that comprises SWF form parts and Flash content parts, combine Flash content parts to generate simultaneously said SWF form parts insertion e-magazine packing unit and comprise the e-magazine packet that moves parts, content parts and updating component; Wherein, The purpose that adopts said Flash to call the external data technology is that the partial content of e-magazine is separated from the e-magazine file (executable program file) of final formation; Have only the e-magazine executable program file is separated with the magazine content file, can reach purpose all or part of renewal of content file; And according to prior art, the content file packing is generated in the finished product file of e-magazine, then must be with could magazine being upgraded operating difficulties through the way of in the magazine source file, revising and regenerating;
Concrete, " Flash the calls external data " technology of use generates the flash animation file, and concrete generative process can adopt prior art to realize, repeats no more at this; The flash animation file that so generates comprises SWF form parts and content parts two parts, and all or part of content that is about to the flash animation file is separated separately from SWF form parts, thereby creates conditions for upgrading; The flash animation file that utilizes " Flash calls external data " technology to generate again; SWF form parts in this flash animation file are inserted in the e-magazine packing unit (for example e-magazine making software); Generate the finished product file of e-magazine simultaneously as the content parts of e-magazine with Flash content parts; The e-magazine finished product file that generate this moment just comprises operation parts (e-magazine executable program), the content parts (content file of store electrons magazine at least; Like picture, music, link etc.) and updating component, thereby realized that operation parts (comprising executable program file) and content parts (comprising flash, picture, sound, literal etc.) are separated;
It should be noted that; Adopt " Flash calls external data " technology to generate the flash animation file and can adopt two kinds of methods usually; But be not limited thereto: the one, directly in flash software, insert code call exterior artwork file, flash file, audio files, text, video file etc., and Flash software can call external file through frame, knob, film clip; The 2nd, in flash software, insert files such as the outside TXT of code call, XML; And with files such as TXT, XML as the storage intermediate variable, call content file (like picture file, flash file, audio files, text, video file or the like) through files such as TXT, XML; The combining of Flash and txt, xml can make SWF file, content and code be separated, and both can revise content file during modification, also can only revise TXT, XML file (as revising link), and need not once more by fla file output finished product file (SWF file);
In addition, mentioned data, file includes but not limited to picture file, flash file, audio files, text, video file, exe file, program file, external linkage, script file etc. in the present embodiment.
In step 202; Receive the renewal request that said updating component is initiated; Transfer from the update service device according to this renewal request and to Update Information again, show and move said e-magazine so that the operation parts call in the content parts data updated when being triggered once more through the content-data in the said updating component update content parts.
Concrete, said update service device is being stored the data message in the said content parts and is being Updated Information; After the renewal request that receives the updating component initiation; Transfer the data on the server according to this renewal request; And the file data of data file address appointment on the server sent to updating component, utilize the address between updating component and content parts to point to the content-data in the said update content parts that Update Information;
In addition, the method for the foregoing description also can comprise: before the e-magazine packet is sent to user side, the pattern that updating component initiates to upgrade request is set in advance; The pattern that request is upgraded in said initiation comprises: when said updating component is triggered, initiate to upgrade request; With the preset cycle of initiating to upgrade request, so that said updating component periodically initiates to upgrade request; Wherein, when said Update Information with said content parts in content-data title and/or form when identical, then with the content-data of the same name in the said replacement content parts that Update Information; When said Update Information with said content parts in content-data title and/or form not simultaneously, then in said content parts, increase this and Update Information;
Concrete; Increase process in the said renewal is: if Updating Information to original local user holds the new file data that does not have in the e-magazine content parts in the update service device, then receiving after the request of renewal Updates Information this downloads in the content parts that the local user holds through updating component; Replacement process in the said renewal is: if the data in the update service device and local user hold the content-data preserved in the e-magazine content parts title/or form on consistent; Then the data on this update service device are downloaded on local user's end, and replace original of the same name/or with the content-data of form; After the renewal,, utilize the address to point to from said content parts, to transfer content-data (comprise renewal after content-data) and show, promptly accomplish the e-magazine updating data when operation parts when being triggered once more
Certainly; Present embodiment can also be after receiving the request of renewal; Replace said operation parts through updating component, promptly when having set up new and operation parts executable program file of the same name on the said update service device, the executable program file of the same name that this is new downloads on reader's the local computing; The operation parts of original e-magazine become new operation parts on the replacement local computing; And in embodiments of the present invention, specifically can and carry out more newly downloadedly through the ftp dual mode through http, and other renewal downloading mode certainly yet can be arranged, this paper repeats no more.
Can find out; Adopt the method for the embodiment of the invention; To comprise the e-magazine packet that moves parts, content parts and updating component and send to user side, and after the renewal request that receives said updating component initiation, ask from the update service device, to transfer to Update Information again through the content-data in the said updating component update content parts according to this renewal; When being triggered once more, call parts the said e-magazine of data updated demonstration operation in the content parts so that move; With this renewal that realizes e-magazine, it is simple and easy to do to operate, and has effectively reduced the maintenance cost of e-magazine.
Based on above-mentioned thought, the embodiment of the invention 2 has proposed a kind of device of realizing electronic journal data updating again, and is as shown in Figure 2, and this device 200 comprises: transmitting element 201, updating block 202 and update service device 203; Wherein,
Said transmitting element 201 is used for sending to user side with comprising the e-magazine packet that moves parts, content parts and updating component;
Said updating block 202 is used to receive the renewal request that said updating component is initiated; And transfer from update service device 203 based on this renewal request and to Update Information again through the content-data in the said updating component update content parts, show and move said e-magazine so that the operation parts call in the content parts data updated when being triggered once more;
Said update service device 203 is used for storing the data of said content parts and Updating Information.
Wherein, this device 200 this comprise: the preset unit that updating component is initiated renewal request pattern was set before said transmitting element sends to the e-magazine packet user side in advance; Wherein, the preset initiation renewal request pattern in said preset unit comprises:
When said updating component was triggered, said updating component initiated to upgrade request; With
The preset cycle of initiating to upgrade request is so that said updating component periodically initiates to upgrade request.
In addition, said updating block comprises: replacement module and increase module; Wherein, said replacement module is used for when the said content-data title with said content parts of Updating Information is identical, with the content-data of the same name in the said replacement content parts that Update Information; Said increase module be used for saidly Updating Information with the content-data title of said content parts not simultaneously, then in said content parts, increase this and Update Information.
In addition, this device also comprises: generation unit; Said generation unit is used to adopt Flash to call the Flash data file that the generation of external data technology comprises SWF parts and Flash content parts, more said SWF parts and Flash content parts insertion e-magazine packing unit generation is comprised the e-magazine packet that moves parts, content parts and updating component.
Can find out; To comprise the e-magazine data of moving parts, content parts and updating component through transmitting element and send to user side; And can updating component be set as set time every day (like 12:00) renewal automatically, also can be set as and move renewal when being triggered; Therefore; Only need deposit in data updated on the update service device, then after receiving element receives the request of renewal, can Updating Information on the update service device be downloaded in the e-magazine content parts on the user side; To increase or to replace original content-data; Or the original operation parts of whole replacement, upgrade simple and easy to doly with this, and significantly reduced the maintenance cost of e-magazine.
It will be understood by those skilled in the art that and to use in many different processes and the technology any one to come expression information, message and signal.For example, the message of mentioning in the above-mentioned explanation, information can be expressed as voltage, electric current, electromagnetic wave, magnetic field or magnetic particle, light field or above combination in any.
The professional can also further should be able to recognize; The unit and the algorithm steps of each example of describing in conjunction with embodiment disclosed herein; Can realize with electronic hardware, computer software or the combination of the two; For the interchangeability of hardware and software clearly is described, the composition and the step of each example described prevailingly according to function in above-mentioned explanation.These functions still are that software mode is carried out with hardware actually, depend on the application-specific and the design constraint of technical scheme.The professional and technical personnel can use distinct methods to realize described function to each certain applications, but this realization should not thought and exceeds scope of the present invention.
The method of describing in conjunction with embodiment disclosed herein or the step of algorithm can be directly with the software modules of hardware, processor execution, and perhaps the combination of the two is implemented.Software module can place the storage medium of any other form known in random asccess memory (RAM), internal memory, read-only memory (ROM), electrically programmable ROM, electrically erasable ROM, register, hard disk, moveable magnetic disc, CD-ROM or the technical field.
To the above-mentioned explanation of the disclosed embodiments, make this area professional and technical personnel can realize or use the present invention.Multiple modification to these embodiment will be conspicuous concerning those skilled in the art, and defined General Principle can realize under the situation that does not break away from the spirit or scope of the present invention in other embodiments among this paper.Therefore, the present invention will can not be restricted to these embodiment shown in this paper, but will meet and principle disclosed herein and features of novelty the wideest corresponding to scope.
The above is merely preferred embodiment of the present invention, and is in order to restriction the present invention, not all within spirit of the present invention and principle, any modification of being done, is equal to replacement, improvement etc., all should be included within protection scope of the present invention.