Hi, i have a problem with colorbox_node and some another module
i install colorbox_node , webform, webform_ajax and availability_calendars

availability_calendars have a some form with submit button for send value to webform
i add class to submit by this code

function MYMODULE_form_availability_calendar_booking_formlet_form_alter(&$form, &$form_state, $form_id) {
$form['actions']['submit']['#attributes']['class'][] = 'colorbox-node';
   }

and now i have a message in popup window
"No url found on element"
and colorbox not open.

if make custom link like

<a href="../webformpage/" class="colorbox-node"> webform in colorbox <a/>

it's work good.
help please with error.

Comments

TorreyToomajanian’s picture

A submit button is an input or button element, not an anchor element. Colorbox is meant to only work with anchor elements.

iLLin’s picture

Status: Active » Closed (works as designed)
fervilas’s picture

Hello, I am getting the same error using a standard menu link. I just write in the path: node/519. As soon as I activate the module Colorbox Node I get this error: No url found on element. Any help please? Thanks!

iLLin’s picture

Please paste in your actual code.

fervilas’s picture

Hello. Thanks for your answer. Could you tell me which code you would like to see? I get the error as soon as I activate the module. I don't even set up any link and I have the issue.

iLLin’s picture

Turn the module on in a fresh install, you may have an issue with your setup. Maybe that will help you track down what's going on.

fervilas’s picture

I found the problem. I was adding to the link the classes specified in "extras" inside the module configuration, instead of adding the class "colorbox-node". I worked when I added the class "colorbox-node" and I didn't activate any extra.

Thanks for your help!