Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

can i set a variable inside a noscript tag?

Posted on 2011-09-27
6
Medium Priority
?
919 Views
Last Modified: 2012-05-12
hi
i am in the proccess of ajaxifying my crud. the php all works great and most of the ajax part except one thing.

i have a regular  pagination and i have a jquery pagination plugin. so i want to set a variable $isjs inside the noscript tag. and then if JS is not enabled i use my regular pagination and if JS is enabled i`ll use the plugin.

any idea?

best regards
0
Comment
Question by:derrida
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 4
  • 2
6 Comments
 
LVL 15

Expert Comment

by:Eyal
ID: 36708003
use meta refresh with parameter on first load and save it in the session of the user
0
 
LVL 1

Author Comment

by:derrida
ID: 36708029
how can i do it inside the noscript tag? i need a variable that let me know if javascript is enabled or disabled?
0
 
LVL 15

Expert Comment

by:Eyal
ID: 36708199
you can't write/use any javascript if the browser is not supporting it

<noscript>
<META HTTP-EQUIV=Refresh CONTENT="1; URL=http://www.yourdomain.com/?supportjs=0">
</noscript>

and do everything from the server
0
VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

 
LVL 1

Author Comment

by:derrida
ID: 36708259
hi
maybe i did not explained myself correctly: i do not want to redirect, i just need to set a variable according to the status of javascript.

the issue is that php as server side does not know about it, so i need a way to let it know.
0
 
LVL 15

Expert Comment

by:Eyal
ID: 36708263
you can't
0
 
LVL 15

Accepted Solution

by:
Eyal earned 2000 total points
ID: 36708270
you can't use javascript

so redirect with parameter is your only way to let the server know that
use the meta or link
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Many old projects have bad code, but the budget doesn't exist to rewrite the codebase. You can update this code to be safer by introducing contemporary input validation, sanitation, and safer database queries.
This article discusses how to implement server side field validation and display customized error messages to the client.
The viewer will learn how to count occurrences of each item in an array.
The viewer will learn how to create and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…
Suggested Courses

610 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question