Getting the url of the parent iframe

[eluser]saidai jagan[/eluser]
Iam using code igniter for my website(social networking site).And i have implemented crazy egg tool to get the total clicks of my web site.In crazy egg they are calling my website through iframe.

Here comes the problem i cant able to take the url which calls my site as iframe.
Can any one tell how to get the url of the parent iframe in CI of js ??

Have you tried using javascript?

[eluser]saidai jagan[/eluser]
I tried this in my helper
but it displays an error (seesion already start)

if (parent.frames.length != 0) {
else {

[eluser]saidai jagan[/eluser]
This is the error
Message: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at D:\xampp\htdocs\jagan\pokervibez_new\application\helpers\user_helper.php:1)

Filename: libraries/AI_Session.php

That's a PHP error, which shouldn't have anything to do with javascript. It seems you have a session_start() in your helper file.

[eluser]saidai jagan[/eluser]
Then how to fix this problem ??
or can u suggest me a new method ?

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  

  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2020 MyBB Group.