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
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

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.