JSON content - can't display image after click

Hi to all,
I am trying to to load a JSON file and load images with text information.
I have a problem when i click the thumbnail, the large image can't displayed, i am receiving the following error:
Failed to load resource: the server responded with a status of 404 (Not Found)
my code in compositionReady:
$.getJSON("content.json",
          function(data){
                    for(var i=0; i<=data.length; i++){
                    var s = sym.createChildSymbol("template","content");
                    s.$("title").html(data[i].title);
                    s.$("description").html(data[i].description);
                    s.$("seira").html(data[i].seira);
                    s.$("imageholder").css({"background-image":"url('"+data[i].image+"')"});
                    s.$("imageholder").click("click", function(e){
                                                            sym.getComposition().getStage().$("finte").css({"background -image":"url("+$(this).data('largeimage')+")"});
And the JSON File:
                    "title": "Titlos 1",
                    "description":"Descrpt 1",
                    "seira": "Number 1",
                    "image": "images/wheel.png",
                    "largeimage": "images/1.png"
                    "title": "Titlos 2",
                    "description":"Inter description 2",
                    "seira": "test",
                    "image": "images/wheel_cool.png",
                    "largeimage": "images/wheel_cool.png"
I tried also with this code:
$.getJSON("content.json")
   .success(
          function(data){
                    console.log("incoming data: ", data);
$.each(data, function(index, item){
          var s = sym.createChildSymbol("template","content");
          s.$("title").html(item.title);
          s.$("description").html(item.description);
          s.$("seira").html(item.seira);
          s.$("imageholder").attr("src",(item.image));
                    s.play();
          s.setVariable( "largeimage", item.largeimage)
and at the element that hold's the thumbnail image, I added on the click event :
sym.$("finte").css({"background-image":"url("+$(this).data('largeimage')+")"});
I believe that somewhere on +$(this).data('largeimage')+") is the mistake. But I can't find it.
Your help is needed.
Moreover, how, the thumbnails, can be displayed as a table of 4x5?
Thanks in advanced.

Hi Zoze
you missed some lines, try this, i think this should work for you
$.getJSON("content.json",
          function(data){
                    for(var i=0; i<=data.length; i++){
                    var s = sym.createChildSymbol("template","content");
                    s.$("title").html(data[i].title);
                    s.$("description").html(data[i].description);
                    s.$("seira").html(data[i].seira);
                    s.$("imageholder").css({"background-image":"url('"+data[i]. image+"')"});
                    s.$("imageholder").data('Large', data[i].largeimage);
                    s.$("imageholder").click("click", function(e){
                                                            sym.getComposition().getStage().$("fint e").css({"background-image":"url("+$(this).data('Large')+")"});
if you had problem again, let me know
Zaxist

Similar Messages

  • I have selected not to load images automatically in OPTION of firefox, and i want to keep this option as it is. now can i display images of particular page without changing DONT LOAD IMAGE AUTOMATICALLY?

    i have selected not to load images automatically in OPTION of firefox, and i want to keep this option as it is. now can i display images of particular page without changing DONT LOAD IMAGE AUTOMATICALLY? for example if i trust that image on particular page doesnot contain any adult material and safe to see that page from home, can i temparory view image on page?

    -> Tap '''ALT''' key or press '''F10''' to show the Menu Bar
    -> go to Tools Menu -> Options -> Content -> click '''Exceptions...''' button infront of '''Load images automatically''' -> type the address of the website on which you want to load images e.g. yahoo.com and click '''Allow''' button -> click Close
    -> Click OK on Options window -> Restart Firefox
    Check and tell if its working.

  • How can I display images that are not included in any collection?

    How can I display images that are not included in any collection (some filter or smart collection)? A smart collection with parameters "Collection - contains - empty field" does not work. Lightroom 5.

    Thank you! Good idea! I ordered letters of the alphabet (space separated), and it works.

  • How can I display images in drop down.

    Hi All,
    How can I display images in drop down.
    <select><option>image here</option></select>
    please reply soon.
    anser please
    Thanks

    I have not found html forum..That's just incredible.
    where can i find it ?Sorry, I'm still recovering from that remark.
    please reply soonEvery time you end a post with this, or "urgent" or other such keywords, the forum automatically introduces a 5 minute delay so that will actually make the whole process slower (not faster).

  • How can i display image in RTF template when Oracle Apps running in Windows

    Can any body help how can i display image in RTF template when oracle apps running in Windows Server.
    Thanks
    Ravi

    Hi Ravi,
    You can add images into your rtf template using MS Word Insert Picture feature.
    Did you try this method?
    Thanks
    Ravi
    [email protected]

  • How to read bytes(image) from a server ?how to display image after read byt

    How to read bytes(image) from a server ?how to display image after reading bytes?
    i have tried coding tis , but i couldnt get the image to be display:
    BufferedInputStream in1=new BufferedInputStream(kkSocket.getInputStream());
    int length1;
    byte [] data=new byte[1048576];
    if((length1=in1.read(data))!=-1){
    System.out.println("???");
    }System.out.println("length "+length1);
    Integer inter=new Integer(length1);
    byte d=inter.byteValue();

    didn't I tell you about using javax.imageio.ImageIO.read(InputStream) in another thread?

  • How can i display image in mx:TextArea Component?

    I found display img tag in htmlText of mx:TextArea component
    is very difficult in Flex Air
    I new a simple air project in flex builder, put the code
    below in it, i put a glad.png file in the src folder, every thing
    is OK, when i run it, image cannot be displayed. why this happend,
    I search the google for the solution, it seems there is a bug in
    air, and told me to use mx:HTML coponent, but that component still
    can not display img tag.
    could any one help me with this?
    <mx:TextArea width="100%" height="100%">
    <mx:htmlText>
    <![CDATA[
    <a href='
    http://www.adobe.com'><img
    src='glad.png'/></a>Click the image to go to the Adobe
    home page.
    ]]>
    </mx:htmlText>
    </mx:TextArea>

    I ran into a similar problem and wasn't able to find a way to have regular Flex components (like Text and TextArea) display <img> tags in their htmlText.  Everything works find in a web-based Flex application, but once the same code was used in AIR, the images just wouldn't display.
    I changed my display to use the mx:HTML component and everything worked fine (I was using only external images).

  • Rotate an image after clicking two times on reference points on the picture

    Hello Community!
    I am looking for a solution to rotate an image by clicking on two reference points on the image. The two coordinate pairs of the mouse clicking can give me the rotation angle with simple geometry. After that I will rotate the image with the calculated angle.
    My problem is: How can I get those two coordinate pairs? I wanted to do it with an easy MatlabScript "input: path ... imread(path) ... imshow ... ginput(2) ... calculation ...output: angle". Apparently imshow doesnt work in Labview
    I already have the Mouse Down event but I dont know how I can make Labview let me click EXACTLY and ONLY two times on my picture and store the coordinates.
    Does anyone of you have a glue/ hint how to do that? 
    Best,
    Annki
    (Started LabView 2 weeks ago)
    Solved!
    Go to Solution.

    Hi Annkitranky,
    welcome to the forum!
    Here is one that works well: http://en.wikipedia.org/wiki/Cyanoacrylate  (Sorry, I couldn't resist...)
    Check this out: http://forums.ni.com/t5/LabVIEW/Using-mouse-click-to-return-image-coordinates/m-p/890731 and http://forums.ni.com/t5/LabVIEW/How-to-find-cursor-position-on-an-image-in-LabVIEW/m-p/1862495 There is a suggestion not marked as a solution, but I think it is: see last posts there; User Event Structure with the position reported implicitly. Further, I would put the Event Structure in the While Loop, where I wait for user input, collect the user inputs and finish (execute rotation on a two-element array).
    If you have a code or something, post it.
    Cheers

  • How can i Display images with may own table

    Hi
    I want display images with my own table. How can I use in this query.
    SELECT    '<a href="#" onclick="javascript:'
           || 'getImageHeight(''my_img'
           || '#ROWNUM#'');javascript:redirect'
           || '(''f?p=&APP_ID.:212'
           || ':&SESSION.:DISPLAY:NO::P212_IMAGE_ID:'
           || ID
           || ''');">'
           || '<img src="#IMAGE_PREFIX#edit.gif" '
           || 'alt="Edit"></a>' ID,
              '<img id="my_img'
           || '#ROWNUM#" src="#WORKSPACE_IMAGES#'
           || filename
           || '"/>' image
      FROM wwv_flow_filesThanks
    Nr
    Edited by: user10966033 on Sep 28, 2009 1:41 PM

    You don't use #workspace_images# since that is for STATIC files, not images in a table..
    see this thread for help: Re: Display image from blob
    Thank you,
    Tony Miller
    Webster, TX

  • Can We Display Image on Hieararichal Report on Each Line item

    Dear Gurus ,
                         I have a Strange Requirement from the Client . They want to display Image on each line item of report with regard to Material in Hierarchal Sequential Report . Is there any solution for the same .
    Thanks in advance
    regards
    Shankar

    I am having a path which is stored in SAP database which i have fetched in the reported in both alv heriarchal and also in Alv Grid . The Image is stored from DMS . Now what i am doing is i am trying to load a excel file from program BCALV_BDS_UPLOAD and when i run my report and go to view and select Microsoft Excel option the I am getting an error Bad file format .
    The Path is : SAPR3://SAPR3CMS/get/200/DMS_5FC1/DE72B28A5B76F0F1AF0000215E54283E/FM1E1085XX18W-001E.jpg
    Can you please help me out in this .
    Regards
    Shankar

  • DSO content can't display Chinese character

    Hello experts,
    I extract data from non-sap system (non-unicode) to BW DSO (7.0 unicode).
    The DTP, data extraction and the activation all work fine.
    However, the content of the DSO can't display the Chinese character.
    Is there any setting I miss?
    How can it display Chinese character as the data in source system?
    Any information is very appreciated.
    Thanks in advance.

    Hi,
    Make sure Chinese Language Patch applied on BW system. You can see Chinese does not mean Chinese Language Patch applied.
    However, even if Language Patch is not applied, you still can see Chinese in reports via Portal.
    Good luck
    Jonas

  • Can a display image field be changed with javascript

    I have a select list (P3_RECON_CONDITION). when it changes It triggers javascript..
    in that javascript I would like it to change a Display Image field (P3_RECON_COLOR) without having to refresh the whole page..
    P3_RECON_COLOR is a Display image filed that gets its image from a blob from SQL:
    select color from projstat.condition_color, projstat.project where condition_color.condition = nvl(:P3_RECON_CONDITION,'W') and project.job_piece = :P3_JOB_PIECE
    the display field works now, but only for what the P3_RECON_CONDITION is when the page is loaded..

    yes, I tried that, but couldn't figure out how to do the: " dynamic action refresh the item P3_RECON_COLOR"
    I have
    Event: Change
    Selection Type: Item
    Item: P3_RECON_CONDITION (the select list)
    no condition
    TRUE ACTION: Refresh
    Fire when True:
    Selection Type: Item
    Item: P3_RECON_COLOR (the display image)
    (if I change the action to submit page.. it does fire.. but the refresh item does nothing..)

  • Can't display image contextMenu on Linux.

    I'm writing an Flex 3 (same issue in Flex 2)application where
    right clicking on an image should display my customized
    ContextMenu. The contentMenu is NOT displayed whenever I execute
    this application in Firefox on a RedHat Enterprise 4 Linux system.
    This issue doesn't occur on Windows based system (Firefox or IE).
    Attached is my sample application. Can anyone please help? Thanks
    <?xml version="1.0" encoding="utf-8"?>
    <mx:Application initialize="init(event)" xmlns:mx="
    http://www.adobe.com/2006/mxml"
    layout="absolute">
    <mx:Script>
    <![CDATA[
    import mx.controls.Image;
    import mx.managers.PopUpManager;
    import mx.core.UIComponent;
    private var square:Sprite = new Sprite();
    // Image
    [Embed(source="../asset/images/pie-chart.png")]
    static public var iconClass:Class;
    public function init(event:Event):void
    square.graphics.beginFill(0000000);
    square.graphics.drawRect(0,0,100,100);
    square.graphics.endFill();
    var newComponent:UIComponent = new UIComponent();
    //must set the UI component to wrap the sprite - so set
    width and height
    newComponent.width = 100;
    newComponent.height = 100;
    var menuItem:ContextMenuItem = new ContextMenuItem("Change
    Color");
    menuItem.addEventListener(ContextMenuEvent.MENU_ITEM_SELECT,changeColor);
    var customContextMenu:ContextMenu = new ContextMenu();
    //hide the Flash menu
    customContextMenu.hideBuiltInItems();
    customContextMenu.customItems.push(menuItem);
    var _imgObj:Image = new Image();
    _imgObj.source = iconClass;
    _imgObj.width = 25;
    _imgObj.height = 25;
    _imgObj.contextMenu = customContextMenu;
    newComponent.addChild(_imgObj);
    myPanel.addChild(newComponent);
    public function changeColor(event:ContextMenuEvent):void
    {square.transform.colorTransform = getRandomColor();}
    public function getRandomColor():ColorTransform
    {return new ColorTransform(Math.random(), Math.random(),
    Math.random(),1,(Math.random() * 512) - 255, (Math.random() * 512)
    -255, (Math.random() * 512) - 255, 0);}
    ]]>
    </mx:Script>
    <mx:Panel id="myPanel"></mx:Panel>
    </mx:Application>

    After much fiddling with display resolutions and TV setting, and several calls to Apple help, problem was found to have a really basic solution: replace the RCA connector cable. The old one was shot.

  • IPhone Messages won't display pictures after clicking on thumbnail.

    On iOS6 either sending or recieving a picture in messages will yield a thumbnail in the thread view, but if you click on it instead of the full image being displayed it says "Loading..." then never shows the image.

    Just do a hard reset. Hold your power button and home button at the same time until you see the Apple symbol. Then let go and let iOS reboot. It should be fixed after that.

  • KM Doc iView-How the content can be displayed in detailed navigation area

    Hi Experts,
    I have doubt related with KM Document iView.
    I have created a HTML page in KM, which will hold 2 links. Give names to these links and href as follows.
    Link1: http://<host>:<port>/irj/portal/*
    Link2: http://<host>:<port>/irj/portal/*
    I have created KM Document iView (ABC) and provided path to document of above HTML page.
    Then I opened my role, created folder inside, and added KM Document iView (ABC). Then I opened the properties of this iView in role and change the property, Initial state as Open,
    I had then expected that the KM document iView (ABC) content Link1 and Link2 to appear in detail navigation area.
    It is not happening. Can you please let me know what is going wrong here
    In other words can you please let me know how I can ensure that
    Link1 Link2 should appear in detailed navigation area side by side.
    Thanks

    Hi Frank,
    Thanks. But this has already been implemented in one project. I have seen this. In that project the detailed navigation area looks like as shown below. The image link and iview link appear in one line
    'jpg image1' 'iviewLink1'
    'jpg image2' 'iviewLink2'
    'jpg image3' 'iviewLink3'
    'jpg image4' 'iviewLink4'
    When the user clicks on jpg image, one iview gets open. When user clicks on iview link other iview gets open.
    I tried a lot. But, I am unable to do this.
    Can it be done using custom PAR file or Visual composer?
    Will appreciate if you can help.
    Thanks
    Brian

Maybe you are looking for