Friday, October 9, 2009

DreamweaverMX is made leave a message this (2)

In front we are mentioned, show what should assure to leave a message first normally be about to accomplish in have when leaving a message, just show leave a message, if did not leave a message to show " of short duration is not had leave a message " , how are these done in DW MX then? ? Be here, we should learn a new server behavior Show Region (active area) , show different data namely according to the data in the library.

The basic idea that says it first, take us above leave a message content will make an example: If I leave a message,content is empty, what to show; If leave a message,content is empty, what to show again. If pursue (7-9) be shown.

7-9

Pitch on is whole leave a message Application is applied after content form- - > Server Behaviors- - > Show Region- - > Show Region If Recordset Is Not Empty(is not empty) when record volume, should leave a message namely content is this form demonstrates when sky. Other must say here behavior of a few servers.

Show Region If Recordset Is Empty (if record collect to be empty) : When the record collect is when sky, the area of indication pitch on. Show Region If Recordset Is Not Empty (if record collect to not be empty) : When the record includes a record centrally, indication place chooses area.

Show Region If First Record (if be the first record) : When be in the first record that records concentration, the area of indication pitch on.
Show Region If Not First Record (if not be the first record) : When not was in a record to amass the first record, show chooses extent.
Show Region If Last Record (if be last record) : When be in a record to amass last record, show chooses extent.
Show Region If Not Last Record (if not be last record) : When not was in a record to amass last record, show chooses extent.

Click it, if pursue,appear (7-10) what show a dialog box.



7-10

In this dialog box choice and one's own profession are corresponding record volume, in this page we built volume of a record only, the name is Guestbook. If the effect after using server act pursues (7-11) be shown.



7-11
Leave a message to prevent to should be done not have content when can make mistake, here we apply Show Region If Recordset Is Empty(to should record collect to be even when sky) behavior, apply it " of short duration is not had leave a message " on form, if final result pursues (7-12) be shown.



7-12

Next, let us perfect it, through showing to a few small table are inserted in the old table that leave a message, the platoon is good, insert relevant picture (what here puts is the commonnest little picture on the net. : ) , if pursue (7-13) be shown. Here is a few the basiccest Dreamweaver form kongfu, detail affection refers to this series tutorial other paragraphic.



7-13

Should do now, pull the data in the database in corresponding f orm namely, if pull user name in the unit case at the back of the full name, leave a message content should be put leave a message in the unit case after content, remember pulling F_name to be published at in front, f_time procrastinates to send at at from the back, when such indication, became " XX is published at XX " . See a picture (7-14) be shown.



7-14

Here has a small Bug, namely what we show leave a message cannot undertake the format is changed, namely no matter have how many carriage return,your meeting discovery takes call the turn in yours, when showing won't line feed, and the blank space of two above can become a blank space. This problem can use Spdformat.mxt plug-in unit to solve (plug-in unit downloads here! ) . After installing good plug-in unit, if the method pursues (7-48) be shown. Leave a message content and stationmaster reply should use this plug-in unit.




7-48
Likelihood the person should ask, of those that OICQ and so on in my database how be done. This, do not know everybody knows not to know an Alt property of label of the Img in Html, namely the mouse moves corresponding demonstrative character shows when going up. Be here, we have it and picture corresponding trends is bound calm. The connection after as to the homepage address criterion make it is clicked went to corresponding address, mailbox OUTLOOK is opened to be opposite after be being clicked post a letter of the person that leave a message.

If particular facet pursues (7-15) be shown.



7-15

Have here divide orderly early or late, first the picture of pitch on OICQ, the data set that picks phasing to answer from the record volume of right again (the field that OICQ number deposits in database of here pitch on (F_oicq) , again from Bind To: Lv  says Mg.alt of 駃 of ダ americium ≡ , namely the Img label attribute that we tell in front, clicked the Bind from the back to go again, i f bind,decide right word can arise and in front the color like recording part, used act of a server in order to indicate here, if pursue (7-16) be shown. Here we even its beautification.



7-16

Open source and design view, you can discover what a moment ago inserted east east Alt="<%=(guestbook.fields.item("f_oicq").value)%>" is in code, before this paragraph of code puts COPY to it, change among them F_oicq into F_name (the full name field that the person posts in the database) , the OICQ number that makes its final code is Alt="<%=(guestbook.fields.item("f_name").value)%> is <%=(guestbook.fields.item("f_oicq").value)%>" , it is when it shows so " the OICQ number of XX is XX " , dynamic bind decided, much better, ah. .



7-17

No comments:

Post a Comment