Embodiment
Basic thought of the present invention is by in different ways e-magazine is divided into several different parts that are mutually related in the process that generates e-magazine, utilize far-end network side update service device to upgrade 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.
Below in conjunction with the accompanying drawing in the embodiment of the invention, the technical scheme in the embodiment of the invention is clearly and completely described; 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 belong to the scope of protection of the invention not making the every other embodiment that is obtained under the creative work prerequisite.
The embodiment of the invention 1 provides the method for electronic journal data updating, and as shown in Figure 1, 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 by multiple existing mode, do not repeat them here; 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, described SWF form parts are inserted the e-magazine packaged unit comprise the e-magazine packet that moves parts, content parts and updating component in conjunction with the generation of Flash content parts simultaneously; Wherein, the purpose that adopts described 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 by 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, does not repeat them here; So the flash animation file that 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; Utilize the flash animation file of " Flash calls external data " technology generation again, SWF form parts in this flash animation file are inserted in the e-magazine packaged 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) at least, content parts (the content file of store electrons magazine, as picture, music, link etc.) and updating component, thereby realized that operation parts (comprising executable program file) and content parts (comprise flash, picture, sound, literal etc.) be separated;
It should be noted that, " Flash the calls external data " technology of employing generates the flash animation file 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 by frame, knob, film clip; The 2nd, in flash software, insert the files such as TXT, XML of code call outside, and with files such as TXT, XML as the storage intermediate variable, call content file (as picture file, flash file, audio files, text, video file or the like) by files such as TXT, XML; Flash can make SWF file, content and code be separated with combining of txt, xml, 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 update request that described updating component is initiated, transfer more from the update service device according to this update request new data calls the described e-magazine of data updated demonstration operation in the content parts again by the content-data in the described updating component update content parts so that move when parts are triggered once more.
Concrete, described update service device is being stored data message and the new data more in the described content parts; After the update request that receives the updating component initiation, transfer data on the server according to this update 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 described renewal Data Update content parts;
In addition, the method for the foregoing description also can comprise: before the e-magazine packet is sent to user side, set in advance the pattern that updating component is initiated update request; The pattern of described initiation update request comprises: when described updating component is triggered, initiate update request; With the default cycle of initiating update request, so that described updating component is periodically initiated update request; Wherein, when the content-data title in described more new data and the described content parts and/or form are identical, then replace content-data of the same name in the content parts with described more new data; Content-data title in described more new data and described content parts and/or form then increase this more new data not simultaneously in described content parts;
Concrete, increase process in the described renewal is: hold the new file data that does not have in the e-magazine content parts if the more new data in the update service device is original local user, then receive after the update request with this more new data download in the content parts of local user's end by updating component; Replacement process in the described 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 described content parts, to transfer content-data (comprise renewal after content-data) and show, promptly finish the renewal of e-magazine data when operation parts when being triggered once more
Certainly, present embodiment can also be after receiving update request, replace described operation parts by updating component, promptly when having set up new and operation parts executable program file of the same name on the described update service device, the executable program file of the same name that this is new downloads on reader's the local computing, replace the operation parts of original e-magazine on the local computing, become new operation parts; And in embodiments of the present invention, specifically can and be undertaken more newly downloadedly by the ftp dual mode by http, and other renewal downloading mode certainly yet can be arranged, this paper repeats no more.
As can be seen, adopt the method for the embodiment of the invention, to comprise the operation parts, the e-magazine packet of content parts and updating component sends to user side, and after the update request that receives described updating component initiation, from the update service device, transfer more new data again by the content-data in the described updating component update content parts according to this update request, when being triggered once more, call parts the described e-magazine of data updated demonstration operation in the content parts so that move, realize the renewal of e-magazine with this, 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 as shown in Figure 2, this device 200 comprises: transmitting element 201, updating block 202 and update service device 203; Wherein,
Described transmitting element 201 is used for sending to user side with comprising the e-magazine packet that moves parts, content parts and updating component;
Described updating block 202 is used to receive the update request that described updating component is initiated, and from update service device 203, transfer more new data again by the content-data in the described updating component update content parts according to this update request, data updated shows the described e-magazine of operation in the content parts so that the operation parts call when being triggered once more;
Described update service device 203 is used for storing the data of described content parts and new data more.
Wherein, this device 200 this comprise: before described transmitting element sends to user side with the e-magazine packet, set in advance the default unit that updating component is initiated the update request pattern; Wherein, the default initiation update request pattern in described default unit comprises:
When described updating component was triggered, described updating component was initiated update request; With
The default cycle of initiating update request is so that described updating component is periodically initiated update request.
In addition, described updating block comprises: replace module and increase module; Wherein, described replacement module is used for content-data title when described more new data and described content parts when identical, replaces content-data of the same name in the content parts with described more new data; Described increase module be used for when the content-data title of described more new data and described content parts not simultaneously, this new data more of increase in described content parts then.
In addition, this device also comprises: generation unit; Described 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 described SWF parts and the generation of Flash content parts insertion e-magazine packaged unit is comprised the e-magazine packet that moves parts, content parts and updating component.
As can be seen, to comprise the e-magazine data of moving parts, content parts and updating component by transmitting element and send to user side, and updating component can be set as set time every day (as 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 update request, more new data on the update service device can be downloaded in the e-magazine content parts on the user side, to increase or to replace original content-data, or whole replace original operation parts, and 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 many different technologies and in 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 the above description.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 specific should being used for, 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 directly use the software module 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 herein General Principle can realize under the situation that does not break away from the spirit or scope of the present invention in other embodiments.Therefore, the present invention will can not be restricted to these embodiment shown in this article, but will meet and principle disclosed herein and features of novelty the wideest corresponding to scope.
The above only is preferred embodiment of the present invention, and is in order to restriction the present invention, within the spirit and principles in the present invention not all, any modification of being done, is equal to replacement, improvement etc., all should be included within protection scope of the present invention.