Interactivity, Java Script, Cookies?

I´ve created a page with lots of interactivity which does not work when Java Script is turned off. I could probably do some new pages with less or no interactivity, but how can I get the browser to recognize, which page to choose depending on JavaScript being turned on or off?
Thank you for your help, Alex

Hi
If you have php on your server you can use the following code to detect if javascript is enabled -
<?php
if (isset($_POST['jstest'])) {
   $nojs = FALSE;
   } else {
   // create a hidden form and submit it with javascript
   echo '<form name="jsform" id="jsform" method="post" style="display:none">';
   echo '<input name="jstest" type="text" value="true" />';
    echo '<script language="javascript">';
   echo 'document.jsform.submit();';
   echo '</script>';
    echo '</form>';
    // the variable below would be set only if the form wasn't submitted, hence JS is disabled
   $nojs = TRUE;
if ($nojs){
   //JS is OFF, do the PHP stuff
?>
In the section ($nojs), you would insert your page redirect code here to the none javascript page.
I cannot take credit for this code, to read the article, see - http://www.inspirationbit.com/php-js-detection-of-javascript-browser-settings/
M.R.Biesheuvel wrote -
Cookies are a part of HTPP protocol and they where originally meant for
server side, so even if javascript is turned of you can use cookies from
server side, unless cookies are turned of....
The 'cookies' referred to here, are known as 'session cookies', and are not the same as javascript cookies.
PZ
www.pziecina.com

Similar Messages

  • How to get the context data using java script in interactive forms

    Hi All,
    How to get the context data using java script in interactive forms by adobe,  am using web dynpro java
    thanks.

    Hi venkat,
    Please Refer this link.
      Populating one Drop-Down list from the selection of another Drop-down list
    Thanks,
    Raju.

  • 5800 Java Script and Cookie error

    I currently have a 5800.  Recently when browsing the internet I've been getting a message saying that Java Script is not enabled and sometimes I get a message saying cookies are disabled.  I've checked the settings on the phone but both appear to be ok in that they show as enabled.  Has anyone else had this problem?  Personally I'll be glad when my contract is up as I've had nothing but trouble with this phone!!!
    Thanks for you help
    Fionacam1

    which means??
    so who's problem is it that it doesn't work?? Blackberry or The Citizen Developer?? this only started all of a sudden..up till just recently, there was no problem with this app..and deleting it and reinstalling it doesn't help..

  • Yelp is not working properly, and I have been advised to enable cookies and Java Script. I have been trying for 1 hour using suggestions that don't work. Help.

    Someone suggested to go to firefox > options> content > and then there is supposed to be a button that enables Java Script. It is not there. Where did it go, please? The cookies problem I have no idea how to address. Have not gotten past the Java Script problem yet. I have updated Java many, many times in the past couple of months at the suggestion of Avast.

    You can check on the <b>about:config</b> page if the javascript.enabled pref is set to true.
    *http://kb.mozillazine.org/about:config
    You can try basic steps like these in case of issues with web pages:
    Reload web page(s) and bypass the cache to refresh possibly outdated or corrupted files.
    *Hold down the Shift key and left-click the Reload button
    *Press "Ctrl + F5" or press "Ctrl + Shift + R" (Windows,Linux)
    *Press "Command + Shift + R" (Mac)
    Clear the cache and the cookies from websites that cause problems.
    "Clear the Cache":
    *Firefox/Tools > Options > Advanced > Network > Cached Web Content: "Clear Now"
    "Remove Cookies" from sites causing problems:
    *Firefox/Tools > Options > Privacy > Cookies: "Show Cookies"
    Start Firefox in <u>[[Safe Mode|Safe Mode]]</u> to check if one of the extensions (Firefox/Firefox/Tools > Add-ons > Extensions) or if hardware acceleration is causing the problem (switch to the DEFAULT theme: Firefox/Firefox/Tools > Add-ons > Appearance).
    *Do NOT click the Reset button on the Safe Mode start window.
    *https://support.mozilla.org/kb/Safe+Mode
    *https://support.mozilla.org/kb/Troubleshooting+extensions+and+themes

  • My cookies & java script have become disabled. when I click on tools to try and re enable the option selection that is supposed to be at the bottom of the window is missing. what do I do ? I have a mac

    so since the option selection is not there I don't know how to enable the cookies and java script. so i cannot access aol or facebook. I went to your site and downloaded your newest version which i think is 4. in hopes that the option selection would appear in the tools. it did not. please help me with this as to how to fix it as I like firefox.

    Hi,
    Check in Add-ons to see if you have any toolbars installed:
    [[Uninstalling add-ons|Uninstalling add-ons]]
    Because the Ask Toolbar (a custom version I think) is sometimes installed (or offered to be installed) with other programs, such as Foxit Reader.
    Jack

  • I need to apply for a job but I'm told I need to enable cookies and java script, how do I do that?  I can't find it in system preferences

    I need to apply for a job but I'm told I need to enable cookies and java script, how do I do that?  I can't find it in system preferences
    I just updated to the new operating system which i'm starting to think was a bad idea, because it reset all my settings and I don't know how to fix them.

    so when I go to safari>preferences>security>uncheck box labled enable java script  links on webpages don't work and pictures and links son't want to appear on websites.  this made it so webpages don't want to work past loading the content in text format.  I have to check enable java script to go the webpages to work right so images and links work again but when I try to apply for this job the error message pops up saying I need to enable cookies and java script.
    SO I GUESS MY QUESTION IS IF JAVA SCRIPT IS ALREADY ENABLED HOW TO I ENABLE COOKIES?

  • My safari screen is greyed out, I checked and found a response to this question.  I went to settings and cleared history, cookies, and cache, java script is on and I restarted, screen is still grey, cant touch it to do a thing.  Help!

    my safari screen is greyed out, I checked and found a response to this question.  I went to settings and cleared history, cookies, and cache, java script is on and I restarted, screen is still grey, cant touch it to do a thing.  Help!

    That is usually the fix but try this now.
    Reset the iPad by holding down on the sleep and home buttons at the same time for about 10-15 seconds until the Apple logo appears - ignore the red slider - let go of the buttons. See if that helps.
    You can also try this - quit Safari. From the home screen - Double tap the home button and your recent apps appear the bottom. Tap and hold down on the Safari icon until it wiggles. Tap the minus sign in the upper left corner to close the app. Tap the home button twice. Restart the iPad.
    Message was edited by: Demo

  • IE will load my excite home page but Firefox won't after following all of the suggestions , enabled cookies, java script and cleared cache.

    Was working fine for years until virus scan today. It will pull up the site, but not allow me to access my personal home page. Running XP on one laptop and Vista on the other. Same problem with both machines after running scan. Only problem appears to be accessing my home page on excite.com. Have enabled both cookies and java script as well as clearing cache.
    Can access excite home page on both IE and Chrome.

    Thanks for the suggestion.Working my way through, but no success yet. excite.com comes up but as soon as I click on "sign in", I get the error screen even though I have enabled cookies and java script.
    '''''The browser you're using is not allowing you to sign in to Excite.
    Right now, your browser's settings are configured to disable cookies and/or javascript. In order to access your account, you must change your browser's settings to accept both cookies AND javascript. '''''

  • How to resolve Java Script Error Message when visiting Twitter Website?

    When using firefox the following error message appears on the Twitter website regarding Java Script that is already enabled in firefox. It only happens in firefox when I visit the Twitter Website, it doesn't happen on any other website and it does not happen in Internet Explorer when I visit Twitter's website.
    '''Error Message:
    Twitter.com makes heavy use of JavaScript.
    If you cannot enable it in your browser's preferences, you may have a better experience on our mobile site.'''

    When you have a problem with one particular site, a good "first thing to try" is clearing your Firefox cache and deleting your saved cookies for the site.
    1. Clear Firefox's Cache
    orange Firefox button ''or'' Tools menu > Options > Advanced
    On the Network mini-tab > Cached Web Content : "Clear Now"
    2. If needed, delete your twitter.com cookies here
    While viewing a page on the site, right-click and choose View Page Info > Security > "View Cookies"
    Then try reloading the page. Does that help? If you restart Firefox does it help? If not, please see the next section.
    If you have JavaScript enabled in Firefox's options ([https://support.mozilla.org/en-US/kb/javascript-settings-for-interactive-web-pages#w_enabling-and-disabling-javascript support article]) then there are a few different ways that JavaScript could be blocked for twitter.com.
    One common one is the add-on NoScript, which manages scripts on a site-by-site basis. However, you probably would be well aware if you were using NoScript.
    Another is external security software that filters pages on a site-by-site basis. Can you check whether your security software includes this feature?
    A third possibility is another add-on which for some reason is targeting Twitter. Check any ad blockers, Flash blockers or other "blockers" as well as any relating to privacy.
    Finally, there could be other settings, software, or even malware interfering with your Twitter connection.
    One standard diagnostic for interference by add-ons is to try Firefox's Safe Mode.
    First, I recommend backing up your Firefox settings in case something goes wrong. See [[Backing up your information]]. (You can copy your entire Firefox profile folder somewhere outside of the Mozilla folder.)
    Next, restart Firefox in Firefox's Safe Mode ([[Safe Mode]]) using
    Help > Restart with Add-ons Disabled
    In the Safe Mode dialog, do not check any boxes, just click "Continue in Safe Mode."
    If the site works correctly, this points to one of your add-ons or custom settings as the problem.
    Any change?

  • Can't add java script to Adobe 7.0 PDF document

    Hi, ran into a small problem using Adobe Pro 7.0. Created a interactive form in Adobe Designer 7.0. Want to add Java script to run when a user selects certain fields on the forms. However, when I try and use the advanced editing tools to gain access to the Java script properties for that object, the toolbar is greyed out. No document security has been configured. Can this be done? Should it be done in Adobe Prof or in Designer? Can't figure out how to add the java script to the forms.
    Any help would be appreciated.
    Thanks Michael

    Once a form is started in LiveCycle Designer, it has to be edited in LiveCycle Designer. There are very few Acrboat features that can be used.

  • Java script not working

    Hi all
    I have a web dynpro abap application with an adobe interactive form. In the form I want to make certain fields read only. To do this I am using java script. It works fine from the livecycle designer in preview mode but when I run the wd4a nothing happens - like the java script is not being executed. I tried changing the Adobe form properties to Acrobat 8 (Dynamic) XML form but it still does not work. Any ideas?
    I'm using ALD 8.0, sapgui 710, Netweaver 7 SP 22 and IE8
    Regards

    Have you checked that you can see the access property, for example, with a message box?
    xfa.host.messageBox(xfa.form.D8.Page2.<my field>.access);
    Also try accesing the field directly
    <my field>.access = "readonly";
    Do you have any script working in your form?
    Regards, Aldo.
    Edited by: Aldo Velazquez on Dec 9, 2010 4:36 PM

  • How to Enable Custom Java Scripts for forms in Planning 11.1.2.2

    I am working on Planning 11.1.2.2 right now.
    Planning admin guide says, there is no explicit requirement to enable java Script for planning forms.
    I set simple alert to see text "Hello World" in function validateForm() function in custom/validateData.js file - to see and test that alert when I save data for my selected application/form.
    Closed javascript file and workspace, and planning application web page. Since I have not to do anything new to enable this java script alert, I opened that form and saved data to see if I can see my alert.. I got no alert, except "data are saved".
    Has anything changed since last version? Am I missing something? Or, do I need to recycle services to get this alert?
    thanks in advance.

    Thanks guys, for your quick replies..!
    Not sure what I missed, but I still have a hard time finding my "Hello World" alert.
    What I did, is here.
    a. Cleared all cookies and temp files from IE.
    b. Updated validateData.js file from ear / war files using 7-zip program at given path from your link.
    c. Stopped EPM services
    d. Dropped tmp folder.
    e. Started EPM services and let system deploy ear file (with my java script code).
    All services are up. I can see EAR file deployed and java script file ValidateData.js has all my changes in new tmp folder now.
    I am able to open my application and form.
    But, my "Hello World" alert is still not appearing. Form is saved and saw message as usual.
    One exception I noticed in my path. I have ....user_projects\domains\EPMSystem\servers\EPMServer0\.... in place of ....user_projects\domains\EPMSystem\servers\Planning_0\.... in my path. Planning_0 is replaced by EPMServer0 in this version. Rest is all same.
    Any clue? thanks in advance,

  • Reg : show/hide subforms under buttons in Static page(Java Script)

    Hi All ,
    I am creating Adobe Interactive form(static page). In this page have 3 buttons.For each button one subform is there. I want to show/hide subforms under buttons.
    I am using javascript. Please give me the code for this.
    Thanks
    Risha

    Hi Risha,
    can you explain your question like do u have some condtions to show or hide the subform? OR if u click
    button you want to show the subform and by default subform should be hidden something like this?
    Normally for showing the subfrom on click of the button: (By default make your subform invisible from its properties).
    Select the button and in the click event select java script option and write the following code:
    Subform.presence = "visible";
    (*you have to give full path of the subform instead of only subform name).
    With Regards,
    Ravi

  • How to write Java script for refering the 1st page text field from 2nd page?

    Hello I am developing an VISITOR info interactive form with webdynpro ABAP, its with 2 pages. Their heirarchy is,
    VISITOR_form
        |
        |
        |------Page_1
        |            |
        |            |
        |            |------Text_Field_A_1
        |            |
        |            |------Text_Field_A_2
        |
        |------Page_2
                     |
                     |
                     |------Text_Field_B_1
                     |
                     |------Text_Field_B_2
    Now, i have selected the 'Text_Field_B_1' of page_2 and writing the Java script, my requirement is; If Page_1's 'Text_Field_A_2' has a value of "Value_ABCD", THEN the 'Text_Field_B_1' of page_2 should be 'readOnly'. Pls let me know Wht is the Java script for this requirement?

    if (xfa.event.newText=="ABCD")
    VISITOR_form.Page_2.Text_FieldB_1.access ="readOnly";
    place script on change event of Text_FieldA_2

  • Condition verification in java script on Adobe form.

    Hello Experts,
    I am using a interactive forma text element on my view. (java web dynpro)
    It's a simple application. I am trying to figure out how it works with java script.
    I have a text field. which displays employ is sales or production dept
    the values in the data view and its the output element of a BAPI which returns XF,TF,HF and XK,JK,HK
    (record.dept)
    if its XF, TF, HF on the text field in the adobe form should print sales else production.
    I have never used java script on adobe form.
    I figured the strip above the form in adobe designer is used for java script.
    can any one, let me know how I can manipulate.  the record value
    Here is what I am trying record.dept = XF |TF|JF . but i dont know how to run the java script or its syntax.
    Your help is highly appreciated.

    James,
    xfa.host.messageBox should show you an alert dialog box to check data you are getting.
    And yes you are right. You can set the value of textfield using code you mentioned.
    if(record.dept.equalsIgnoreCase("XF")
                 || record.dept.equalsIgnoreCase("TF")
                          record.dept.equalsIgnoreCase("JF"))
       xfa.host.messageBox("The value is Sales");
       <Text-field id>.value = "Sales";
    else
       xfa.host.messageBox("The value is Production");
      <Text-field id>.value = "Production";
    You can even set the texfields to be readOnly, hide some of them etc. But for that I would suggest you going thru the LiveDesigner help. It would solve most of your doubts :-).
    Chintan
    Edited by: Chintan Virani on Feb 19, 2008 3:37 PM

Maybe you are looking for

  • TS2551 Library iPhoto Library "is open in (null)"

    Running 10.7.4 on my MacBook Pro and using a LaCie as backup for my iPhoto Library (version 11, at least last time opened....) called  "iPhoto Library Orange". When trying to access my backup I get the message "The photo library needs to be upgraded

  • Bank line items

    Hi, How are the Bank GL's open line items are cleared?Are they cleared only through Bank Reconciliation(BRS) or  the line items can be cleared by F-03 process? Thanks in advance sapwnr

  • Difference between do-while, do-when, do-until and do-select in app engine.

    Hi can anyone please tell me the difference between do-while, do-when, do-until and do-select in app engine. I read the peoplebooks, but i was not able to keep up with that. I know like do-while is like WHILE loop in any programming language. here my

  • I can not open non application

    I transfered some ringtone to my iphone 4s (sprint) by Iphonne PC Suite ,asfter that i can not open non of my apps.what i have to do?

  • GPIB Enet/100 with PCI-GPIB

    Is the a timeframe with the release of a GPIB Driver capable of supporting both the Enet device and an installed GPIB-PCI card within the same computer?