www.webdeveloper.com

Search:

Type: Posts; User: Gullanian

Page 1 of 2 1 2

Search: Search took 0.01 seconds.

  1. If you are trying to retrieve querystring values...

    If you are trying to retrieve querystring values in Javascript (I can't tell exactly what you are trying to do, but I assume it is this) then use this function


    function querySt(ji) {
    ...
  2. Solved: (semi pseduo code) flag1 = true;...

    Solved: (semi pseduo code)



    flag1 = true;
    totalItems = 31;
    currItem = 0
    checkURL();

    function checkURL()
  3. Multiple ajax requests - pause before next

    Global variable busy, the function checkURL sets busy to false after it has completed.

    Checkurl performs a sometimes slow ajax function.

    Trying to make it wait until it isn't 'busy' before...
  4. Replies
    7
    Views
    1,037

    var thisPara = allParas[i]; ...

    var thisPara = allParas[i];
    thisPara.style.fontSize = "12px";
    thisPara.style.color = "blue";

    Fairly sure that's not an optimisation.

    Interesting points though, but I don't see many...
  5. Replies
    6
    Views
    695

    Absolute positioning is a lot easier, but ok, I...

    Absolute positioning is a lot easier, but ok, I guess the other way would be have a div with a background of image 1, then hide image 2 inside with relative positioning to the bottom right, and just...
  6. Replies
    2
    Views
    4,032

    Draw a triangle with CSS/Javascript

    Well, not really a question but I'm pretty pleased with this JS I wrote :) I had to create triangles for this project I'm on, but there really isn't much out there in the way of that. Especially for...
  7. Replies
    6
    Views
    695

    hoverFunction(){ var img1 =...

    hoverFunction(){
    var img1 = document.getElementById("image1sID");
    var img2 = document.getElementById("image2sID");

    img2.style.top = img1.style.top;
    img2.style.left = img1.style.left;
    }...
  8. Replies
    9
    Views
    1,641

    Once the JS is in the head 'this' doesnt refer to...

    Once the JS is in the head 'this' doesnt refer to anything. Try:

    <script type="text/javascript">
    function vaihdaotsikko(divObj) {
    if (divObj.state) {divObj.innerHTML = '<h1>Mario</h1><img...
  9. Thread: Unselectable

    by Gullanian
    Replies
    42
    Views
    30,502

    There are legitimate reasons for making...

    There are legitimate reasons for making unselectable text as other users have posted earlier, and most of those reasons are not about protecting text from copy and paste because anything you view...
  10. Replies
    4
    Views
    1,202

    Writing/testing Jscript

    Just interested, I write my Jscript in Visual Studio and just run it on a temporary webpage to test it, is this how most people do it?

    Firefoxes script debugger is pretty good but are there any...
  11. Replies
    7
    Views
    1,087

    Thanks for the replies. In regards to...

    Thanks for the replies.

    In regards to efficiency with creating the table (albeit interesting), it's a one off cost so I'm not too bothered about it, im more concerned about the actual table, in...
  12. Replies
    10
    Views
    1,984

    IE is a pos, the number of human man hours spent...

    IE is a pos, the number of human man hours spent fixing IE specific bugs must be astronomical.
  13. Replies
    10
    Views
    1,984

    It would be easy enough to look up on google, try...

    It would be easy enough to look up on google, try searching for:

    "Detecting keystrokes in javascript"

    And

    "Javascript redirect page"

    That should be fairly easy to understand an implement...
  14. Replies
    7
    Views
    1,087

    Ah thanks for the link but all I'm trying to make...

    Ah thanks for the link but all I'm trying to make is a customisable grid object where cell width/height can be any value, and alike for rows/columns.

    It's going to be used to drag shapes onto it...
  15. Replies
    7
    Views
    1,087

    Ideas for better grid design

    Runs 100% fine on Firefox, but IE it's slow as hell. :-( Anyone got better ideas for this?


    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"...
  16. Replies
    10
    Views
    1,984

    I don't think you can overide the function of the...

    I don't think you can overide the function of the physical back button for security reasons.

    You can however detect key presses in javascript which could redirect you to a specific URL.
  17. Replies
    10
    Views
    1,530

    You could pass the users IP address through the...

    You could pass the users IP address through the call via querystring
  18. Replies
    3
    Views
    1,381

    Just a suggestion, you should probably get into...

    Just a suggestion, you should probably get into the habbit of using arrays for tasks such as this!
  19. Replies
    4
    Views
    1,873

    Your external reference to your JS file in the...

    Your external reference to your JS file in the HTML page is incorrect. It needs to be seperated from any internal code.

    Look up external JS includes. IE:

    <script type="text/javascript"...
  20. Replies
    3
    Views
    1,640

    Javascript is treating the values as strings, so...

    Javascript is treating the values as strings, so they are simply appended to each other. Instead of:

    value = num1 + num2

    try

    value = (num1) + (num2)

    If that doesn't work, look up the...
  21. Replies
    4
    Views
    712

    http://www.w3schools.com/JS/js_cookies.asp ...

    http://www.w3schools.com/JS/js_cookies.asp

    That will teach you about cookies in Javascript.

    On login, set the cookies.

    On the index page, check cookies are set and their values are correct....
  22. Replies
    6
    Views
    1,669

    You did not specify anywhere in your original...

    You did not specify anywhere in your original post that you wanted this to happen when the page loads, so I assumed it was every time it changed.
  23. Replies
    6
    Views
    1,669

    A good place to start would be having an onchange...

    A good place to start would be having an onchange handler on the mainDropDown that triggers a function to set dropDown1's value.
  24. Replies
    9
    Views
    1,082

    That's what I thought, thanks! I also had an...

    That's what I thought, thanks!

    I also had an idea where you could have a container object, like gridGroup which maintains an array of the grid objects, using array index as the identifier, with...
  25. Replies
    9
    Views
    1,082

    Class design question

    I'm new to writing objects in Javascript, one problem I keep having is how to identify dynamically created elements in a class.

    IE, I have an object 'Grid' that creates a table on the page.
    ...
Results 1 to 25 of 44
Page 1 of 2 1 2
HTML5 Development Center



Recent Articles