Account Options

  1. Sign in
The old Google Groups will be going away soon.
Switch to the new Google Groups.
Google Groups Home
« Groups Home
Intercalate rendering of attributes
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  3 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Javier Calzado Sánchez  
View profile  
 More options Jan 4, 7:26 am
From: Javier Calzado Sánchez <jcalzadosanc...@gmail.com>
Date: Wed, 4 Jan 2012 04:26:34 -0800 (PST)
Local: Wed, Jan 4 2012 7:26 am
Subject: Intercalate rendering of attributes
Hi all the people,

I'm trying to render attributes interleaving, at the moment only
obtained the rendering of attributes via block, here's my code:

<html>
  <head>
      <script src="http://code.jquery.com/jquery-latest.min.js"></
script>
      <script src="pure.js"></script>
   </head>

   <body>

        <div class="template">
            <li></li><img src="">
          </div>

<script type="text/javascript" charset="utf-8">

var data =  $.getJSON("http://api.flickr.com/services/feeds/
photos_public.gne?&tags=r2d2&tagmode=all&format=json&jsoncallback=?",
function(json){

         directive = {
            li:{
                'it<-items':{
                '.':'it.title'
                 }
            },

            img:{
                  'it<-items':{
                  '.@src':'it.media.m'
                  }
           }
         }

   $('div.template').render(json, directive);
 });
</script>

    </body>
</html>

Sautti a tutti


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Mic (BeeBole)  
View profile  
 More options Jan 4, 7:38 am
From: "Mic (BeeBole)" <tch...@gmail.com>
Date: Wed, 4 Jan 2012 04:38:22 -0800 (PST)
Local: Wed, Jan 4 2012 7:38 am
Subject: Re: Intercalate rendering of attributes
Are you trying to do something like this?
https://gist.github.com/1559863

The IMG should be inside the LI.
And you can use +, to prepend/append text to a node.

On Jan 4, 1:26 pm, Javier Calzado Sánchez <jcalzadosanc...@gmail.com>
wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Javier Calzado Sánchez  
View profile  
 More options Jan 4, 8:44 am
From: Javier Calzado Sánchez <jcalzadosanc...@gmail.com>
Date: Wed, 4 Jan 2012 05:44:32 -0800 (PST)
Local: Wed, Jan 4 2012 8:44 am
Subject: Re: Intercalate rendering of attributes
Works! Thank you very much for the idea!

Congratulations for you work.

Cheers

On 4 ene, 13:38, "Mic (BeeBole)" <tch...@gmail.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »