Javascript and Database Results

J

JasonLFunk

I need help with somthing. I have a cookie that I created with Javascript. Is there a way that I can get the information from the cookie and use that in the Database Results. Like for example, say someone has there username and password in the cookie. How can I display all of their information that is stored in their row of the database using Frontpage? Is it possible? Do I need to not use javascript for my cookie? Someone please help.
 
J

Jim Buyens

-----Original Message-----
I need help with somthing. I have a cookie that I
created with Javascript. Is there a way that I can get
the information from the cookie and use that in the
Database Results. Like for example, say someone has there
username and password in the cookie. How can I display
all of their information that is stored in their row of
the database using Frontpage? Is it possible? Do I need
to not use javascript for my cookie? Someone please help.

This depends on where teh cookie came from.

If you created the cookie on the browser, then you would
have to read its value and store it in a hidden form
field. Then, you could use the name of the hidden form
field as critera in the DRW.

If you created the cookie in another ASP page, then you
can just use the cookie name as critera in the DRW.

Jim Buyens
Microsoft FrontPage MVP
http://www.interlacken.com
Author of:
*----------------------------------------------------
|\---------------------------------------------------
|| Microsoft Office FrontPage 2003 Inside Out
||---------------------------------------------------
|| Web Database Development Step by Step .NET Edition
|| Microsoft FrontPage Version 2002 Inside Out
|| Faster Smarter Beginning Programming
|| (All from Microsoft Press)
|/---------------------------------------------------
*----------------------------------------------------
 
J

JasonLFunk

So Just put the name of the hidden form in? For example if i had <input type="hidden" name="Database"> I would just type Database in the critera?

----- Jim Buyens wrote: -----
-----Original Message-----
I need help with somthing. I have a cookie that I
created with Javascript. Is there a way that I can get
the information from the cookie and use that in the
Database Results. Like for example, say someone has there
username and password in the cookie. How can I display
all of their information that is stored in their row of
the database using Frontpage? Is it possible? Do I need
to not use javascript for my cookie? Someone please help.

This depends on where teh cookie came from.

If you created the cookie on the browser, then you would
have to read its value and store it in a hidden form
field. Then, you could use the name of the hidden form
field as critera in the DRW.

If you created the cookie in another ASP page, then you
can just use the cookie name as critera in the DRW.

Jim Buyens
Microsoft FrontPage MVP
http://www.interlacken.com
Author of:
*----------------------------------------------------
|\---------------------------------------------------
|| Microsoft Office FrontPage 2003 Inside Out
||---------------------------------------------------
|| Web Database Development Step by Step .NET Edition
|| Microsoft FrontPage Version 2002 Inside Out
|| Faster Smarter Beginning Programming
|| (All from Microsoft Press)
|/---------------------------------------------------
*----------------------------------------------------
 
J

Jim Buyens

JasonLFunk said:
So Just put the name of the hidden form in? For example if
i had <input type="hidden" name="Database"> I would just type
Database in the critera?

Yes, and select the Use This Search Form Field checkbox.

Jim Buyens
Microsoft FrontPage MVP
http://www.interlacken.com
Author of:
*----------------------------------------------------
|\---------------------------------------------------
|| Microsoft Office FrontPage 2003 Inside Out
||---------------------------------------------------
|| Web Database Development Step by Step .NET Edition
|| Microsoft FrontPage Version 2002 Inside Out
|| Faster Smarter Beginning Programming
|| (All from Microsoft Press)
|/---------------------------------------------------
*----------------------------------------------------
 
J

JasonLFunk

When I put in the name of the hidden form and have the use the search feild form and it creates a search form instead of using the orgianal hidden forms...
 
J

JasonLFunk

After screwing around with it for awhile I got it so it reconized the hidden forms but the user still had to press a button inorder for it to work. How can I make it so they wont have to press a button?
 
Top