Multi-file upload field not working - ajax

I am running a wordpress/woocommerce site and I just installed Gravity Forms. After creating a form with a multi-file upload section, it won't seem to work. The select button does nothing and when you try to drag over image files, they just open in the browser.
I did find a post regarding the issue, but when I followed the simple instructions on how to remedy the problem...it still did nothing. Can someone tell me what I'm doing wrong?
Here is the page with the multi-upload form:
http://www.ashlynnpress.com/product/letterhead/
(Disregard the other upload buttons)
The supposed solution is to simply "activate" scripts on the page by inserting the following line of code in the header. But again, when I tried that it did nothing.
<?php
gravity_form_enqueue_scripts(2, true);
?>
The "2" refers to the form id and the "true" refers to the AJAX.

Related

CKEditor integration with laravel-filemanager

I'm using CKEditor and laravel-filemanager, which is a nice package written for Laravel. Anyway, I'm having trouble passing the URL of the selected image from the filemanager browser to the URL field in the plugin dialog in CKEditor. I did everything included in the README file of the laravel-filemanager, but I had no luck.
This link says I should use predefined route for 'filebrowserBrowseUrl=' in the CKEditor and the rest of the params in the query string is auto-generated like:
'myRoute/?type=Images&CKEditor=editor1&CKEditorFuncNum=1&langCode=en'.
My problem is that there is no 'CKEditorFuncNum' param in the url. When I click the 'Browse Server' button, pop-up window is opened with url: 'myRoute', with the query string params missing. Anyone familiar with CKEditor and laravel-filemanager knows what's going on when the pop-up window is opened. The 'CKEditorFuncNum' param is retreived by regex and then the function gets executed and the URL is passed to the editor dialog.
Since no URL is set in my case, clearly I'm missing something. If anyone knows something more, please share it with me, 'cause this is very annoying.
Thanks in advance

Facebook like button's iframe not expanded after ajax request

I'm adding a facebook share button to each post on a Wordpress (Using Facebook Share Button New plugin), it works ok for each post/page except when i'm loading them trough ajax, the result it's a normal Facebook like button but the popup (to write a comment) appears inside the button it is not expanded.
To check go to: http://iwanttobeher.com/ and then click on any face at the bottom of the page, then test the like button and you'll see what happens.
I don't know what to do, i tried to FB.XFBML.parse() after loading the content but the result is the same.
Switching to HTML5 didn't help in our case. What did was to remove the FB object just prior to new content being inserted into the page via Ajax:
delete FB;
wrapper.html(response.data);
We reload full pages via Ajax and so new page content recreates the FB object and re-initializes XFBML anyway. Not sure if this workaround would work if we reloaded only parts of the page though.
The original answer is here.
I've managed to fix it by changing the implementation to HTML5 instead Iframe or XFBML using Facebook's tool to generate like buttons: https://developers.facebook.com/docs/reference/plugins/like/

Google Docs spreadsheet form / permissions

I have a Google Doc spreadsheet, which I created a native Form for. I copied the form code, and integrated it into my own page here.
This form was working until I gave the website owner permission to view the spreadsheet.
Since then, when we hit submit, it takes us to the native form page, and does not insert form data into the spreadsheet. (You're welcome to test the form.)
Should providing viewing permissions to the spreadsheet break my own version of the form?
Did you set permissions via docs.google.com? If so then no it should not have changed anything. I got all the way through the form to "Attending
Your response has been recorded." Is this what you are getting as well or do you have a backend error?
If it is not a backend error and I was able to get somewhere you couldt I would suggest clearing your browser chache and possibly resetting your router as sometimes they hold a cache of older versions of a website.
Did the current form of yours manage to work this before? I mean. It is shown that in the native form the questions are text boxes. While in your GUI form, it had radio buttons and check boxes, since you are calling the native post back url?

Like Cannot get FB Like button to work in Dreamweaver

I have followed step 1 and step 2 in order to add the "like" button to a web site that I am developing. I am using Dreamweaver (Cs5.5) to build the site. This button is a "must have" for the person I am doing the site for!
I insert the code EXACTLY as the instructions state and I cannot get the button to appear...what is strange is that I am working off of a template and there is no - there is {body...}...I have inserted the code after using the like button 'builder' at https://developers.facebook.com/docs/reference/plugins
I have tried numerous times to post the code - it will not "translate" thru this venue. Also tried sending image of code - I'm a new user and I am not allowed. So, let me know what I can get you to answer my question - very frustrating.
I insert everything - nothing. I view in iexplorer 8 - nothing. Please help! Thanks!!!!
https://developers.facebook.com/docs/reference/plugins/like-box/
If follow this link, it will take you to a page that will generate the code for you. On the page's code generator form the first step to fill in is headed "Facebook Page URL (?)". In the box below it replace the word "platform" with the name of the Facebook page to want to connect to your web site. This really works. I am also a newbie and it was the first time I had to do this. I entered the code in a div I called "FaceBookFeed".

EditLive! Rich Text Editor - submitting form via ajax

The project I'm working on is using the Java EditLive! rich text editor. I've been trying to make the EditLive form post via ajax, but am having some problems using IE8. Here are the steps we're taking:
Load the main page
The user clicks a link and the EditLive applet is loaded and attached to the page via ajax
The user finishing editing their document and clicks the submit button
The form posts via ajax (we're using jQuery.post())
The EditLive section is reloaded and the EditLive content is correct.
The form immediately posts again
The EditLive content is back to being blank.
Unfortunately (for debugging reasons), this is not happening in FireFox - there is only a single form post and the values are saved correctly.
From what I can tell debugging this in IE8, it looks like the submit event is getting called twice with 2 different forms. My thought is that the applet isn't getting destroyed correctly, though I've tried everything in my power to destroy it.
So I was wondering if anyone has any experience successfully submitting EditLive data via ajax? Or maybe this is just a limitation to the product?
Any help would be greatly appreciated!
I know this is an old issue but you likely want to look at the autoSubmit property of EL:
http://docs.ephox.com/display/EditLive7/AutoSubmit+Property
http://docs.ephox.com/display/EditLive/AutoSubmit+Property
I suspect that by using an AJAXy submit process this is somehow causing you issues with EditLive and its standard behavior. I would try turning off autoSubmit and grabbing the content yourself in your jQuery posting process.

Resources