Skip to main content
deleted 13 characters in body
Source Link
stellard
  • 5.3k
  • 9
  • 43
  • 63

I am creating a web app that uses Rails built-in helper functions to add ajax functionality to the site. I do not want the user to be able to use the app without JS as it will not function properly.

I need to be able to prevent this. How can I go about stopping the user from loading any of my pages without JS?

I have tried to use a tag in my layout. This detects the absence of JS but still renders the views. Putting the script tag around the yield prevents any view from being rendered.

Any ideas on how to do this?

Thank you

I am creating a web app that uses Rails built-in helper functions to add ajax functionality to the site. I do not want the user to be able to use the app without JS as it will not function properly.

I need to be able to prevent this. How can I go about stopping the user from loading any of my pages without JS?

I have tried to use a tag in my layout. This detects the absence of JS but still renders the views. Putting the script tag around the yield prevents any view from being rendered.

Any ideas on how to do this?

Thank you

I am creating a web app that uses Rails built-in helper functions to add ajax functionality to the site. I do not want the user to be able to use the app without JS as it will not function properly.

I need to be able to prevent this. How can I go about stopping the user from loading any of my pages without JS?

I have tried to use a tag in my layout. This detects the absence of JS but still renders the views. Putting the script tag around the yield prevents any view from being rendered.

Any ideas on how to do this?

Removed 'disabled' tag (as part of the great Stack Overflow tag/question cleanup of 2012)
Source Link
THelper
  • 15.7k
  • 6
  • 68
  • 108

I am creating a web app that uses Rails built in-in helper functions to add ajax functionality to the site. I do not want the user to be able to use the app without JS as it will not function properly.

I need to be able to prevent this. How can I go about stopping the user from loading any of my pages without JS?

I have tried to use a tag in my layout. This detects the absence of JS but still renders the views. Putting the script tag around the yield prevents any view from being rendered.

Any ideas on how to do this?

Thank you

I am creating a web app that uses Rails built in helper functions to add ajax functionality to the site. I do not want the user to be able to use the app without JS as it will not function properly.

I need to be able to prevent this. How can I go about stopping the user from loading any of my pages without JS?

I have tried to use a tag in my layout. This detects the absence of JS but still renders the views. Putting the script tag around the yield prevents any view from being rendered.

Any ideas on how to do this?

Thank you

I am creating a web app that uses Rails built-in helper functions to add ajax functionality to the site. I do not want the user to be able to use the app without JS as it will not function properly.

I need to be able to prevent this. How can I go about stopping the user from loading any of my pages without JS?

I have tried to use a tag in my layout. This detects the absence of JS but still renders the views. Putting the script tag around the yield prevents any view from being rendered.

Any ideas on how to do this?

Thank you

Source Link
stellard
  • 5.3k
  • 9
  • 43
  • 63

Ruby on Rails, Javascript detection

I am creating a web app that uses Rails built in helper functions to add ajax functionality to the site. I do not want the user to be able to use the app without JS as it will not function properly.

I need to be able to prevent this. How can I go about stopping the user from loading any of my pages without JS?

I have tried to use a tag in my layout. This detects the absence of JS but still renders the views. Putting the script tag around the yield prevents any view from being rendered.

Any ideas on how to do this?

Thank you