Hi,

I'm relatively new in javascripting and I started to use javascript in drupal one week ago.

What I'm trying to do is to launch a colorbox on parent (with inline content or node) by clicking a link on an contained iframe . Both the parent and the iframe are drupal pages on the same site.

I'm trying to do realize it in a Zen subtheme.
e.target.tagName is undefined

I have tryied to process colorbox-load and colorbox-inline, by modifying colorbox-load.js and colorbox-inline-js like:
$(".example8").click(function(){parent.$.fn.colorbox({width:"50%",inline:true, href:"#inline_example1"});})

as firebug reports it Seem parent.$ and parent.$.fn does not exist so i change it in window.parent.jQuery.colorbox. this way it open the colorbox window but it lost argument and firebux report me "
e.target.tagName is undefined"

Please help me!

I've tryied without result to add on firebux html editor adding
Open from parent

window.parent.jQuery.colorbox is not a function.

Comments

mevz’s picture

Project:Documentation» Colorbox
Version:» 7.x-1.x-dev
Component:Missing documentation» Code
Issue tags:+colorbox
mevz’s picture

Title:Colorbox, Javascript and iframe» Colorbox, function to open colorbox in the parent window ( Javascript and iframe)
Category:support» feature
frjo’s picture

Status:Active» Closed (won't fix)

Closing old issues that doesn't seem to affect a lot of users.