dcsimg
www.webdeveloper.com

Search:

Type: Posts; User: shane.carr

Page 1 of 20 1 2 3 4

Search: Search took 0.03 seconds.

  1. Replies
    2
    Views
    3,522

    You can use JSON to get the PHP array to a...

    You can use JSON to get the PHP array to a JavaScript array.


    var x = JSON.parse('<?php echo json_encode($array); ?>');
  2. I found a way around my problem by using a table...

    I found a way around my problem by using a table to keep track of certain "sections" to be filled to bring fewer rows into PHP for analyzing ;)
  3. Thread: Help!

    by shane.carr
    Replies
    7
    Views
    1,052

    If you want code like this to be outputted: It...

    If you want code like this to be outputted:

    It is: <strong>June 27, 2009, 11:40pm</strong>
    You could do:

    <script type="text/javascript>
    <!--
    document.write("It is:...
  4. Replies
    2
    Views
    549

    I would make an "object" function so that you...

    I would make an "object" function so that you could assign each image its own instance:

    var myimages = new Array();
    myimages["myimage"] = new ImageClass("myimage");
    myimages["myimage2"] = new...
  5. Thread: Help!

    by shane.carr
    Replies
    7
    Views
    1,052

    For that, you would write

    For that, you would write

    <script type="text/javascript">
    <!--
    document.write("<img id='sky' src='sky"+mapNum+".jpg' alt='' />");
    // -->
    </script>
    To fill the "alt", you could even do
    ...
  6. Thread: Help!

    by shane.carr
    Replies
    7
    Views
    1,052

    The variables "teamStr" and "mapNum" contain the...

    The variables "teamStr" and "mapNum" contain the values of your two functions. If you wanted to display them, you would do so using "document.write(variable)". I don't really get what you're...
  7. Thread: Help!

    by shane.carr
    Replies
    7
    Views
    1,052

    You mean like this? var teamStr =...

    You mean like this?

    var teamStr = showDateTime();
    var mapNum = getMap();
    Hopefully this helps ;)
  8. Replies
    1
    Views
    857

    Yes, this is certainly possible using the...

    Yes, this is certainly possible using the ExternalInterface class in Flash 8 or higher. For example, using this javascript function, you can use "getFlash('MyFlashID').MyFunction('params');" to call...
  9. Replies
    1
    Views
    1,179

    jQuery I've done things with JavaScript animation before...

    I've done things with JavaScript animation before with similar problems in IE, and my solution was adding the simple property "zoom: 1;" to the body style. The validator doesn't like it, but it...
  10. MySQL query to find rows where previous and following IDs are empty

    Hello,

    It's been a while since I've been on WebDeveloper.com, but I've decided to come back with a seemingly complex question about a highly customized MySQL query.

    It's best to illustrate my...
  11. Replies
    2
    Views
    917

    Thanks for the response :) When I tried moving...

    Thanks for the response :)

    When I tried moving the font-size from the span to the div, it kind-of worked, but my original purpose for putting the font-size in the spans is defeated. When writing...
  12. Replies
    2
    Views
    917

    XHTML Strict Display Problem

    I seem to be having problems with the layout of various divs when using XHTML Strict. The code works fine in XHTML Transitional.

    Here are two demonstrations of the same code. The only difference...
  13. I could use a session variable for this, but one...

    I could use a session variable for this, but one of the things that the "query code" does is change a certain value in a database. So, I thought that would be a good place to check ;)
  14. Replies
    6
    Views
    5,704

    Wow, thanks for all of the responses! I...

    Wow, thanks for all of the responses!

    I understand the risks of XSS and CSRF and how to prevent them (or in the case of CSRF, "beef up" security to reduce the likelihood that the would occur). I...
  15. Replies
    6
    Views
    5,704

    Javascript Address Bar Injection

    I was surprised to discover the lack of information on this subject when I searched this topic on Google.

    I kind-of have a double question. First, is there any way to block users from injecting...
  16. Thanks for the response. That's not exactly what...

    Thanks for the response. That's not exactly what I was looking for, though it would be a pretty good method :) Wouldn't it partly depend upon whether the browser "refills" the fields on page...
  17. Changing the page the browser refreshes to

    This might sound like an odd question, but is there any way to change the url that a page refreshes to? This is my situation:

    page.php can be loaded as either page.php or with one GET variable,...
  18. Replies
    2
    Views
    897

    Thanks for the response. Nothing different...

    Thanks for the response.

    Nothing different happened when I used your code. I even tried placing a few alerts through the main part of sendAjaxRequest(), even at the very beginning, but I got none...
  19. Replies
    2
    Views
    897

    AJAX and Opera

    Hello,

    I am writing a javascript application that uses AJAX. I am nearly finished, and am currently testing it across the browser spectrum. The AJAX seems to work in all browsers except Opera. ...
  20. Replies
    6
    Views
    9,889

    That is correct. As I was working on a...

    That is correct.


    As I was working on a different project, I stumbled upon this page:

    http://www.hpl.hp.com/personal/ange/archives/archives-95/http-wg-archive/1661.html

    If I interpreted it...
  21. Replies
    4
    Views
    764

    Change ...

    Change

    listToPopulate.appendChild(createOption(itemsToPopulate["name"+mci], parseInt(mci)+1));
    to

    listToPopulate.appendChild(createOption(itemsToPopulate["name"+mci],...
  22. Replies
    4
    Views
    764

    Hello again, The reason that your code does...

    Hello again,

    The reason that your code does not work is because IE doesn't like the use of "innerHTML" to add elements. I provided a fix for this a few weeks ago, in this post. When I fixed your...
  23. Replies
    6
    Views
    9,889

    I thought about that, but it is easier on the...

    I thought about that, but it is easier on the client-side to have to send only 1 request. I have another script elsewhere that sends a request similar to this one every 5 seconds, which works...
  24. Replies
    6
    Views
    9,889

    PHP Header for Timeout?

    I am programming an AJAX web application, but I am encountering a potential problem regarding timeouts. Some browsers (notably Safari) will "wait" only 1 minute for a request to be sent back from...
  25. Thanks, that seems to solve the problem. I...

    Thanks, that seems to solve the problem. I modified the lastactivity column to:

    timestamp default 0

    And I made the SQL query in PHP:

    update UserTableName set lastactivity=now() where...
Results 1 to 25 of 500
Page 1 of 20 1 2 3 4
HTML5 Development Center



Recent Articles