Imagefield Upload doesn't work in popups.

kryptik - October 29, 2008 - 20:49
Project:Popups API (Ajax Dialogs)
Version:6.x-1.1-rc2
Component:User interface
Category:support request
Priority:normal
Assigned:Unassigned
Status:duplicate
Description

Hello, I've intergrated your awesome script into nodereferrer create, to allow creation of referrers when viewing a node. It works awesome! So far the ONLY modal window on drupal that has great looking output of the form without any editing!

However, I have a node/add form with an imagefield on it, when I click upload, the modal switches to the loading image and just spins for a couple minutes.

Everything else seems to be working.

#1

starbow - October 30, 2008 - 20:24

Hmm, integration with other modules that use javascript can be tricky. Sometimes it can be super fussy, sometimes you just need to add an "additionalJavascript" option to the link.

The first thing to try is to look at the source for your normal node/add page, and write down all the .js files included. Then look that the source of the page that has the popup link in it, and note which .js files are missing. Then, if you are using the popups_add_popups rule approach.

<?php
    popups_add_popups
(array('#your_link_id'=>array('additionalJavascript'=>array(drupal_get_path('module', 'moduleX') .'/moduleX.js', and so on))));
?>

If this doesn't help, the next thing is to use Firebug to see if you are getting any kind of error message back from the server when you click upload.

#2

Oghnia - May 21, 2009 - 18:08

I have the same problem but in a different place.

I have the user edit password and profile in a popup.

when uploading a new avatar i get an error message and I can't upload a new avatar at all...
is there a way around it?

#3

KarenS - July 21, 2009 - 10:31
Status:active» duplicate

Probably should mark this a duplicate of #339196: Image uploading through popups, which is more current. It looks like some problems are fixed in latest -dev and some remain.

#4

dendie - September 14, 2009 - 07:53
 
 

Drupal is a registered trademark of Dries Buytaert.