Search:

Type: Posts; User: locbtran; Keyword(s):

Page 1 of 2 1 2

Search: Search took 0.00 seconds.

  1. Replies
    1
    Views
    608

    Using Prototype

    Here's my code:


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


    var Shape = function(){}

    Shape.prototype.Circle = function(){
  2. Replies
    1
    Views
    924

    Multi-Dimensional Array

    I have an array, called, "myArray". Inside this myArray are 4 more arrays, "m0, m1, m2, m3".
    How do I access all the elements in all the array?

    Here's my code, :

    <!DOCTYPE html>
    <html>...
  3. Replies
    5
    Views
    1,258

    My final product would be to have a phone app...

    My final product would be to have a phone app that can track someone's location.
    There are millions people out there, how do I track person X with my phone.
    Does that person or I need to have a...
  4. Replies
    5
    Views
    1,258

    HTML5 Geoloaction

    HTML5 GeoLocation

    I know there's an app for this but I would like to learn how to do this.
    When I upload my code onto the server it can find where I am in realtime with geolocatin.
    But if I...
  5. Replies
    1
    Views
    785

    Interact With a Form

    When I click on an "Add" button, it would create a new form with the "First Name", "Last Name" field and 2 textboxes, just like the original.
    So if I click on the "Add" button 5 times, it would...
  6. Replies
    0
    Views
    675

    Display Element in an Array

    I would like to put all my coordinates into an array and have a loop display each one but with a Google function.


    Here's the code, which draws the points on google map:


    var...
  7. Replies
    2
    Views
    1,188

    Interact With Facebook & Twitter

    How would I be able to do this?
    When I click on a button, it would send some text, say, "Check this out!!" to my Facebook and Twitter account.

    I checked everywhere on the web and and this forum...
  8. Replies
    5
    Views
    1,208

    This is a very big database which I'm writing for...

    This is a very big database which I'm writing for a client with over a million entries so writing to an array might not be the best option.
    They would like to be able to write part of their data...
  9. Replies
    5
    Views
    1,208

    Modify Text files

    I figure out how to write all the entries from my database onto a text file.


    header("Content-Type: text/plain");
    header("Content-Disposition: Attachment; filename=test.txt");
    header("Pragma:...
  10. Replies
    5
    Views
    2,722

    document.getElementById

    I'm trying convert document.write to document.getElementById
    but it is not working and I can't seem to figure it out.


    This is my original code:

    var myurl = new Array("google.com",...
  11. Replies
    2
    Views
    779

    Display HTML in Javascript

    I'm trying to display the elements in an array but doesn't seem to work:


    var myurl=new Array("google.com", "yahoo.com");

    for (i=0;i<=myurl.length-1;i++){
    document.writeln("<a...
  12. Replies
    1
    Views
    1,147

    Compare 2 Arrays

    I have 2 arrays and I would like to compare the 2 arrays.
    If an element in array 1 is NOT in array 2 then I would like to display that element.

    In this case, I should only display the letter "c"...
  13. Replies
    1
    Views
    910

    innerHTML Not working!!

    I trying to display a random number using innerHTML
    Here's my code:

    <html>
    <head>
    <script language="JavaScript">
    var myArray = new Array("String1", "String2", "String3", "String4", "String5",...
  14. Replies
    1
    Views
    814

    Calling A Function

    I would like to call a function within a function. Is this even possible??
    When I do this I get "undefined"

    Here's my code:

    <html>
    <head>
    <script type="text/javascript">
    function...
  15. Replies
    1
    Views
    906

    Passing to a Function

    How do I pass an id to a function??
    Or is this even possible.


    <html>
    <head>
    <title></title>
    <script type="text/javascript">

    function init(){
  16. Replies
    1
    Views
    1,101

    Passing Array to Function

    I would like to pass an array to a function but how does the program know which array I would like to choose from??
    Lets say I have 3 arrays and I would like to pass array C, to my function.
    I...
  17. Thread: Multiple id

    by locbtran
    Replies
    2
    Views
    1,695

    Multiple id

    I would like to have multiple id and all using hover link for all

    #test1, #test2, #test3, #test4 a:hover{
    color:#0F0;
    }

    this doesn't work. NOT sure why??
    thanks
  18. Replies
    2
    Views
    2,155

    innerHTML Not Displaying

    I can't seem to get my innerHTML to display my content.

    This works fine, if I was to put it all in one line.

    document.getElementById('addedText').innerHTML = '<table><tr><td>'+"My text goes...
  19. Replies
    0
    Views
    690

    Link Disappearing

    How do I prevent my Link from disappearing??
    When I click on the link, "Click Here"

    It display, "Look At Me!!" but the link, "Click Here" is GONE
    Is there a way to keep my link, "Click Here"...
  20. Replies
    1
    Views
    1,005

    Sort 2D Arrray

    I check the web and they only show you how to sort the whole array. I would like to be able to sort the subset of the 2D array. Here's my array.


    var myArray=new Array(
    new...
  21. Thread: Display Array

    by locbtran
    Replies
    8
    Views
    2,201

    How would I put my array into the window.open()...

    How would I put my array into the window.open() function


    document.writeln('<tr><td> <a href = "" onclick="window.open(\'http://google.com\'); return false;">'+openURL[i]+'</td></tr></a>');
    ...
  22. Thread: Display Array

    by locbtran
    Replies
    8
    Views
    2,201

    Display Array

    I would like to display the elements in my array but it is NOT working. Here's my code:


    <HTML>
    <HEAD>
    <TITLE>Test Input</TITLE>
    <script type="text/javascript">

    function addtext() {
    ...
  23. Replies
    2
    Views
    1,049

    Open a New Window

    when a user click on a link, it would open a new window in HTML it is something like this:

    <a href="http://google.com" target="_blank">click here</a>


    How do I do this in Javascript? So a...
  24. Replies
    1
    Views
    2,932

    Highlight Image in CSS

    I have this:

    img.decor{
    text-decoration:none;
    border:#CCCCCC thin solid;
    padding: 4px;
    }

    My HTML:
  25. Replies
    2
    Views
    1,116

    Calling CSS in Javascript

    in HTML you can call CSS


    <head>
    <link rel="stylesheet" type="text/css" href="style.css" />
    </head>

    <tr><td class="cssHere">Display</td></tr>

    can you even call CSS in javascript?
Results 1 to 25 of 32
Page 1 of 2 1 2