Jump to content
View in the app

A better way to browse. Learn more.

FMForums.com

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Featured Replies

Hi,

I am having trouble with cookies. I search old topics but i cant find a solution for me.

Here is the problem ??? I cant use cookies.

I am adding the fallowing code to results.xsl (which site assistant automatically create)


I am using firefox 1.0.6 on windows xp. I cant see my cookie in the settings window.

And i am using FMSA7

How can i use cookies?

Sorry for poor english. :confused:

Thanks in advance

Adam Djuby

Did you add the

<?xslt-cwp-buffer buffer-content="true"?> processing instruction directly after

<?xml version="1.0" encoding="UTF-8"?> ? See CWP Guide on p. 63 and p. 58.

And replace 'localhost' by the name of your host, e.g. by "somehost.com" (without www).

Martin

  • Author

<?xslt-cwp-buffer buffer-content="true"?> was in third line now i took it to second line as you say.

And i replace localhost as adamdjuby.com (but there is no domain as i write is it important?)

Finally I cant see my cookie i firefox settings. :confused:???

(Note: There is a cokkie named "JSESSIONID" from localhost, I think wpe created it.)

Thanks

Adam Djuby

Does Firefox allow to set cookies? (see preferences or options)

Is there any other software firewall which prohibits cookies?

  • Author

Other pages can register cookies. My settings allows cookies. And there is no other software which prevents cookies. I can browse fmforums and other web pages without any problem caused by cookie settings.

And there is also one cookie named JSESSIONID from localhost (when i open recordlist.xsl the cookie is created)

I am very new to xsl and developing web via FMSA.

Thanks

Adam Djuby

Can you post this file here in the forum? Thanks,

Martin

  • Author

of course

thanks

I would do 2 things:

- take the variable outside of xsl:attribute (it might be that there the XSLT engine does not start to interpret the variable, because the final result would be empty anyway)

- write "fmxslt:set_cookie()" not "fmxslt:set_cookie () "




  

  Home



If, however, you want that the cookie is set when the link is clicked, then you should use the fmxslt:set_cookie() in the XSLT file that will display the "Home" page.

  • Author

I changed code but still i cant register my cookie. ???

I update FMSA 7 to 7v3 but still not working

(I dont like to add cokie lint to home, i just place it randomly.)

I only want use a simple cookie for my pool to prevent multiple votes.

I will be very glad if somebody send me a simple xsl which register a cookie.

Thanks lot

Adam Djuby

XML result tree:

Cookie value:

  • Author

Thaks

It is working on real server but not my own computer via local host. Thats not problem. Thanks again.

Adam Djuby

Did you try with 127.0.0.1 instead of localhost?

  • Author

Thaks a lot now it works fine.

Adam Djuby

  • 4 weeks later...
  • Newbies

Martin, thanks for your help on this issue. I noticed you also responded to me on the FSA site. I have now got the cookies to work but am stumped as to how to set the cookie to a dynamic value that is parsed and coming from filemaker. I have tried a variable but am getting a syntax error as a result.

Any thoughts?

Thanks

Darren

  • Newbies

Martin, thanks for your help on this issue. I noticed you also responded to me on the FSA site. I have now got the cookies to work but am stumped as to how to set the cookie to a dynamic value that is parsed and coming from filemaker. I have tried a variable but am getting a syntax error as a result.

Any thoughts?

Thanks

Darren

Darren, can you post the XSLT file? Thank you.

  • Newbies

Front end of the set cookie xsl, I have not problem insterting the cookie in the result xsl file. I have tried to use the attribute tag to break out the value of statment but is does not seem to set the cookie when I do this. Either way I need to get the cookie definition statement of the the '<','>' to be able to insert the value-of the projectid field from Filemaker.

The code hear works but I would like the value of 2197 to be dynamic as it is the record identifier. This is all to get around the fact the xsl does not support framesets. I works but I just need to set the cookie value to be a dynamic value from filemaker.

Any advice you could provide would be helpfull

thanks

Darren

<?xml version="1.0" encoding="UTF-8"?>

<?xslt-cwp-query params="-db=Projects&-lay.response=Intranet&-grammar=fmresultset&-encoding=UTF-8"?>

<?xslt-cwp-buffer buffer-content="true"?>

Welcome to iprojects

A few comments:

- eliminate the first variable definition of projectid (the one before xsl:output ...), its value will not be defined (because the XPath is wrong).

- are you sure that you get only one record? Otherwise you should specify the record number in your XPath with fmrs:record[1] .

- according to the Apache Xalan XSLT processor documentation, the construct is not treated efficiently by the XSLT processor. Replace it by

- variables can be accessed with a $ before the name

The code should therefore look like:






Create an account or sign in to comment

Important Information

By using this site, you agree to our Terms of Use.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.