I have coded a widget, possible to have files on my server?

Discussion in 'Programming' started by blogsabout, Dec 30, 2008.

  1. #1
    Hello,

    I have "coded" a little ajax widget using Google Translates API, added some GFX etc.
    I making it "social networkable", and want to offer users to add it to their own site. (copy/paste)
    Since the file itself is basically just a html file, I'm wondering what the best approach would be to keep as much of the code on my own server as possible, in case I want to update width more languages etc.

    I was thinking of using iframe, and having the copy paste code having a width and height, and then showing the html in the iframe.

    Is there another way and better way?

    The problem with the iframe is that if a user is having a different "background", it will look weird.

    Would appricate any help or suggestions:)

    Happy new Year to all!

    Cheers
     
    blogsabout, Dec 30, 2008 IP
  2. danjake

    danjake Banned

    Messages:
    97
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #2
    If you have no background on your webpage where the widget is hosted, then the iframe will detect the colour of the background the widget is embeded on. Hope that sorts your probs out.
     
    danjake, Jan 1, 2009 IP
  3. hackfanatic

    hackfanatic Peon

    Messages:
    29
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    0
    #3
    encrypt the code ?
     
    hackfanatic, Jan 1, 2009 IP