Spry and Javascript: Can't get them to mix. Help!

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • doronkatz
    New Member
    • Sep 2007
    • 1

    Spry and Javascript: Can't get them to mix. Help!

    Hi guys and ladies,

    I am having one major issue here. I have utilised a really neat javascript library from Orangoo Labs (http://orangoo.com/labs/GreyBox/), to create photo gallery for photos.

    Now, I am also using Spry, which makes use of a dataset, calling specific XML nodes by {name} for example. Now, the javascript code for the gallery is as follows:
    {'caption': 'Photo A', 'url': 'file:///Users/doronkatz/workspace/QG%20Rentals/photo1'}, ...

    I need photo1 to be inside a {curly bracket} as it calls dynamically the photo for that row. I cannot get this to work, as I think the curly bracket syntax interferes with the javascript. Does anyone know a way around this?

    Thanks
  • acoder
    Recognized Expert MVP
    • Nov 2006
    • 16032

    #2
    There may be a problem with quotes, though I can't be sure unless I see the code and possible error messages.

    Comment

    Working...