picture in jiggy

Discussion in 'Jiggy Runtime Development' started by Webmonster, Jun 18, 2008.

  1. Webmonster

    Webmonster New Member

    Joined:
    Jun 8, 2008
    Messages:
    4
    Likes Received:
    0
    Hi,
    How i can insert pictue into text
    something like this

    IMAGE
    TEXT
    TEXT
    TEXT

    the text is rolling down

    i tried to addsubview but the image is static and don't move down
    i tried HTML an no local image loading it show "?"

    someone can help???
  2. blackjak231

    blackjak231 Member

    Joined:
    Oct 1, 2007
    Messages:
    759
    Likes Received:
    6
    Device:
    iPhone 4 (White)
    Can you put the full code of this? And is it HTML or jiggy that your talking about?
  3. Webmonster

    Webmonster New Member

    Joined:
    Jun 8, 2008
    Messages:
    4
    Likes Received:
    0
    Code:
    Plugins.load( "UIKit" );
     
    var window = new UIWindow( UIHardware.fullScreenApplicationContentRect );
    window.setHidden( false );
    window.orderFront();
    window.makeKey();
    window.backgroundColor = [ 1 , 1 , 1 , 1 ];
     
    var mainView = new UIView();
     
    window.setContentView( mainView );
    
    
    var cover = new UITextView( [0,40,320,370 ] );
    cover.color = [ 1 , 1 , 1 , 1 ];
    cover.textSize = 20;
    cover.HTML = ("<img src='/ribfi.jpg'>Рулетки из скумбрии с овощами<BR><BR><a href='www.lida.co.il'>123</a>'")
    cover.backgroundColor = [0,0,0,1];
    cover.textColor = [1,1,1,1];
    cover.visibleRect = true;
    cover.editable = false;
    
    
    mainView.addSubview( cover );
    
    Thje image is "?" and link to 123 is not working
    help me please.
  4. blackjak231

    blackjak231 Member

    Joined:
    Oct 1, 2007
    Messages:
    759
    Likes Received:
    6
    Device:
    iPhone 4 (White)
    Ok, i dont know if you read what i wrote, but it was wron. i tried it myself, and it didnt work...
    SO far i have only been able to get the picture to show is to put the full link.....
    so basically, instead of having just a "/", i have put the full link:
    Code:
    cover.HTML = ("<img src='file:///Applications/Air Text Beta.app/icon.png'>Рулетки из скумбрии с овощами<BR><BR><a href='http://www.lida.co.il'>1234567890</a>'")
    Im trying to get your link to work, but i dont know why it doesnt work....
    Do you want to do it all in HTML, or can you use something else?
    Im sorry i cant really help you with this, i've actually never used the .html function, so its hard for me to help...

    EDIT:I think that i know why the link doesnt work. It might have something to do the fact that it is a textView. Try to use something else.
  5. Webmonster

    Webmonster New Member

    Joined:
    Jun 8, 2008
    Messages:
    4
    Likes Received:
    0
    something else but what?
    how I can make it work?
    how to make link and not use subview
    besuase it is not scrollable
  6. Webmonster

    Webmonster New Member

    Joined:
    Jun 8, 2008
    Messages:
    4
    Likes Received:
    0

Share This Page