Does anyone know if its possible to create a pop up slimbox style window from a graphic or HTML link. I could do it with slim box and just save the text off as an image but that then leaves me with having to have unformatted link text on the page?
This is what I have at the moment I would like to link each of the headings to a slimbox style window.
This uses Facebox (http://famspam.com/facebox) and simply displays a
normally hidden div when the link is clicked. The div can contain
anything you like; text, images, forms etc. Although not available as
an action integrating it into a Freeway page is simple enough if you
follow the steps on the Facebox page.
Regards,
Tim.
On 13 Apr 2010, at 12:28, anton wrote:
Hi there.
Does anyone know if its possible to create a pop up slimbox style
window from a graphic or HTML link. I could do it with slim box and
just save the text off as an image but that then leaves me with
having to have unformatted link text on the page?
This is what I have at the moment I would like to link each of the
headings to a slimbox style window.
Hi again tim, I had a bit of trouble understanding how the facebox worked…hm slightly beyond me as of yet I think. But I had some success with the scriptylightbox. Only thing is worked fine previewing in my browsers but not when uploaded. have you any thoughts why?
The file that the link is referencing might not be uploaded. How did you create that, and what method did you use to get the file up to your server? Also, can you try changing its filename to remove all spaces?
If you link to a full HTML page using Lightwindow, and that file is on the same server as the page requesting it, then the script will not do its usual trick of requesting the page in an iframe. What this means is that the script will try to shoe-horn an entire new page into the current page, and depending on the browser, that can fail heartily, or blow up the browser, or just work (mysteriously). If you link to a file on another server somewhere, then the link will be inserted within a dynamically generated iframe, so anything goes, even duplicated IDs and other no-nos.
If you want to use Freeway to make the page fragments that you insert into these pop-ups, then apply the latest version of the PHP Make Insert Page Action to them. Despite the name, you don’t need to make the page PHP to use this Action. What it will do is strip off all the head and body tags from the page, and rename all DIVs that have an ID so there won’t be conflicts with the main page that you are inserting the fragment into.