Hi Marc.

I am using Drupal 6.15 and have installed insert iframe 6.x-2.0 (have tried 1.10 also).

I created a new block, and inserted the body

[[[www.externalurl.com]]]

and in the frame, my localhost Drupal homepage shows up.

Can you please tell me where I'm going wrong?

Many thanks!

Comments

MarcElbichon’s picture

Strange.

Can you open source code page from the browser, search for iframe and post content of the line ?

alvinlb’s picture

here it is..

< iframe src="www.google.com" width="100%" height="100%" onload='adjustHeight(this,15)' scrolling="no" frameborder="0" id="iframe1" name="iframe1" >< /iframe>

MarcElbichon’s picture

So your filter code is [[[www.google.com]]] ?

Note that including page from another domain breaks auto-resizing due to browser security issue.

For your problem, i'm surprise. Generated code seems good. Can you refresh you browser cache ?

alvinlb’s picture

Yes. I've tried other external url's also.

I can link to an internal network share in the frame successfully, generated code..

< iframe onload='adjustHeight(this,15)' name="iframe1" id="iframe1" src="\\server\share" scrolling="no" width="100%" height="100%" frameborder="0" >

I've refresed browser cache and cleared Drupals, same result.

MarcElbichon’s picture

Can I have access to your site with iframe page ?

Can you post me all source code and screenshot of the result ?

alvinlb’s picture

Oops! Simply prefixing www with http:// solved my problem.

So sorry to have taken your time Marc, and thanks very much for your help :-)

MarcElbichon’s picture

Great. But i don't understand why iframe without http:// prints drupal home page !

MarcElbichon’s picture

Status: Active » Closed (fixed)
alvinlb’s picture

No, me neither. Not even sure why I tried it.

Anyway, testing by linking to the internal fileshare may well have solved another problem for me. I wanted our users to be able to browse exisiting network shares
from within the page and the only solution I'd found was integrating a DMS, which required moving all the data to the DMS' own filesystem .. too much hassle.. maybe I'll just
give them an iframe in a block :-)

I can still give you the source and screen if you like, but not access as its just a local test at the moment.

MarcElbichon’s picture

What is DMS ?
Does auto_resize work with shares ?

alvinlb’s picture

Document Management System. Which was total overkill for what I need anyway, which is simply a way of navigating the shared folders from the Drupal page.

Yes, it does :-)