User Profile

Collapse

Profile Sidebar

Collapse
elvehjem
elvehjem
Last Activity: Sep 2 '10, 05:02 PM
Joined: Apr 20 '10
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • elvehjem
    replied to Cookies don't survive browser close...
    In Fact...

    http://www.elvehjem.com/MissMap/MissMap.html is the site,

    and you can try these 2 U/N / P/W combinations, if you would be so kind!

    "Red Rider" : "Trigger",
    "Easy Rider" : "Harley"

    Thanks!

    Ken
    See more | Go to post

    Leave a comment:


  • elvehjem
    replied to Cookies don't survive browser close...
    I'm accessing on my development machine by double clicking the html... so I suppose it is by *file:// -- but it does the same when I put the files on my website, and also when I have a friend try it from his computer.

    Ken
    See more | Go to post

    Leave a comment:


  • elvehjem
    started a topic Cookies don't survive browser close...

    Cookies don't survive browser close...

    Hi,

    I'm trying to use jquery to do some things. It works well, but I can't seem to get it to set a cookie that doesn't expire when I end the browser session.

    The books and examples say this should work:

    Code:
            function CheckPW(){
    			
    
    			var PWDiv = document.getElementById("PWDiv");
    			var Uname = document.getElementById("UserName");
    			var
    ...
    See more | Go to post

  • elvehjem
    replied to accessing JSON data
    Well, that did the trick. I had wondered if I needed the third loop, because I saw that I had 3 layers of info, but I had also thought I could get it by reference w/o the loop.

    Thanks so much for your help!

    Ken
    See more | Go to post

    Leave a comment:


  • elvehjem
    replied to accessing JSON data
    OK, thanks for that.

    I will be testing that shortly.

    Ken
    See more | Go to post

    Leave a comment:


  • elvehjem
    replied to accessing JSON data
    Well, yes, I did expect the variable w to resolve to a 0 or 1.

    I guess what I'm getting at are 2 things:

    1. Is my data in a valid format? and
    2, Given that it is, how do I access one element in it, say where SId =16 in Boon Lake?

    I suspect that, as usual, I have missed some vital piece of info, be it a trick, or procedure, that I need to know to understand how to make my output line include that data....
    See more | Go to post

    Leave a comment:


  • elvehjem
    replied to accessing JSON data
    thanks for the reply, and "Good Question!"

    This line:
    Code:
    outputter.innerHTML += "   w = " + w + "  ="  + Township.z
    prints the quoted text, as expected, and the value of "w" (either 0 or 1) which I didn't expect, exactly, and the name of the township, (Boon Lake or Sacred Heart) as they appear in the data.

    This is kind of a test bench script, and I've...
    See more | Go to post

    Leave a comment:


  • elvehjem
    started a topic accessing JSON data

    accessing JSON data

    Hi,

    I'm trying to learn JavaScript. I'm missing something that has to do w/ reading stuff from (what I hope is) a JSON data structure.

    This function:

    Code:
    function myFunction(){					
    outputter = document.getElementById("outputter");
    outputter.innerHTML = "";
    for (var z in Township) {
    outputter.innerHTML += "   Z = " + z + "  " + "<br>";
    ...
    See more | Go to post
No activity results to display
Show More
Working...