Search Results - CodeGuru Forums
CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com

Search:

Type: Posts; User: Kovo88

Page 1 of 2 1 2

Search: Search took 0.01 seconds.

  1. Thread: PHP and Memory

    by Kovo88
    Replies
    6
    Views
    700

    Re: PHP and Memory

    On another note

    If I have a function like so:

    function hello($a, $b, $c)
    {
    //stuff here using $a, $b and $c, arrays, exploding etc...
    }

    none of the passed in variables would need to...
  2. Thread: PHP and Memory

    by Kovo88
    Replies
    6
    Views
    700

    Re: PHP and Memory

    Thanks, most of my functions dont exceed 5-10 lines of code...which confuses me more!

    As for the memory usage, I use php for that:

    round((memory_get_usage() /1024), 2)

    and
    ...
  3. Thread: PHP and Memory

    by Kovo88
    Replies
    6
    Views
    700

    Re: PHP and Memory

    Those files just contain functions or classes, none of those functions or classes are even called at the time those files are loaded (they are called after) and there is little to no variables...
  4. Thread: PHP and Memory

    by Kovo88
    Replies
    6
    Views
    700

    PHP and Memory

    Hello
    Im building a browser based game (text and images)

    I have a debugger/benchmark script that I run at every opage load which gives me various information. One thing it logs is script...
  5. Thread: Arg!!! C++ menu

    by Kovo88
    Replies
    1
    Views
    549

    Arg!!! C++ menu

    Fixed!
  6. Replies
    18
    Views
    1,729

    Re: innerHTML in head

    blixt, your script makes sense, but still does not help my code need.
    I will give you the simplest example. I am making a button that will create a large chunk of html everytime it is clicked. The...
  7. Replies
    18
    Views
    1,729

    Re: innerHTML in head

    var headID = document.getElementsByTagName("head")[0];
    var newScript = document.createElement('script');
    newScript.type = 'text/javascript';...
  8. Replies
    18
    Views
    1,729

    Re: innerHTML in head

    of course not!!! i said in theory, i just didnt want to create dummy css
  9. Replies
    18
    Views
    1,729

    Re: innerHTML in head

    right?
  10. Replies
    18
    Views
    1,729

    Re: innerHTML in head

    so if i wanted


    if (document.createStyleSheet) {
    var style = document.createStyleSheet();
    style.addRule("div.content", "display: none; width: 500px;");
    } else {
    var head =...
  11. Replies
    18
    Views
    1,729

    Re: innerHTML in head

    sorry peej, i just saw ur first reply :P

    ok basically, i want my script to add styles on the fly after the page has loaded, so that related elements on the page would aquire the new styles.
  12. Replies
    18
    Views
    1,729

    Re: innerHTML in head

    oh ok. because i want the script to write the style tags in the <head> tag, which is what I thought my script idea did, and of course, on one page, there is only one head tag.

    thanks
  13. Replies
    18
    Views
    1,729

    Re: innerHTML in head

    awesome guys, thanks a lot, but to be clear, my script idea

    <script....>
    var headtag = document.getElementsByTagName(head);
    headtag.innerHTML += '<style>...</style>';
    </script>

    ...
  14. Replies
    18
    Views
    1,729

    Re: innerHTML in head

    ill be adding LOTS of stlyes to the head upon request of the function, the stlye names will be built from variables from the rest of the script, does ur suggestion still work?

    And another quick...
  15. Replies
    18
    Views
    1,729

    innerHTML in head

    can I do this validly?

    <script....>
    var headtag = document.getElementsByTagName(head);
    headtag.innerHTML += '<style>...</style>';
    </script>
  16. Replies
    8
    Views
    2,144

    Re: Whats the easiest way

    if i do something like this:

    <script type="text/javascript">
    var theInteger = 0;
    function addToDiv(){ var theDiv = document.getElementById('newContent');
    theDiv.innerHTML += '<div...
  17. Replies
    8
    Views
    2,144

    Re: Whats the easiest way

    hey, another question. What if the inserted html code is very long... several lines. Ive noticed that the script breaks if I enter html with sveral lines. Is there a way around this?

    thanks
  18. Replies
    8
    Views
    2,144

    Re: Whats the easiest way

    4get it, tested and it works, thanks
  19. Replies
    8
    Views
    2,144

    Re: Whats the easiest way

    but if i click on that button three times, will it reproduce the html 3 times or just replace it?
  20. Replies
    8
    Views
    2,144

    Whats the easiest way

    to insert HTML onto a page on the fly or by request using ajax? Now, I dont mean import an external html file into a div, but I mean, literally import html code (predefined somewhere) and place it on...
  21. Replies
    1
    Views
    1,074

    variable check and modify

    I need a function that will check a variables value and execute a function depending on the value. The value will always be either 0 or 1. If the variable is = to 0, then function 1 executes and...
  22. Replies
    7
    Views
    2,400

    Re: detect mouse inactivity

    nice, ill email u once this project is up and running
  23. Replies
    7
    Views
    2,400

    Re: detect mouse inactivity

    andreas, your script is exactly what I need and it works great... please give me ur name or website so that I may credit you for the script

    Peej, thank you as well, i will use ur tips to improve...
  24. Replies
    7
    Views
    2,400

    Re: detect mouse inactivity

    cool, to explain mor ein depth, I want this script to function like a screensaver for my site... so basically, it will pole mouse movement say ever 10 seconds. If there is no mouse movement for more...
  25. Replies
    7
    Views
    2,400

    detect mouse inactivity

    i know gmail does this, but how can iI use javascript to detect inactivity in a certain DIV for example then return a function or anything else?
Results 1 to 25 of 28
Page 1 of 2 1 2


Azure Activities Information Page

Windows Mobile Development Center


Click Here to Expand Forum to Full Width

This is a CodeGuru survey question.


Featured


HTML5 Development Center