Jump to content

Widgets development, how to start?


lopes_andre

Recommended Posts

Hi,

 

I need to develop a widget.

 

I have read that it is better to develop using JavaScript, but using a simple IFrame it is easier.

 

What should I do? Develop using JavaScript or IFrame.

 

Some tutorial on widgets using JavaScript? I'am very bad with JavaScript.

 

Best Regards,

Link to comment
https://forums.phpfreaks.com/topic/205747-widgets-development-how-to-start/
Share on other sites

Oh, sorry. English is not my main language...

 

Widget... Ok, I have a Blog(like) and I wan't to give a JavaScript code to allow external websites to show the last 10 Blog entries.

 

It is more clear now? It is difficult sometimes to express in english.

 

 

Best Regards,

 

JavaScript can only fetch data from its own domain, so if your widget is to be JS based, it'll have to be in an IFRAME, or you will need to distribute some server-side code along with it. So yeah, at the end of the day you'll probably end up using both.

 

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.