xProteuSx Posted September 3, 2011 Share Posted September 3, 2011 I have no idea where to start, and this forum is so phenomenal, so it was a natural place to ask ... I would like to write a script. Here's the idea: I would like my website visitors to be able to go to my webpage and get code for an application that retrieves information from one of my databases. They can then take this code, and embed it on their site, and the retrieved information is displayed on their website. My idea is not ad related, but Adsense is a good example, I think. You get your code, which fetches ads from Google and displays them on your website. I believe that they do it with JavaScript. Where do I start? Thanks folks. Quote Link to comment https://forums.phpfreaks.com/topic/246320-javascript-applet-how-to/ Share on other sites More sharing options...
RichardRotterdam Posted September 3, 2011 Share Posted September 3, 2011 Sound's more like an API of some sort. Doesn't have to be javascript specifically but it could be. An applet is something you do with Java btw and has nothing todo with javascript Quote Link to comment https://forums.phpfreaks.com/topic/246320-javascript-applet-how-to/#findComment-1265047 Share on other sites More sharing options...
xProteuSx Posted September 3, 2011 Author Share Posted September 3, 2011 API ... already Googling it Any ideas on where I could get a good start? (other than Google) Quote Link to comment https://forums.phpfreaks.com/topic/246320-javascript-applet-how-to/#findComment-1265048 Share on other sites More sharing options...
nogray Posted September 3, 2011 Share Posted September 3, 2011 The easiest way to do it this is by iframe. Create a script that will write an iframe with a URL to your page. Quote Link to comment https://forums.phpfreaks.com/topic/246320-javascript-applet-how-to/#findComment-1265099 Share on other sites More sharing options...
xProteuSx Posted September 4, 2011 Author Share Posted September 4, 2011 I was always under the impression that an iframe was a huge programming no-no. At least that's what it used to be many years ago ... Quote Link to comment https://forums.phpfreaks.com/topic/246320-javascript-applet-how-to/#findComment-1265258 Share on other sites More sharing options...
nogray Posted September 4, 2011 Share Posted September 4, 2011 iframe a no-no?? Well, all third party ads (including adsense) are using iframes, facebook apps use iframe, HTML editors in a browser use iframe. Iframe are secure and isolated from third party websites. Quote Link to comment https://forums.phpfreaks.com/topic/246320-javascript-applet-how-to/#findComment-1265368 Share on other sites More sharing options...
xProteuSx Posted September 4, 2011 Author Share Posted September 4, 2011 Awesome, thanks for letting me know. Iframe, API ... I'm learning again! Cheers nogray. Quote Link to comment https://forums.phpfreaks.com/topic/246320-javascript-applet-how-to/#findComment-1265380 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.