JQuery :: Unable To Use BlockUI And The Form Plugin
Aug 20, 2009
I'm calling blockUI and then running ajaxForm on my whole page form. BlockUI is firing an overlay (with form field content) but only after the form has been ajaxed. Because of this my fields aren't seen as in the form and so subsequent form submits fail. Firebug says: form is null, /assets/js/jquery.form.js, Line 364 (form.clk = this;) The longer version:The javascript for these events are being returned to taconite within<eval> blocks. They are coming back in the below order: blockUI on whole page I then call a custom function which contains the "$('#page- form').ajaxForm({ dataType: 'xml' })"; When I alert inside that custom function it occurs before any blockui overlay is shown. I'm surmising that this is breaking the form submit for elements within the blockui message (which are actually already on page but hidden).
I've tried adding alerts before and after blockui is called and they run in the correct order so I'm guessing that perhaps blockui queues itself to run somehow. BlockUI doesn't have any after block callbacks that I'm aware of. I'm wondering if I can add a beforeSubmit callback to the ajaxForm method that calls itself to update the form but that just feels a bit dirty. I use the framework that I've put together extensively and it's only when adding blockui that I have this issue so I'm (at least fairly) sure that it's not a PEBKAC issue.
View 1 Replies
ADVERTISEMENT
Sep 7, 2010
I'm trying to get jQuery Form Plugin to work. So first things first.
Is there something wrong with this script? [code]...
View 2 Replies
View Related
Jan 6, 2010
in this plug-in I need a function like onUnblock but on completedfadein..
View 1 Replies
View Related
Aug 21, 2009
I'm trying to implement the Growl option for the blockUI plugin, the "hard" way ( as seen here: http:[url].... second to last example). The reason why I'm going the "hard" way is because I'd like to have multiple Growl messages - one for an error,one for a success, etc, all of which have different background images / styles (ex: a red X for error, a green checkmark for a success).The "easy" growl method, while allowing for different text content,only allows for one style. Thus I'm trying to get around this limitation using the "hard" way:
$.blockUI({
message: $('div.growlUI'),
fadeIn: 700, [code]...
subsequently adding different styles in my stylesheet. Yet I get an error that says "data.parent = node.parentNode", when I try and run the above code. Has anyone had any luck getting *different* growl messages with different styles/images in them to run on the same page?
View 1 Replies
View Related
Aug 2, 2009
<html><head><style type="text/css"><!-- DIV {margin:0px;} --></style></head><body><div style="font-family:arial,helvetica,sans-serif;font-size:12pt">Hello
i'd like to know if it's possible change de message while the page is block by "blockUI" jquery plugin. I've tried a lot of things, but none was good. One thing i've tried was using CSS selectors like:
$('blockUI blockMsg blockPage').innerHTML
but it hasn't worked.
<font size="2"><span style="font-family: verdana,helvetica,sans-serif;"></span></font><div>
[Code].....
View 2 Replies
View Related
Feb 1, 2011
I noticed a slight usability bug with blockUI. when we block, with a message div - the page is still scrollable. however the message div that comes up, stays where it is, as user scrolls the page. So for example, if the vertical screen resolution is low, the user can not see the bottom of the message div, and in my case the message div has some appept or cancel buttons, which makes my UI unusable?
Are there any workarounds to this solution, other then placing the message div to the top of the page?
View 1 Replies
View Related
Dec 2, 2010
I have a very recent version of JQuery Treeview 1.4.1 & also a very recent version of JQuery UI.
I tried a lot but couldnt fix this problem. I have an initTree(), that loads tree like this:
function initTrees() {
$("#products").empty();
$("#products").treeview( {
url : "getTestDataInTreeView.action",
[Code].....
View 1 Replies
View Related
May 6, 2009
m relatively new to Jquery and have come accross these two plugins.Having looked at the ajax examples offered for the form plugin i wasintruiged to find out how i could go about validating the form usingthe formvalidate plugin during the beforeSubmit callback.Ive seen that you can validate the ajaxform as shown in the followingxample.malsup.com/jquery/form/#code-samplesHowever i'd like to use the formvalidate as it offers alot more....
View 1 Replies
View Related
May 5, 2009
Having looked at the ajax examples offered for the form plugin i was intruiged to find out how i could go about validating the form using the formvalidate plugin during the beforeSubmit callback. Ive seen that you can validate the ajaxform as shown in the following example. [URL] However i'd like to use the formvalidate as it offers alot more..
View 1 Replies
View Related
May 7, 2009
I am moving all of my scripts from mootools/scriptlicious to jquery.I was easly able to submit a form and update a div (based on the output of the php file) as follows:
<script type="text/javascript">
function send(){
var params = Form.serialize($('commentsForm'));
[code]....
View 2 Replies
View Related
Dec 10, 2009
Within an aspx page, I have a form with asp controls (text boxes) that I'm loading within a jQuery modal popup dialog. Once the user fills out the form and the register button is clicked in the modal form, it invokes a code-behind function, which seems to be working fine. However, the problem I'm facing is in the code-behind function; none of the field values in the modal popup form are being passed to the code-behind function.I was unable to attach some snapshots directly to the post, so I uploaded it at the following urls:
View 2 Replies
View Related
Apr 23, 2010
I'm was able to successfully use your plugin for firefox, safari, chrome. When the form submits the request with file upload, here is the html I send back to the browser (via Rails): <textarea>{'status': 'success', 'avatar_url': '<%=@user.avatar.url(:medium)%>'}
View 1 Replies
View Related
Jul 11, 2011
We're using Malsup's form plugin v2.82 and jQuery core 1.6.2. We're having issues in IE7 where, on a form with file upload, form fields are being dropped before the form is submitted to the server.We tracked it down to the `fileUpload` function, specifically line 196 where each field in the form data has `.attr('disabled',false)` run against it. If we change this to`.prop('disabled',false)` it all works fine.I don't see a clearly marked place to submit bug reports for the form plugin, and wanted to verify that others see this as well,
View 6 Replies
View Related
Aug 19, 2010
I'm having troubles with an existing J2EE application (which uses Dojo) and in which I'm gradually introducing jQuery. The specific issue is with the malsup Form plugin and the JSON returned from a form submission: the error callback is always called, regardless of what happens on the server side, and the error is always "parsererror". I'm using jQuery 1.4.2 and the 2.45 version of the malsup Form plugin.
For example, given the following code:
$(document).ready(function() {
var options = {
dataType: 'json',[code]....
the server receives the submission and handles it without errors, then in the browser I always get the same alert from the processAddressEditSubmitError() function, with an "Invalid JSON" message:
pStatus=parsererror
pErrorText=Invalid JSON: {"nickname":"trytrez","success":"success"}
However, the JSON looks OK for me (and http:[url]...agrees that it is valid).
View 12 Replies
View Related
Jan 8, 2010
I'm trying to get an upload popup working with the jQuery form plugin[URL].. When I click a link I load a form html from the server and add it to a container div by setting the div's html attribute. I then attach a submit handler to the form so I can call the ajaxSubmit function of the form plugin.
[Code]...
View 1 Replies
View Related
Aug 24, 2010
Malsup's most excellent and comprehensive Form plugin has me completely stuck on just one thing.Take a look at this: http:[url]....At the bottom are a variety of submit buttons, and when you click one, it knows which one has been clicked.And I've been through the js and the source and the examples and I can't figure out how the bleep it's done!I'll tell you why I'm asking, then perhaps you can probably tell me I'm doing it wrong anyway!Let's say a blind person logs in, and want to edit their presets.I don't want the form to be too complex or clever or ajaxy, as screenreaders don't like that, so it just iterates through as many presets as they have, and populates a form with edit boxes.But there's no point "pushing back" 29 unchanged items just to edit one row.
So my idea was I'd just "fieldSerialize()" the details of the row that was currently being edited and submit that to my little php routine that updates the db. Then they can do a refresh just to hear the list again.The js looks like:
$(document).ready(function() {
$('#myForm').ajaxForm(function() {
var queryString = $('#myForm').formSerialize(); [code]....
All works fine like that. But if I change line 3 to: var queryString = $('#myForm :button').fieldSerialize(); it doesn't work. I've also tried:
'#myForm :button'
'#myForm .button'
':button'[code]....
Maybe I should just generate as many separate forms as there are presets, but then I'm going to need as many ready(function)'s as there are rows, which is going to be very messy.
View 6 Replies
View Related
Apr 26, 2011
I'm using the Form Plugin to allow a user to upload a photo.The user clicks on a link in the page and I display a dialog collecting the file and description.It works great the first time, but when they do it again the description and a hidden field is not passed n the form.How can I get the form to work more than once without reloading the page?I call this on the click of the link on the page.
var options = {target: '#divToUpdate', success: PhotoUploaded};
$('#photoForm').ajaxForm(options);
View 3 Replies
View Related
Apr 22, 2011
I have tried the jquery form plugin as in the examples and it worked pretty well.
Then I tried to handle the following form:
<form
id
=
"loginForm"
[Code].....
View 1 Replies
View Related
Jul 26, 2007
I needed access to the form that's being submitted in the options.success() function (in order to hide the form after successful submission). I ended up modifying line 222 in jquery.form.js. I added $form as the third argument for all callbacks, like so:
options.success = function(data, status) {
for (var i=0, max=callbacks.length; i < max; i++)
callbacks[i](data, status, $form); // added $form as third argument.
};
Is there a better way of accessing the form from the callbacks or would the plugin developer(s) consider adding this or another similar modification to the code?
View 3 Replies
View Related
Jun 8, 2009
I have my form working great as long as my submit button is contained within the form tags. But the design calls for the submit button to be outside of the form. Sample code and diagrams are below.
<form>
my form here
</form>
<div> </div>
<div> Submit button </div>
[Code].....
View 5 Replies
View Related
Jul 23, 2009
I am currently trying to validate a form before sending it with the jQuery Form Plugin.I can get them working but it is always one or the other, I can't get them both working.
[Code]...
View 2 Replies
View Related
Jan 21, 2010
I want to be able to add fields to a form with JavaScript, already had a thread about this in the PHP section and someone gave me some code. But that didn't seem to work :(So here is some other code:JavaScript:
var my_div = null;
var newDiv = null;
function addElement()
[code]....
View 1 Replies
View Related
Feb 12, 2010
I have a problem finding Form in javascript.
document.getElementById('MyForm');
return "HTMLUnknownElement". But if I add a dummy form previous for the one I actually want to find, then:
document.getElementById('DummyForm'); returns "HTMLUnknownElement", and then document.getElementById('MyForm'); Returns "HTMLFormElement", that is what need. But this unknown element, the dummy form creates a lot of other problems with my site so this solution is no good for me. Why cant I find my Form?
View 5 Replies
View Related
Mar 24, 2010
Have a asp.net mvc project using jquery-ui-1.7.2. and BlockUI. When I changed jQuery version from 1.3.2 to 1.4.1, the CSS pertaining to the block ceased to render. The functions fired (verified by in-line alerts) and firebug had no complaints. Moved back to 1.3.2 and the blocker rendered perfectly.
View 2 Replies
View Related
Jun 2, 2009
I posted this in the UI group and was told to put it in here... My problem is that I have a function that is to call blockUI both upon login and logout. BlockUI only fires upon logout.
Here's my code:
**code**
function Processing(dataString,l_processing,control)
{
if (l_processing == "yes")
{
[Code].....
View 7 Replies
View Related
Sep 22, 2010
When using blockUI, sometimes I get an error on line 462 of the code, near the end of the handler function:
This may or may not be due to firing multiple .block() events on the same element.
The problem seems to be limited to Firefox; IE8 & Chrome 6 work without an error. I have tested this on multiple Firefox installations.
I have a fix that checks to see if opts has been defined as a closure prior to its use:
If you could include this in your next version, that'd be great!
View 4 Replies
View Related