Accessing Cookies

2 views
Skip to first unread message

Anjib

unread,
Oct 4, 2010, 1:03:26 PM10/4/10
to EnhanceJS
I am wondering where and how can I access the cookies after the test
by enhancejs?

I am displaying the results in the table using DataTable jQuery plugin
and second level of the information is display after user click on the
detail link (e.g. http://www.datatables.net/examples/api/row_details.html).
All stuff work fine if javascript is enable but once disable no
details can be displayed.

As an alternative for javascript disable I am trying to display detail
info in next page instead of next row. For that I need to check test
result then only I can branch.

My general idea is to

if(cookies say javascript not enable){
// Use link to display the result in next page
<html:link action="path.do?param=value" target="_blank">Detail</
html:link>
}else{
// Cookies say advance view
// so call the javascript function and proceed normal
// Ajax call
}

If in context the call to get detail is an ajax call.

Any help will be appreciated.

Thanks in advance.
Reply all
Reply to author
Forward
0 new messages