Hey guys. I have been pouring over the issues trying to find a solution to my problem but nobody else seems to have this problem. I have an "upload content" content type that has both a filefield and autocomplete field. Using the 2.x Dev version has solved both those issues when using popups for the add upload form. But when I hit save, a weird error popup shows up that has "undefinded" as the title of the popup and "NaN" as the body content. After closing it, the page hasn't refreshed using ajax views refresh even though I know it worked using Form Block. However, after refreshing the page I can see that the node does get created but a duplicate is also created everytime. The link i am using in a block on the panel page is:
<a class="popups-form" href="node/add/upload" title="[Popup]">Upload a File</a>
I also tried creating a dummy module and used some code found on the forums
// $Id$
function helper_popups() {
return array(
'*' => array(
'a[href^=/node/add/upload]' => array(
'additionalJavascript' => array(
'misc/textarea.js',
'misc/autocomplete.js',
),
),
),
);
}
I know this can be done because the Popup Node Reference module works great and does exactly what I want to do except that I just want to have a link that says "Upload a file," the node gets created, and a views table uses ajax and refreshes. Any help would be appreciated. Thanks guys.
- John