SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Wizard Wolf_22's Avatar
    Join Date
    Jul 2005
    Posts
    1,710
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Is this a function?

    A project I have been working on lately uses SWObject and when making some changes to this I located a line that caught me off guard...

    Code:
    U({data:w.expressInstall,id:m,width:w.width,height:w.height},{flashvars:r},x)}
    What exactly is this? Is it a function? Object? It doesn't end right as far as I can see because if it's a function, it should end with a curly brace--as it did--but the thing is that it appears to be using contents of a normal function as if it were the parameters. What's up with this?

  2. #2
    Forums Designer
    Join Date
    Jun 2004
    Posts
    422
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    } at the end of code doesn't have matching {, so you must have missed some code.

    Its a usual call to function "U", first 2 parameters are objects. Those objects are similar to associative arrays, google for "JSON" to understand how those objects work.


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •