ReJump


Chapter 15:: Manual:: ReJump DataFile
Technology



 


Home

Datafile
About
News
Manual
<...
Chapt.15
...>
Download
Contacts








Address box in browser

To call necessary information from browser's address box use following type of record:
/template/object/object
or
/?template/object/object
Completely it looks as:

www.site.com/template/object/object
or
www.site.com/?template/object/object

Example:
www.site.com/guestbook-list/data-guestbook/data-admin
or
www.site.com/?guestbook-list/data-guestbook/data-admin

Template is a path to template's file, which is called for information mapping. See relatively to folder "templates", at that "/" changed on "-" in the path to templates.
In the example "guestbook-list" points to template's file "templates/guestbook/list" and object "data-guestbook" points to the folder "data/guestbook".

ReJump system processes first type request (without ?) using capability to set what document would be returned on error request. In spite of there is no document "/guestbook-list" in fact system direxts all requests to the "rejump_df.pl" script. It sets code 404 (there is no such file) at backoff.
When the result document's size smaller then 512 bites Internet Explorer ignores data returned by the server and gives out its 404 Error document instead of them.
If you use question mark you automatically point that you apply to index, which is "rejump_df.pl".
In that case error 404 doesn't appeares and server's reply is correct. There are no such problems with other browsers (for example, Opera or Mozilla).
It is necessary to output small pages (smaller then 512 bites) at system debugging, when you want to check up the result of expression separate from the page. It is more right to use "?" in that case.

Call from browser's address box is identical to inclusion operation <@@>. In both cases objects you've got as parameters would be substituted instead "$1,$2,$3..." construction in template.
Also you can transmit values in the address box such as "skip" and "on_page".
Example:
"www.site.com/?exmpl_tpl/data-1?skip=2&on_page=10"
Question mark (?) is used here. As a whole syntax coincides with parameters transmission to standard cgi-script.

Index
Download
Contacts
If you have any questions, please, contact us via email: datafile@rejump.com.


© 2002-2009 Алексей Мась, ReJump