how to get the url of an iframe ?

Author Message

Mickael Robin

Wednesday 29 October 2008 9:22:01 am

Hi all,

I need to enable my users to surf on an external website (within an iframe) and to fill a form with the url and content extracts of visited page :

- is there a way to <b>get the url</b> of the page currently displayed in the iframe?
- how can I <b>pre-fill the form</b> with this url?
- after the form processing, can I <b>display back this url</b> in the iframe?

After many research and trials, I am in a dead end so I hope someone can help me :-)

Thanks in advance for your hints.

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.

eZ debug

Timing: Jan 31 2025 01:29:16
Script start
Timing: Jan 31 2025 01:29:16
Module start 'layout'
Timing: Jan 31 2025 01:29:16
Module start 'content'
Timing: Jan 31 2025 01:29:16
Module end 'content'
Timing: Jan 31 2025 01:29:16
Script end

Main resources:

Total runtime0.0260 sec
Peak memory usage4,096.0000 KB
Database Queries3

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0074 588.1328151.2109
Module start 'layout' 0.00740.0036 739.3438220.6875
Module start 'content' 0.01100.0132 960.0313993.6953
Module end 'content' 0.02420.0018 1,953.726629.9922
Script end 0.0260  1,983.7188 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.003111.7610140.0002
Check MTime0.00145.3541140.0001
Mysql Total
Database connection0.00145.337710.0014
Mysqli_queries0.003011.432130.0010
Looping result0.00000.054110.0000
Template Total0.00135.110.0013
Template load0.00114.050410.0011
Template processing0.00031.026110.0003
Override
Cache load0.00082.916210.0008
General
dbfile0.00031.141680.0000
String conversion0.00000.068740.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 1
 Number of unique templates used: 1

Time used to render debug report: 0.0001 secs