Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > Mumps > Re: MSM-PDQWEB
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 3 of 4 Topic 871 of 1005
Post > Topic >>

Re: MSM-PDQWEB

by claudia@[EMAIL PROTECTED] Jul 2, 2007 at 02:59 PM

I've been developing with MSM-PDQWEB using 16 entrypoints where 15 are
exactly the same
Only the first one is diferent. The first entrypoint checks login and
password and give
a log number for the user-session setting a global ^KLOG(LOG)=3DUSU_|_
$H_|_IP
all the others should check $D(^KLOG) - if this is a valid log
In all heads for every page we make D ^CAB where we check IP number
and how much time from last
call, then we can ask for password again or just close page.
^KLOG is been cleaned all the time.

Entry points from K2 to K16
    ;
    S GO=3D$G(%("MSMWEB_QUERY","GO"))
    S LOG=3D$G(%("MSMWEB_QUERY","LOG"))
    I '$D(^KLOG(LOG)) D ALERT("SESSION EXPIRED",1) Q
    I GO'=3D"" D @[EMAIL PROTECTED]
 call comes from forms working like this:

    D ^F($$EP,GO,LOG,NAME) where
    $$EP gets the next free EP (from 2 to 16)
    GO =3D the routine you need to run
    LOG =3D log number

D ^F(EP,GO,LOG,NAME)  ;
     W !,"<form action=3D""/pdqweb/bin/kkk.web"" If NAME'=3D"" W
NAME=3D"""_NAME_"""
     W !,"<input type=3D""hidden"" for  EP and LOG

and for D ^CAB in all routines we call from "@[EMAIL PROTECTED]
" , we allways check
USU and IP
if they are the same in ^KLOG(LOG)

I do not know if this can help - but it is just the way we do that
anyway most of the time we write direct html inside Mumps routines
and when using Javascripts we call "D ^JNUMERIC" as an example for
numeric treatment
You can also write your own routine that reads html txt and save into
a routine
with W ! for each line ( I think we have some like this and I will
look for)
I'm from Brazil and if you need anymore help --- please e-mail me
Claudia@[EMAIL PROTECTED]
 Jun 20, 6:53 am, lazaro <txear...@[EMAIL PROTECTED]
> wrote:
> Recently I was developing an intranet using MSM-PDQWEB after an
> acculturation from a Micronetics distribution.
>
> At the moment, I've done it like distribution examples:
>
> 1.designing with Dreamweaver
> 2.copying and pasting de html code into routines in the M server
> 3.deploying the M sintax (introducing Write commands, variables, etc)
> 4.configuring the entry points at the .web file
>
> However, the small manual from the MSM-PDQWEB distribution, talks
> about another way for developing active web pages:
>
> 1.design a web page like a template with place-holders where M data is
> to be inserted
> 2.place the template in a known location on the M server
> 3.access the file (I supose the template) from M, and insert data into
> the correct place-holders
> 4.send back to the browser the resulting html do***ents
>
> There isn't any example to do this, in the distribution.
>
> Could anybody guide me how to come across this proceediment (better
> about point 3) ?
>
> I've been looking for it during many time at the internet (forums,
> news, web, etc) and I was not be able to find any reference in this
> way.
>
> This software is unsup****ted by Intersystems, and I cannot migrate to
> Cache and Weblink by now.
>
> Any suggestions sincerely appreciated
>
> Ll. L=E1zaro
 




 4 Posts in Topic:
MSM-PDQWEB
lazaro <txearana@[EMAI  2007-06-20 02:53:38 
Re: MSM-PDQWEB
itko59@[EMAIL PROTECTED]   2007-06-28 09:52:57 
Re: MSM-PDQWEB
claudia@[EMAIL PROTECTED]  2007-07-02 14:59:29 
Re: MSM-PDQWEB
chuck5566 <chuck5566@[  2007-07-31 00:28:53 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Sat Sep 6 23:14:52 CDT 2008.