<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:clearspace="http://www.jivesoftware.com/xmlns/jive/rss" version="2.0">
  <channel>
    <title>Adobe Community: Message List - Concatenate a loaded JSON URL</title>
    <link>https://forums.adobe.com/community/edge_animate?view=discussions</link>
    <description>Most recent forum messages</description>
    <language>en</language>
    <pubDate>Fri, 31 Oct 2014 13:42:02 GMT</pubDate>
    <generator>Jive Engage 7.0.0.1  (http://jivesoftware.com/products/)</generator>
    <dc:date>2014-10-31T13:42:02Z</dc:date>
    <dc:language>en</dc:language>
    <item>
      <title>Re: Concatenate a loaded JSON URL</title>
      <link>https://forums.adobe.com/message/6886615?tstart=0#6886615</link>
      <description>&lt;!-- [DocumentBodyStart:c690a15c-e9a1-475d-874e-65cae7a038ba] --&gt;&lt;div class="jive-rendered-content"&gt;&lt;p&gt;Thanks vivekuma,&lt;/p&gt;&lt;p&gt;Close! There were a couple of extra ' in your string.&amp;nbsp; Also the correction on the click event didn't work.&amp;nbsp; The click on the entire symbol as per my original block of code did.&amp;nbsp; Just the &lt;span style="font-size: 14pt;"&gt;sym.getSymbol("taboption1").click(function(){&lt;/span&gt;&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;The final syntax that worked at getting the data object from the JSON was as follows.&amp;nbsp; The only difference was I removed the ''s inside the " that were in your text. &lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&lt;span style="color: #ff6600; font-family: adobe-clean, 'Helvetica Neue', Arial, sans-serif; font-size: 19px;"&gt;window.open(""+data[0].thelink+"", "_parent");&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="color: #ff6600; font-family: adobe-clean, 'Helvetica Neue', Arial, sans-serif; font-size: 19px;"&gt;&lt;br/&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="color: #ff6600; font-family: adobe-clean, 'Helvetica Neue', Arial, sans-serif; font-size: 19px;"&gt;&lt;br/&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="color: #ff6600; font-family: adobe-clean, 'Helvetica Neue', Arial, sans-serif; font-size: 19px;"&gt;Thanks so much for your help!&amp;nbsp; Much appreciated.&lt;br/&gt;&lt;/span&gt;&lt;/p&gt;&lt;/div&gt;&lt;!-- [DocumentBodyEnd:c690a15c-e9a1-475d-874e-65cae7a038ba] --&gt;&lt;img src='/beacon?t=1415898091683' /&gt;</description>
      <pubDate>Fri, 31 Oct 2014 13:42:02 GMT</pubDate>
      <author>forums_noreply@adobe.com</author>
      <guid>https://forums.adobe.com/message/6886615?tstart=0#6886615</guid>
      <dc:date>2014-10-31T13:42:02Z</dc:date>
      <clearspace:dateToText>1 week 6 days ago</clearspace:dateToText>
      <clearspace:objectType>0</clearspace:objectType>
    </item>
    <item>
      <title>Re: Concatenate a loaded JSON URL</title>
      <link>https://forums.adobe.com/message/6886735?tstart=0#6886735</link>
      <description>&lt;!-- [DocumentBodyStart:1cbd2a7d-dd37-4de0-adfe-54617ce11a49] --&gt;&lt;div class="jive-rendered-content"&gt;&lt;p&gt;I think for the click event you might want to use:&lt;/p&gt;&lt;p&gt;&lt;span style="color: #000000; font-family: adobe-clean, 'Helvetica Neue', Arial, sans-serif;"&gt;&amp;nbsp; sym.getSymbol("taboption1").getSymbolElement().bind("click",function() {&lt;/span&gt;&lt;/p&gt;&lt;/div&gt;&lt;!-- [DocumentBodyEnd:1cbd2a7d-dd37-4de0-adfe-54617ce11a49] --&gt;</description>
      <pubDate>Fri, 31 Oct 2014 13:37:40 GMT</pubDate>
      <author>forums_noreply@adobe.com</author>
      <guid>https://forums.adobe.com/message/6886735?tstart=0#6886735</guid>
      <dc:date>2014-10-31T13:37:40Z</dc:date>
      <clearspace:dateToText>1 week 6 days ago</clearspace:dateToText>
      <clearspace:objectType>0</clearspace:objectType>
    </item>
    <item>
      <title>Re: Concatenate a loaded JSON URL</title>
      <link>https://forums.adobe.com/message/6885613?tstart=0#6885613</link>
      <description>&lt;!-- [DocumentBodyStart:e1f4390a-c829-4ffa-8f20-170097ea2edb] --&gt;&lt;div class="jive-rendered-content"&gt;&lt;p&gt;I assume you have included the jQuery already.&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Syntax for window.open is wrong, it should be like this:&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp; &lt;span style="color: #ff6600; font-family: adobe-clean, 'Helvetica Neue', Arial, sans-serif; font-size: 19px;"&gt;window.open("'"+data[0].thelink+"''", "_parent");&lt;/span&gt;&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;and while adding click event, you should do like like:&lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style="color: #333333; font-family: adobe-clean, 'Helvetica Neue', Arial, sans-serif; font-size: 19px;"&gt;sym.getSymbol("taboption1").getSymbolElement().click(function(){&lt;/span&gt;&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;hth,&lt;/p&gt;&lt;p&gt;Vivekuma&lt;/p&gt;&lt;/div&gt;&lt;!-- [DocumentBodyEnd:e1f4390a-c829-4ffa-8f20-170097ea2edb] --&gt;</description>
      <pubDate>Fri, 31 Oct 2014 02:33:22 GMT</pubDate>
      <author>forums_noreply@adobe.com</author>
      <guid>https://forums.adobe.com/message/6885613?tstart=0#6885613</guid>
      <dc:date>2014-10-31T02:33:22Z</dc:date>
      <clearspace:dateToText>1 week 7 days ago</clearspace:dateToText>
      <clearspace:replyCount>2</clearspace:replyCount>
      <clearspace:objectType>0</clearspace:objectType>
    </item>
    <item>
      <title>Re: Concatenate a loaded JSON URL</title>
      <link>https://forums.adobe.com/message/6884358?tstart=0#6884358</link>
      <description>&lt;!-- [DocumentBodyStart:b6bb5b30-a054-495c-999c-c80aaaf51493] --&gt;&lt;div class="jive-rendered-content"&gt;&lt;p&gt;&lt;span style="font-size: 14pt;"&gt;My syntax appears to be off, but I cant tell where?&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-size: 14pt;"&gt;&lt;br/&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="color: #ff6600; font-size: 14pt;"&gt;window.open("('"+data[0].thelink+"')", "_parent")});&lt;/span&gt;&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;The URL is in a JSON file that's being loaded as the JSON variable thelink&lt;/p&gt;&lt;p&gt; Heres the full block.&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&lt;span style="font-size: 14pt;"&gt;$.getJSON(myjson, function(data){&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-size: 14pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-size: 14pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var s1 = sym.getSymbol("taboption1");&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-size: 14pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; s1.getSymbol("holder").$("placehere").css({"background-image":"url('"+data[0].image+"')"} );&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-size: 14pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; s1.$("thename").html(data[0].thename);&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-size: 14pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; //start mouse events//&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-size: 14pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; sym.getSymbol("taboption1").click(function(){&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-size: 14pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; window.open("('"+data[0].thelink+"')", "_parent")});&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-size: 14pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-size: 14pt;"&gt;});&lt;/span&gt;&lt;/p&gt;&lt;/div&gt;&lt;!-- [DocumentBodyEnd:b6bb5b30-a054-495c-999c-c80aaaf51493] --&gt;</description>
      <pubDate>Thu, 30 Oct 2014 19:10:11 GMT</pubDate>
      <author>forums_noreply@adobe.com</author>
      <guid>https://forums.adobe.com/message/6884358?tstart=0#6884358</guid>
      <dc:date>2014-10-30T19:10:11Z</dc:date>
      <clearspace:dateToText>1 week 7 days ago</clearspace:dateToText>
      <clearspace:replyCount>3</clearspace:replyCount>
      <clearspace:objectType>0</clearspace:objectType>
    </item>
    <item>
      <title>Concatenate a loaded JSON URL</title>
      <link>https://forums.adobe.com/message/6884213?tstart=0#6884213</link>
      <description>&lt;!-- [DocumentBodyStart:4aada5ef-7d35-4888-bc70-fec37fe57580] --&gt;&lt;div class="jive-rendered-content"&gt;&lt;p&gt;&lt;span&gt;If you have a JSON file that's being loaded (no problems there), and one of the JSON variables is named "thelink"&amp;nbsp; with a value of "&lt;/span&gt;&lt;a class="jive-link-external-small" href="http://www.somewebsite.com" rel="nofollow"&gt;http://www.somewebsite.com&lt;/a&gt;&lt;span&gt;"&lt;/span&gt;&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;How would you concatenate that in Animate.&amp;nbsp; Although the following syntax gave me back no error, it didn't work on a click.&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;$.getJSON(myjson, function(data){&lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; sym.getSymbol("taboption2").click(function(){&lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; window.open((data[0].thelink), "_parent");})&lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/p&gt;&lt;p&gt;});&lt;/p&gt;&lt;/div&gt;&lt;!-- [DocumentBodyEnd:4aada5ef-7d35-4888-bc70-fec37fe57580] --&gt;</description>
      <pubDate>Thu, 30 Oct 2014 18:39:53 GMT</pubDate>
      <author>forums_noreply@adobe.com</author>
      <guid>https://forums.adobe.com/message/6884213?tstart=0#6884213</guid>
      <dc:date>2014-10-30T18:39:53Z</dc:date>
      <clearspace:dateToText>1 week 7 days ago</clearspace:dateToText>
      <clearspace:replyCount>4</clearspace:replyCount>
      <clearspace:objectType>0</clearspace:objectType>
    </item>
  </channel>
</rss>

