Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Javascript and FMPro? CGI calls.

Status
Not open for further replies.

twentyjars

Technical User
Mar 31, 2004
1
AU
I am having trouble using cookies to find records...

When querying a field, using a java defined function doesn't work...

-author='getCookie(name)' etc...

I am not sure of the syntax, or even if it is possible. Function goes inside any " " marks, or? Help?!
 
in CDML?
make sure that your JS code does not contain "<!--"
make sure your browser(s) is set to accept cookies
....I can only estimate CDML:
=============snip
What it does
[FMP-Cookie] is replaced with the current value of the specified cookie.

A cookie is saved by the browser; therefore, your user's browser must support this feature. Older browsers may not support this feature.

Syntax
[FMP-Cookie: CookieName , Encoding ]

Parameter(s)
First parameter: Name of the cookie to return.

Second parameter (optional): Encoding. Use one of the following reserved words:
Raw - (default) Don't perform any encoding
URL - Perform URL encoding

Syntax example(s)
Return the value of the current cookie using an HTML file
[FMP-If: CurrentCookie:ColorChoice .neq. ""]
Thanks for coming back! The latest products in [FMP-Cookie: ColorChoice]
are listed below.
[/FMP-If]

<!-- After processing it could look like:
Thanks for coming back! The latest products in green
are listed below.
-->

See also
[FMP-SetCookie]

===================snap

HTH
All the best!

> need more info?
:: don't click HERE ::
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top