+ Reply to Thread
Results 1 to 3 of 3

Thread: About Javascript locking

  1. #1
    coacalli is offline x10Hosting Member coacalli is an unknown quantity at this point
    Join Date
    Sep 2008
    Posts
    10

    About Javascript locking

    Greetings everyone.

    This is my question.

    Since i'm a Macintosh user i have no acces to Internet Explorer's actual features - no i don't have a mac that runs windows... yet - so i need some help on this one.

    I have learn that IE has a lot of security issues and thus a lot of security locks, specially when javascript is involved.

    Is there a way to make some source of script to find out if the user has javascript enabled?

    what do i need it for? if the user has it on then i can make my vulgar-javascript-display-of power, other ways work with server side request, always on the benefit of the user.

    So if any one has any word of advice on this matters i'll be 4ever grateful.

    Forever: represents ethernithy, something that goes on permanently and, when used with the highest moral standards for human kind, lasts for around 3 weeks.
    Hello earth, Greetings from the Third World!

  2. #2
    xPlozion's Avatar
    xPlozion is offline x10 Elder xPlozion is an unknown quantity at this point
    Join Date
    Mar 2008
    Location
    Delaware, USA
    Posts
    872

    Re: About Javascript locking

    your question doesn't make much sense. are you trying to pass to php if the user has javascript enabled? i'm actually using a javascript script which returns an array of files in a directory from php.

    PHP Code:
    <?php
    header
    ("content-type: application/x-javascript");

    // this is where your php coding will go.

    echo <<<javascript
    your regular javscript
    stuff will go 'here".
    javascript;

    // you can have more down here

    echo <<<javascript2
    and more 'javascript"
    in here
    javascript2;

    // and again more php code

    ?>
    edit: also, the file is saved as php
    Last edited by xPlozion; 11-15-2008 at 02:17 PM.

  3. #3
    Scoochi2's Avatar
    Scoochi2 is offline x10 Sophmore Scoochi2 is an unknown quantity at this point
    Join Date
    Aug 2008
    Location
    Southport!
    Posts
    185

    Re: About Javascript locking

    There's no need to test if JS is enabled or not. Just use it. If it isn't enabled, nothing will happen.
    You can utilise this to pass information to PHP quite simply.
    Code:
    <script>document.form.hidden.value = 'JS works!';</script>
    If anyone can see it, my post was meant for anyone who reads it. Don't take it personally or think I'm being condescending... :nuts:

+ Reply to Thread

Similar Threads

  1. Making a site JavaScript dependent - pros/cons?
    By Tarzan in forum Programming Help
    Replies: 8
    Last Post: 07-11-2008, 10:08 AM
  2. drop down menus with JavaScript disabled?
    By sifaka in forum Free Hosting
    Replies: 1
    Last Post: 05-15-2008, 10:46 AM
  3. javascript and external javascript files problem
    By delon in forum Programming Help
    Replies: 6
    Last Post: 04-27-2008, 12:41 AM
  4. XML and Javascript
    By cuteboytm in forum Graphics & Webdesign
    Replies: 1
    Last Post: 09-21-2007, 10:00 AM
  5. Some nice-simple JavaScript effects !!
    By careerbridge in forum Scripts & 3rd Party Apps
    Replies: 1
    Last Post: 07-13-2006, 08:36 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
x10hosting free hosting for the masses
dedicated servers