Re: WebCat2 - Getting to the browser's username/password data
This WebDNA talk-list message is from 1997
It keeps the original formatting.
numero = 10274
interpreted = N
texte = >>Aparently the only way right now for WebCat2 to get the [username] and>>[password] data from the browser (instead of from the database) while>>inside a [founditems] context is to create variables while *outside* of a>>[founditems] context ... such as v.browserUsername=[username] and>>v.browserPassword=[password] ...>>Unfortunately you can't just set the value of a string variable like that.>The solution might be to use a parameterized include to pass the variables>thru.I just checked this in the docs, because I had never used [include] before... but it sure looks simple. I guess using [include] like this would dothe same thing as naming a new variable in a hyperlink ... but with[include it is hidden because it's in the form instead of being in a
link which is always visible in the browser ...Actually I do remember trying [include] earlier but it didn't seem toinclude the designated file so I forgot about it. Was there an [include]problem in an earlier version of the CGI or plugin that's fixed now?>>Is it possible to have more than one [founditems]>>context in a template when they are *not* nested?>>You mean several places where exactly the same list of found records is to>be listed?Yes, that's exactly what I mean ... :)>Sure. As many as you want.Okay then, this makes life a lot easier! This means my response at the topof theis message is wrong, there is a much easier way to get the browser's[password] value. All I should have to do while in a [founditems] contextwould be to put a:[/founditems][password][founditems]into my existing templates wherever I need the *browser's* password insteadof the *database* password value. And if my [founditems] context is nestedin another [founditems] context, all I would need to do is get slightlymore complicated, such as:[/founditems][/founditems][password][founditems][founditems]This ought to work, right?Sincerely,Ken
Associated Messages, from the most recent to the oldest:
>>Aparently the only way right now for WebCat2 to get the
[username] and>>
[password] data from the browser (instead of from the database) while>>inside a
[founditems] context is to create variables while *outside* of a>>
[founditems] context ... such as v.browserUsername=
[username] and>>v.browserPassword=
[password] ...>>Unfortunately you can't just set the value of a string variable like that.>The solution might be to use a parameterized include to pass the variables>thru.I just checked this in the docs, because I had never used
[include] before... but it sure looks simple. I guess using
[include] like this would dothe same thing as naming a new variable in a hyperlink ... but with[include it is hidden because it's in the form instead of being in a
link which is always visible in the browser ...Actually I do remember trying [include] earlier but it didn't seem toinclude the designated file so I forgot about it. Was there an
[include]problem in an earlier version of the CGI or plugin that's fixed now?>>Is it possible to have more than one
[founditems]>>context in a template when they are *not* nested?>>You mean several places where exactly the same list of found records is to>be listed?Yes, that's exactly what I mean ... :)>Sure. As many as you want.Okay then, this makes life a lot easier! This means my response at the topof theis message is wrong, there is a much easier way to get the browser's
[password] value. All I should have to do while in a
[founditems] contextwould be to put a:[/founditems]
[password][founditems]into my existing templates wherever I need the *browser's* password insteadof the *database* password value. And if my
[founditems] context is nestedin another
[founditems] context, all I would need to do is get slightlymore complicated, such as:[/founditems][/founditems]
[password][founditems][founditems]This ought to work, right?Sincerely,Ken
Kenneth Grome
DOWNLOAD WEBDNA NOW!
Top Articles:
Talk List
The WebDNA community talk-list is the best place to get some help: several hundred extremely proficient programmers with an excellent knowledge of WebDNA and an excellent spirit will deliver all the tips and tricks you can imagine...
Related Readings:
Couple of techno questions (1999)
auction site (2000)
RAM variables (1997)
Cant open pages generated by Webcat (2004)
Most Efficiant Way to do restricted Areas (1997)
POS (2000)
WebCat2.0 acgi vs plugin (1997)
is there a global includes directory? (1998)
Web DNA... (2007)
Re:no [search] with NT (1997)
virtual domain service (1997)
Using Plug-In while running 1.6.1 (1997)
Append command (2000)
Problems with [Search] param - Mac Plugin b15 (1997)
Kaaaaahhhhhhhnnnnnnn! (1997)
Thanks ! (1997)
Problem 2: Prefs file... (1997)
[OT] Bad Cookie / Internet Option / Internet Explorer (2004)
[shownext max=?] armed (1997)
Help! WebMerchant store suddenly won't process orders... (2001)