www.webdeveloper.com

Search:

Type: Posts; User: locbtran

Page 1 of 4 1 2 3 4

Search: Search took 0.01 seconds.

  1. Replies
    1
    Views
    734

    jQuery I was able to read the data using XML instead of...

    I was able to read the data using XML instead of JSON.
    Problem solved. :)
  2. Replies
    1
    Views
    734

    jQuery jQuery UI Autocomplete

    I'm trying to read data from a file using jQuery UI autocomplete.
    The external file is data.json.
    If I try to read data from an array, it works fine but if I try to read data from an external...
  3. Thread: Hover effect

    by locbtran
    Replies
    4
    Views
    1,768

    Hover effect

    I would like to be able to do this.
    When I move my mouse over a <div> it will change the background color from orange to yellow.
    Sorry if this sounds too simple but I'm Not sure where I'm going...
  4. Thread: Progress Bar

    by locbtran
    Replies
    2
    Views
    566

    Progress Bar

    I found a nice progress bar on the web but I don't how to modify it.
    When the user clicks on 25%, 50%, 75% or 100% it works perfectly but I'm trying to write a function getValue() where it gets...
  5. Replies
    10
    Views
    866

    I understand how to display an object of an array...

    I understand how to display an object of an array now but how would I display a single string using the functions nodeAdd() and saladType() that you taught me deathshadow.

    Example: When a user...
  6. Replies
    10
    Views
    866

    Thank you for the explanation Sup3rkirby. I had...

    Thank you for the explanation Sup3rkirby. I had to read about 3 or 4 times before I understood it.
    Thank you for your help deathshadow.
  7. Replies
    10
    Views
    866

    huh?!? I have no idea what you did deathshadow. ...

    huh?!?
    I have no idea what you did deathshadow. I am totally confused on function nodeAdd() and saladType()
    If someone could decrypt those two functions, that would be great.
  8. Replies
    10
    Views
    866

    Concat 2 strings?!?

    I would like to be able to concat 2 strings together and then display the array.
    Here's my array:


    var fuitSalad = ["apple", "banana", "pear"];

    I would like to do something like this.

    var...
  9. Replies
    1
    Views
    345

    switch statment using string

    I'm trying to do something like this

    if ((grade == "BPlus") && (mark == "70")) {alert("Pretty good<br />");}

    but since I have alot of if statements, I figure I should put it in a switch...
  10. Replies
    5
    Views
    996

    what you have is excellent but I was just...

    what you have is excellent but I was just wondering...
    calling a function for just one line, does that not slow the program down?
  11. Replies
    5
    Views
    996

    document.getElementById

    I have this and it works but it looks very messy, especially if I have over a dozen line of document.getElementById

    Here's my code:


    document.getElementById("a").innerHTML = "Letter a";...
  12. Replies
    2
    Views
    1,579

    jQuery Not sure if I'm doing this right. I implemented...

    Not sure if I'm doing this right.
    I implemented the codes as you have suggested but it still doesn't work.

    Here are my new code:


    <!DOCTYPE html>
    <html>
    <head>
    <meta name="viewport"...
  13. Replies
    2
    Views
    1,579

    jQuery Open Dialog Box When Page Loads Up??

    I would like to open a dialog box when the page loads up but can't figure out how to go about doing this.
    Right now you have to click on a button to open the dialog box.
    I'm going crazy trying to...
  14. Replies
    3
    Views
    629

    Submit Button NOT working??

    My page are divided into 3 <div>.
    When I put the submit button in the content <div> it works fine but if I put the same submit button in the footer <div> it does not work.
    Not sure where I'm...
  15. jQuery Can I use jQuery to Develop a Mobile Application?

    Originally, I was trying to develop an application for the mobile devices (ie. smart phones, tablets, eReaders, etc) using javascript and CSS. I came to a road block and someone suggested I should...
  16. Replies
    2
    Views
    764

    Open Dialog Box When Page Loads Up??

    When I click on a link, it opens up a dialog box.
    How do I get it to open when the page loads up??

    Here's my code:


    <!DOCTYPE html>
    <head><title></title>

    <style>
  17. Replies
    4
    Views
    1,276

    OK I get it now. thank you Kevin2

    OK I get it now.
    thank you Kevin2
  18. Replies
    4
    Views
    1,276

    Is there not another way to display the data...

    Is there not another way to display the data which I retrieved from the textbox more then once??

    I'm creating TABS, so first Tab is visible but the 2nd, 3rd, etc are all hidden. Even thought the...
  19. Replies
    4
    Views
    1,276

    innerHTML NOT working like it should!?!?

    When a user type something into a textbox and then click submit, that value will then be display.
    I am able to display it the first time but if I wanted to display the same data again, it does NOT...
  20. Replies
    4
    Views
    789

    Using onLoad() function??

    I have this


    <style>
    #mydiv{font-weight: bold;}
    </style>

    <div id="mydiv">This is in bold</div>
  21. Replies
    1
    Views
    1,364

    Javascript Prototype (Very Confusing)

    Here's my code:

    var c=document.getElementById("myCanvas");
    var ctx=c.getContext("2d");


    var Shape = function(){}

    Shape.prototype.Circle = function(){
    // Some code here
  22. Replies
    1
    Views
    1,524

    How do I Detect for Mobile Browser

    I downloaded the source code on how to detect mobile browser for detectmobilebrowser.com but they do not have any documentation and code is very cryptic.
    I just want it to do this.
    If it is a...
  23. Thread: HTML5 Game

    by locbtran
    Replies
    2
    Views
    1,614

    it is canvas I load the image first then I draw...

    it is canvas
    I load the image first then I draw do the "fillRect" after but the image always in the fore-ground. Not sure how I can reverse this??

    I'm trying to do this:
    when a player gets hit...
  24. Thread: HTML5 Game

    by locbtran
    Replies
    2
    Views
    1,614

    HTML5 Game

    I'm building a game and whenever a player gets hit, it turns red so the user knows that the player was shot. The player would not die just yet since it has say 5 lives.
    So whenever the player gets...
  25. Replies
    2
    Views
    1,481

    Display Element in an Array

    I have an array of string.
    I would like to display it onto the page but the message is too long so I would like to break it up and put it on 2 lines.


    var txtMsg = [
    "First text",
    "Second...
Results 1 to 25 of 77
Page 1 of 4 1 2 3 4
HTML5 Development Center



Recent Articles