User Profile

Collapse

Profile Sidebar

Collapse
Bitslong
Bitslong
Last Activity: Mar 30 '08, 08:36 PM
Joined: Apr 16 '07
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • After much digging around I came across:
    http://developer.yahoo .com/javascript/howto-proxy.html

    Works a treat!!
    See more | Go to post

    Leave a comment:


  • Bitslong
    started a topic Reading an external page response over HTTPS?

    Reading an external page response over HTTPS?

    I know that an XML HTTP Request won't work to an external site.
    Is there some other way that I can make a (different/other/any) request to this (HTTPS) site:
    https://secure.logmeinr escue.com/SSO/GetLoginTicket. aspx?SSOID=monk ey&CompanyID=11 11&Password=mon key

    and process the returned info?
    I'm using xampp backend locally.

    LogMeIn provide ASP code which can handle it but that's no good to me....
    See more | Go to post

  • Bitslong
    replied to Accessing JSON Property
    Cheers :D
    Works a treat, it came to me in the shower, can't believe it escaped me.

    It was a smaller part of a large ajax/json thing.

    Thanks again!
    See more | Go to post

    Leave a comment:


  • Bitslong
    started a topic Accessing JSON Property

    Accessing JSON Property

    I have the following JSON obj/code:

    Code:
    var json_logs = 
    {
    "countries": [ "US","AU"],
    "US":{"num_calls":"555","time":"432"},
    "AU":{"num_calls":"212","time":"233"}
    }
    
    var call = json_logs.evalJSON();
    
    for(i=0;i< call.countries.length; i++){
    ...
    See more | Go to post

  • Bitslong
    replied to Use variable contents in object?
    Solved it by making the second for statement:

    Code:
    for(j=0; j<img_lib[img_lib.sections[i]].length; j++){
     alert("Do stuff");
    }
    See more | Go to post

    Leave a comment:


  • Bitslong
    started a topic Use variable contents in object?

    Use variable contents in object?

    Hi,
    I'm trying to use what is held in a variable to get to an object property:

    img_lib.section s is an array containing a varying number of strings - eg "Category1","Ca tegory2" etc

    img_lib.Categor y1 is an array that contains a varying number of strings

    In the second for statement I need to compare j to the length of the img_lib.* array as retrieved from img_lib.section s[i]...
    See more | Go to post

  • Dynamic variable name - how? - is there an equivalent to phps $$var

    I want to be able to create variables named from the values stored in an array.

    I can do this in php with the $$var as described here: http://www.thescripts. com/forum/thread468141.ht ml

    if I have an array:
    var animals = new array("emu","ka ngaroo","wallab y");

    how do I create new variables based on what's in that array.

    I feel like something very simple...
    See more | Go to post
No activity results to display
Show More
Working...