facebook

Image Changing

  1. MobiOne Archive
  2.  > 
  3. Getting Help – General
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #350680 Reply

    Nie Que
    Member

    Hi, im using mobione on the app im working on. I have this function that will change the image on the tabbar once the tab is being click. It work find when i test it on the emulator, but when i export it and installed on my device it seems corrupted. When i click the tab the image disappeared. When i export it, I include all the images of my project so there’s no reason why the image will not change.

    I attached my sample project here. Pls. help me figure this out.

    I really need help here. Any reply will be appreciated. Thank you!

    Attachments:
    You must be logged in to view attached files.
    #350694 Reply

    Hi,

    You need to add your files as additional project files: http://www.genuitec.com/mobile/docs/projectOrg/images/add_proj_files_prop.png

    Let me know how it goes.

    #350699 Reply

    Nie Que
    Member

    I tried putting additional project files but still not working.

    I also tried to change the url with “www.sample/images/sampleimage.png” still didn’t work.

    Attachments:
    You must be logged in to view attached files.
    #350817 Reply

    Hi,

    Also try using relative urls:

    Replace:

        var shoponclick=document.getElementById("m1-Untitled1-tabBar2-page1-img").src = "http://127.0.0.1:9090/get/71ea7d9fd14241c2be14f60c57fc6a92/images/cart1.png";

    For:

    var shoponclick=document.getElementById("m1-Untitled1-tabBar2-page1-img").src = "images/cart1.png";

    See attachment with changes to make it work.

    Attachments:
    You must be logged in to view attached files.
Viewing 4 posts - 1 through 4 (of 4 total)
Reply To: Image Changing

You must be logged in to post in the forum log in