www.webdeveloper.com

Search:

Type: Posts; User: Quentin

Page 1 of 3 1 2 3

Search: Search took 0.01 seconds.

  1. Replies
    2
    Views
    1,891

    if(!xmlHttp && typeof XMLHttpxmlHttpuest !=...

    if(!xmlHttp && typeof XMLHttpxmlHttpuest != "undefined")
    {
    xmlHttp = new XMLHttpRequest();
    }


    if(!xmlHttp && typeof XMLHttpRequest != "undefined")
    {
    xmlHttp =...
  2. Replies
    7
    Views
    943

    patrx-7 good call that would work better than my...

    patrx-7 good call that would work better than my suggestion. Because he will probably want to keep those special characters. I always forget about the encodeURIComponent function.
  3. Thread: this.JSON

    by Quentin
    Replies
    2
    Views
    639

    Depending on the scope in which "this" is used...

    Depending on the scope in which "this" is used determines what "this" is. In case of #2 I would say that "this" is referencing "window". You can test this by saying window.glbVar instead of...
  4. Replies
    7
    Views
    943

    I haven't done to much with Ajax but if you know...

    I haven't done to much with Ajax but if you know what characters are illegal then you could write your own function to remove them.

    Something like this maybe:

    function removeChars(value) {
    ...
  5. Replies
    1
    Views
    8,625

    Here is an example of what I think you are trying...

    Here is an example of what I think you are trying to achieve let me know if I'm on the right track:


    <script type="text/javascript">
    function ToggleTag() {
    var tag =...
  6. Replies
    2
    Views
    1,023

    Well you should never build anything on your page...

    Well you should never build anything on your page that depends on JavaScript due to the fact that there are some users that either choose not to browse the web with it enabled or there browser does...
  7. Replies
    4
    Views
    952

    Try this code and let me know if I'm on the right...

    Try this code and let me know if I'm on the right track or not.


    <html>

    <head>
    <title>Example</title>
    <script type="text/javascript">
    var vehicles = {};
    vehicles.Honda = {...
  8. Replies
    2
    Views
    768

    Try changing the login button type to submit and...

    Try changing the login button type to submit and adding your onclick event to the onsubmit event for the form and then in your check function if your form fails validation then return false so that...
  9. Replies
    7
    Views
    751

    Try this code out: function addSection() { ...

    Try this code out:


    function addSection() {
    var div = document.createElement("div");
    document.getElementById("outer").appendChild(div);
    }
  10. Thread: Problem

    by Quentin
    Replies
    3
    Views
    677

    Your Welcome. I'm glad I could help you out.

    Your Welcome. I'm glad I could help you out.
  11. Replies
    1
    Views
    591

    Here is an example that will display one page if...

    Here is an example that will display one page if the current time is less than 1200 hrs and then another if the current time is greater than or equal to 1200 hrs:


    <script type="text/javascript">...
  12. Thread: Problem

    by Quentin
    Replies
    3
    Views
    677

    If I'm understanding you correctly what you want...

    If I'm understanding you correctly what you want to do is have a number and a string passed into a function and then repeat that string by the number? If so try this and see if it is what your after:...
  13. Replies
    4
    Views
    717

    Just flip-flop your code in this condition: ...

    Just flip-flop your code in this condition:


    if ((evt.keyCode == 13) && (node.type=="text")) { alert ("ppp"); return false;}
  14. Try this: function displayElement(el) ...

    Try this:


    function displayElement(el)
    {
    if (document.getElementById)
    {
    document.getElementById(el).style.visibility = 'visible';

    ...
  15. Replies
    4
    Views
    971

    I'm glad I could assist you here are some links...

    I'm glad I could assist you here are some links to some references on JavaScript:

    http://www.webreference.com/programming/javascript/

    This one is a good Q&A style reference...
  16. Replies
    4
    Views
    971

    I'm assuming that what you want to accomplish is...

    I'm assuming that what you want to accomplish is when a user selects to edit text within your span you want to dynamically create a textbox within the span with its value set to the current spans...
  17. Replies
    1
    Views
    689

    Try this code out and see if it is what you are...

    Try this code out and see if it is what you are looking for:

    save this code in a document called pass.html

    <html>

    <head>
    <title>Pass some values</title>
    <script...
  18. Replies
    3
    Views
    823

    Use the confirm() method instead of alert(). ...

    Use the confirm() method instead of alert().


    if (confirm("Are you sure you wish to do this?")) {
    // If user clicks OK do something
    } else {
    // If the user clicks Cancel do something
    }
  19. Replies
    31
    Views
    2,801

    I'm sure you will figure it out like I said...

    I'm sure you will figure it out like I said before if you need help feel free to PM me here and I will do my best to help you out.
  20. Replies
    31
    Views
    2,801

    Sure both PHP and ASP/ASP.Net could handle this...

    Sure both PHP and ASP/ASP.Net could handle this easy.
  21. Replies
    31
    Views
    2,801

    Well my opinion will biased but often its better...

    Well my opinion will biased but often its better to do it both ways because some people navigate the web with JavaScript disabled so you should never really depend on JavaScript unless you don't...
  22. Replies
    31
    Views
    2,801

    Yes you can use an array of urls then you would...

    Yes you can use an array of urls then you would just need to put an <img> tag in for a place holder and assign it an Id and then change its src property to change the image. However each image will...
  23. Replies
    31
    Views
    2,801

    1.) Set the currImage var to 11 instead of 0. ...

    1.) Set the currImage var to 11 instead of 0.

    2.) Use


    <img src="<!- Insert Your Prev Image Here ->" alt="Prev" onclick="PrevImage();" />
    <img src="<!- Insert Your Next Image Here ->"...
  24. Replies
    31
    Views
    2,801

    Then try this out I didn't test it so if it...

    Then try this out I didn't test it so if it errors out let me know.


    <html>

    <head>
    <title>Image Arrays</title>
    <script type="text/javascript">
    var currImage = 0;
  25. Replies
    31
    Views
    2,801

    Simple enough just a few quick questions do you...

    Simple enough just a few quick questions do you want this done with JavaScript or with server sided postbacks?
Results 1 to 25 of 60
Page 1 of 3 1 2 3
HTML5 Development Center



Recent Articles