Hi,

I'm trying to open a 'shared' google doc inside a colorbox popup, but I'm running into a problem.

The url for the Google Doc is: https://spreadsheets.google.com/pub?key=0AkmA2r5iR_LcdC1ZOEJWVUw0T0lFVWluTlBoalVTOXc&hl=en&output=html

if I now try to add ?width=x&height=x&iframe=true

I get an error, because the google doc doesn't like the additional parameters in the url.

Is there a way that I can do this?

Thanks

Comments

frjo’s picture

I just tested the following link in my local dev environment and it seems to work well:

<a class="colorbox-load" href="https://spreadsheets.google.com/pub?key=0AkmA2r5iR_LcdC1ZOEJWVUw0T0lFVWluTlBoalVTOXc&hl=en&output=html&width=400&height=400&iframe=true">Open Google Docs</a>

You need to check "Enable Colorbox load" in the Colorbox settings.

Also observe that a URL query starts with a "?" and then you use "&" between each value.

gmak’s picture

I am now officially putting on my 'dunce' cap. Of course, I was putting another '?' before the addition of the colorbox parameters, even though the google url had already inserted this. So, instead of adding another '?', I add an '&' and it works.

Thanks frjo - sometimes I just need someone to point out the obvious.

frjo’s picture

Status: Active » Fixed

Glad that you got it working!

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.