www.webdeveloper.com

Search:

Type: Posts; User: Logic Ali

Page 1 of 20 1 2 3 4

Search: Search took 0.05 seconds; generated 44 minute(s) ago.

  1. View Post

    <span id='needChrome' style='font-weight:bold; color:red'>This site is intended only for the Google Chrome browser. <a href='notforchrome.com'>Click here.</a></span>

    <script...
  2. Thread: Cursor

    by Logic Ali
    Replies
    1
    Views
    450

    Not a JS issue. Search: css cursor hotspot

    Not a JS issue. Search: css cursor hotspot
  3. There's no need for that code to be written as a...

    There's no need for that code to be written as a function, much less for it to be run from a timeout.
    That code will error if your page is framed by a different domain.


    <script...
  4. What caused that popup to open in the first...

    What caused that popup to open in the first place?

    Is someone paying you to have it there?

    If it can be closed by a user click, then there must be a function already available to do it.
  5. Replies
    5
    Views
    557

    On this site the Edit button times-out after a...

    On this site the Edit button times-out after a moronically short time.


    For disabled attribute support in IE9 you may need to use <!doctype html>
  6. Replies
    4
    Views
    480

    Use the error console: Ctrl+Shift+J in Firefox. ...

    Use the error console: Ctrl+Shift+J in Firefox.

    There are scripts available to do this, which require no configuration.
  7. Replies
    5
    Views
    557

    Are you sure you have IE configured to run...

    Are you sure you have IE configured to run scripts?
    Does a simple alert work?
  8. Replies
    4
    Views
    480

    There is at least one syntax error. You can't...

    There is at least one syntax error. You can't expect to develop a script without using the error console.
  9. Replies
    3
    Views
    809

    Chrome won't create cookies under the file://...

    Chrome won't create cookies under the file:// protocol.

    Your code seems to work under Firefox.

    Can be coded more clearly as:

    scadenza.setDate( scadenza.getDate() + durataCookie );
  10. Replies
    5
    Views
    607

    That routine does not output anything, it just...

    That routine does not output anything, it just increments variables as shown.
  11. Replies
    2
    Views
    802

    It is clearer when written ( Math.random() * 6 +...

    It is clearer when written
    ( Math.random() * 6 + 1 ) | 0 ;
    A bitwise OR operation converts the result to an integer, removing the decimal fraction.
  12. Using the g flag sets the lastIndex property...

    Using the g flag sets the lastIndex property



    <script>
    var myarray = ["xxx","xxx","xxx","xxx"];
    var re = new RegExp("xxx");
    var re2 = new RegExp("xxx","g");
    ...
  13. Replies
    5
    Views
    654

    You should have shown your code in the first...

    You should have shown your code in the first place. A return statement terminates a function.
    The use of the term pattern suggested that a regex solution might be required:


    function index(...
  14. Replies
    5
    Views
    654

    Presumably it's asking you to write a function...

    Presumably it's asking you to write a function called index that meets the stated specification.
  15. Replies
    7
    Views
    1,527

    url?

    url?
  16. Replies
    7
    Views
    1,527

    Place this code wherever the image should appear:...

    Place this code wherever the image should appear:


    <!--[if IE ]>
    <img src = "myimage.jpg">
    <![endif]-->
  17. Replies
    2
    Views
    626

    It outputs [2, 4, 6], which is what I would...

    It outputs [2, 4, 6], which is what I would expect.
    What were you expecting and why are you passing it a callback that it's not coded to handle?
  18. You cannot use document.write after the page has...

    You cannot use document.write after the page has loaded.
  19. You may wish to write some code that actually...

    You may wish to write some code that actually calls that function, at which point the error console will show you an error.
  20. It starts by trying to get a reference to an...

    It starts by trying to get a reference to an element with ID "myElemId1". If it succeeds it acts on that element.
    Then it tries to get "myElemId2" and so on until it fails.
  21. Your code needs to be re-done completely for...

    Your code needs to be re-done completely for several reasons.

    The name attribute is deprecated except for use on the elements of forms. When a common name is applied to a group of form elements,...
  22. It looks as though your parameters are used to...

    It looks as though your parameters are used to form filenames. Either way they must be quoted or they will be treated as variable names:


    mtaSmall("A", "B", "C")
  23. Replies
    3
    Views
    1,308

    var listItems = document.getElementById( ...

    var listItems = document.getElementById(
    "ctl00_m_g_022cac31_8157_4fad_acd6_d841986564fc" ).getElementsByTagName( "LI" ) );
  24. Replies
    2
    Views
    1,176

    If you write a function that takes a parameter,...

    If you write a function that takes a parameter, it's advisable to pass it one.
  25. Minimal validation consists of testing for...

    Minimal validation consists of testing for non-whitespace characters. Testing for a non-empty string is inadequate:


    function validate()
    {
    var...
Results 1 to 25 of 500
Page 1 of 20 1 2 3 4
HTML5 Development Center



Recent Articles