Jump to content

Using my PHP in a Widget


JSHINER

Recommended Posts

I have created a widget page that queries a database based on www.site.com/widget/index.php?id=595

 

Which retrieves a bunch of stuff about that id and displays results on the page - could be 1, could be 5 different results. Most widgets use an iframe but that height is not dynamic, and I do not want scrolling. Is there anyway to do this that would be easier? I looked into javascript too but all the examples I found also use an iframe.

 

 

Link to comment
https://forums.phpfreaks.com/topic/77054-using-my-php-in-a-widget/
Share on other sites

how do you plan on doing it without scrolling? if there is too much information for the box/frame/iframe/page/browser... it will scroll.

what kind of information.. or rather is it 10 quick little facts or is it sentences of description?

 

the only way to prevent it from scrolling would be CSS... but i dont know exactly what that would be. just google CSS no scroll

I suppose you could get the number of results and then load the right .css file to amend the style height of the div in which the results are displayed.

 

Of course, that's going to explode when someone uses a larger font size than you planned on them using.

 

White space never killed anyone; use a scrollable div set for 2 or 3 factoids.

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.