--nextPart1760213.LhHTNVu6d8
Content-Type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: 8Bit
hi im still playing with js and the webserver
im still write the search for messajes
i use three steps
1)search.ssjs (main page, it have one form with a select control for the areas and text control for user input)
2)search_result.ssjs (it show brief from the messages founds)
3)showmsg.ssjs (it show the select message)
i make a "search" directory on /sbbs/web/html
and /sbbs/web/templates/default/ too
the templates are same name with .inc extension. (templates seems to work for me)
step 1 and stem 2 work fine, in step 2 y make a url "showmsg.ssjs?sub=sub_name&id=numbre_of_message" (you can see it in action http://bbs.docksud.com.ar:8088/search/search.ssjs)
in step 3 im get the id of message from a http get var and save it in var called idx
but if i use this var on msg_get_header, it fails (line 43)
(i test with more pass from more variables (template.msgid)but the issue is same)
hdr = msgbase2.get_msg_header(true,idx);
if i print idx it contain the number correctly.
if i force the value to var idx to some value its work.
Sysop: | Ragnarok |
---|---|
Location: | Dock Sud, Bs As, Argentina |
Users: | 136 |
Nodes: | 10 (0 / 10) |
Uptime: | 11:53:19 |
Calls: | 15,171 |
Calls today: | 4 |
Files: | 19,857 |
D/L today: |
57 files (5,495K bytes) |
Messages: | 1,691,624 |