Javascript and Database Results

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

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.
 
-----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)
|/---------------------------------------------------
*----------------------------------------------------
 
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)
|/---------------------------------------------------
*----------------------------------------------------
 
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)
|/---------------------------------------------------
*----------------------------------------------------
 
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...
 
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?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top