Re: template/javascript varsã By: Ragnarok to DOVE-Net.Sync_JavaScript on Mon Nov 28 2005 07:14 pmãã > --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);ããThe ID of a message is a string.ã"idx" usually refers to the message's index record (an object).ãYou're calling get_msg_header() with "by_offset" set to "true" and passingãeither an index record or a string (I can't tell). Either way, it's incorrect.ãã > if i print idx it contain the number correctly.ããIf idx is a number, then it's not the message ID.ãã > if i force the value to var idx to some value its work.ããWhat's "idx" stand for?ãã digital manããSnapple "Real Fact" #49:ãDespite its hump...camel's have a straight spine.ã---ã þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.netã