JQuery :: Regression: Form Plugin AjaxForm Cannot Access XML Return Data In Opera
Jan 26, 2011
I stumbled on this problem while testing StatusNet for our next release; we use jquery.form's .ajaxForm() to do various AJAX form submissions, including the primary message-sending form which includes a file upload control.
We've not seen problems before, but since upgrading from an old Form plugin version 2.17 to 2.49 a couple months ago, I've noticed our development branch no longer works properly in Opera: the actual submission goes fine, but we're unable to access the XML return data (which usually contains HTML fragments to put back into the UI).
I have a test case which demonstrates this at [URL] (source of the main page & submit handler are included there), using current jQuery 1.4.4 and jquery.form 2.52.
Under Firefox 4.0b10 and other browsers, the forms submit correctly, and we can read nodes and text out of the returned XML just fine.
But on Opera 11.00 and 10.63, the submission goes through but we get back an HTML document containing only "<head></head><body></body>". On Opera 9.63, it also includes the text "Blank page."
I tried to trace this down in jquery.form's history, and the trouble seems to have started around 2.39 with a commit ironically titled "iframe load fix (mostly for Opera)", which changes the event handling for forms submitted via iframe: from that version on, a 'load' event handler is added directly as an onload attribute on the iframe's source, whereas previously it was added with attachEvent or addEventListener.
It looks to me like the iframe is throwing a load event for the "about:blank" page, instead of for the submission.
I can revert back to 2.17 or another working version for now, but I'd like to make sure this is fixed upstream;
View 4 Replies
ADVERTISEMENT
Jan 28, 2011
I'm having a problem with same origin policy protection using JQuery 1.4.4 and the jquery.form.js AJAX plug-in. I have an AJAX contact form which works fine so long as visitors preface URL's they type in with "www". But if they navigate directly to a URL on my site (not using www), the URL resolves OK but the URL doesn't match what I use in my AJAX form. In Chrome, this results in a console error:
[Code]...
View 2 Replies
View Related
Apr 21, 2011
Simple enough. This beautiful plugin is what I"m using:[URL]..The problem is, it has no documentation on how to detect a post failure. I know these are rare, but I'd like to code defensively.
View 6 Replies
View Related
Jun 28, 2010
[URL] I'd also like to use this plugin, so I don't have to create complex validation rules. validation plugin [URL]Trouble is, I can't figure out how to prevent form submission without first checking to see if the form is valid. My attempts so far have been based on using submit() to prevent submission of the form if validations valid() method returns false. But this doesn't seem to work. If I use ajaxForm, the submit() function seems to work differently. A form will still be submitted, despite a return false. validate has a valid() method that returns false if the form fails validation. How can I submit the form only if valid doesn't return false?
[Code]..
View 1 Replies
View Related
Oct 5, 2011
Relatively new to jQuery but have a problem with getting data to display.Using a webform with 2 forms. User slects and inputs data into the first form, clicks a button then using jQuery .ajax submits the serialized data to a php script. The script processes the input into multiple paragraphs of text which is based on the input from the first form.The data is returned to the webpage and displayed in a text area (of the 2nd form) where the user can edit it to fine tune the wording. The 2 forms are displayed in different tabs so it is easy to move back and forward between the 2 forms.
The problem occurs when the user goes back to the first form and enters or selects different text and then click the submit button to generate a whole new text for insertion into the textarea on the second form. For certain fields the modified text is displayed.However if the whole of the text in the textarea is deleted, then the user clicks the submit button to re-generate the text content area then nothing at all is ever interted into the textarea. If have user alert to check that data is returned from the php handler and this text is correct. BUT when I click on the tab to see the textarea (id is "draftrec") there is no text inserted. The relevant function is below and the line that should insert the text into the textarea is:
$("textarea#draftrec").html(data).show();
//------------------------------------------------------
$("form#form1").submit(function(e){
[code]....
View 1 Replies
View Related
Jul 22, 2011
I am writing a small data entry screen that will post the form data to a page and return a message. But i cannot get the Success or Error functions working properly.
Here's the code where strData is the posted querystring of:
I'm not sure whether it should be in a form and using the onsubmit or click of a button.
View 2 Replies
View Related
Jul 23, 2005
I'm getting an incredible behaviour of internet explorer.
I have a generated html page with one form and many input of checkbox
type.
Those checkbox are grouped in 4 lists and each list of checkbox
contain checkboxs with the same name so I can easily retrieve on my
server side (java) wich checkbox are checked with a
request.getParameterValues(). (Each checkbox has a value corresponding
to the id of the row)
Anyway that's not on the server that the problem is.
Here it comes. When more than 132 checkboxes are checked, my form
submit generate a javascript error. When 132 or less checkboxes are
checked it submit without problem.
I tested the page with firefox, the problem is not here with that
browser and it can submit liek for example 400 checkboxes.
Then I tried to make a workaround, on submiting I browse the elements
list of my document and I create a big string containing all the ids
checked and then I uncheck all checkboxes and submit. there again it
fail to work.
I'm really affraid I'm looking at a nasty bug of Internet explorer
here and I'm going to engineer a more deep workaround if noone can
point out a solution to me.
I should precise that I have no iframes on that page. I indeed saw
that some people got 'access is denied' on submit form but in my case
it works when not too much data is going to be submited !
View 3 Replies
View Related
Jul 14, 2010
I found this formwizard script example online but I don't know how to use the data with php for emailing and saving to database for example.The script attaches the result to <p id="data"></p> like this
firstname=&surname=&day=DD&month=MM&year=YYYY&lastFour=XXXX&countryPrefix=+358&areaCode=&phoneNumber=&email=jasonhoefie@hotmail.com&username=&password=&retypePassword=
Attachments
jquery-formwizard.zip
Size : 48.6 KB
Download : 422
View 4 Replies
View Related
Jun 27, 2011
I am using .ajax() to access cross-domain data using JSONP. Because I need to be able to cache the data I want to use a static name for thejsonpCallback function, so I have set the jsonpCallback option in the .ajax() request. However that appears to requires a global function whereas the auto generated function didn't (well maybe it did but that was all hidden from me).
I definitely need to be able to cache the results. Ideally I wouldn't have a global function handling the data. Is there another way to do this? If not what is the best practice way to go about using a global function these days and how do I provide it with the context of the object/module it was called from - which is where the data is needed?
View 2 Replies
View Related
Jan 3, 2006
Is my understanding correct that due to the lack of CSS2 support Opera doesn't allow any access to inline/linked style declarations?
<style type="text/css">
..foo {
color: blue;
}
</style>
....
<div class="foo"...
There is no way to get a reference to the "foo" rule or to
change/remove it?
View 4 Replies
View Related
Oct 1, 2009
I'm tryng to develop a link tracker, something like google analytics. The goal is to get a command like this:
$('html').trackAllLinks(optional options);
$('a').trackAllLinks(optional options);
Now i developed a javascript that could do just what i need but the problem is it doesn't work in every browser as it should be. Because i want to track a link click i need to make a request to my server to say that the link has been clicked. The first problem i had was that i needed to make a cross domain ajax call. But this is fixed by using JSONP. Now my code looks like this:
[Code]...
The first idea was that i wouldn't do anything in the success of the jsonp call and just let the request go, but because this didn't work when i clicked on an external link, i changed it to wait on a response before opening the link. The problem with this code is that it doesn't work in Opera, no request is being send to the server Now i know that JSONP mimics the ajax call by adding a script tag to the page which loads the script of the given url. Now i think when i do this in Opera the dynamically loaded javascript isn't executed. In Firefox, IE, Chrome, Safari it works but not in Opera.
Another idea i had was by dynamicly adding an image to the page. But this has the same problem in Opera and i was unable to track an external link in Safari and Chrome (Webkit.
View 1 Replies
View Related
Aug 20, 2009
With the autocomplete plugin and using Opera; When the input value, is not found in the suggestions the cursor moves to the beginning of the text,
View 2 Replies
View Related
Jan 20, 2010
im using the validate plugin with the meta data plugin
jQuery(document).ready(
function(){
jQuery("#com-createForm").validate({ meta: "rules" } );
});
and then in the html i have for example
[Code]...
View 2 Replies
View Related
Mar 16, 2011
I got a simple plugin as below:
Code JavaScript:
$.fn.ajaxSubmit = function(options){
var submisable = true;
}
I want to to able to access the variable submisable from outside the plugin like doing something like below:
Code JavaScript:
$(function(){
$('form').ajaxSubmit();
$('div').click(function(){
[Code]....
View 2 Replies
View Related
Feb 13, 2011
i have a unusual cycle on my page and it loads slides from url and after arrange and sorted for slide all i need is startingSlide property to accept function return
like this
startingSlide:test();
function test(){
return 0;
}
i look into jquery cycle and it was accept that parameter using parseInt() parseInt() cannot show very well with function returns also like thisparseInt(test());got NaN
View 2 Replies
View Related
Oct 21, 2009
I'm trying to access a variable that's set when the plugin is initialized. I'd also like to change that variable on the fly.
(function($) {
$.fn.plugin = function(options){
// default settings
var settings = {
[Code].....
View 4 Replies
View Related
Oct 5, 2011
I am pretty excited in creating multiple methods within a single plugin. But how do we access a particular set of objects from any given method? Here is what I have so far and all i want to do is access the objects 'location' and 'background' when the DOM is ready...
*jquery plugin*/
(function($){
//call multiple functions inside of one large plugin that do different things!
var methods = {
[Code].....
View 2 Replies
View Related
Dec 15, 2008
What's a good tool to create a regression test for JavaScript app?I could probably write a bookmarklet or something running from another frame, but I am hoping there is already existing tools for this.
View 3 Replies
View Related
Apr 4, 2011
I'm showing a form in a Simplemodal dialog in combination with ajaxForm() to redirect the resulting page to another DOM element. The success function of ajaxForm() closes the modal dialog.The resulting page in the other DOM element has no access to the jquery function $(). When I load a page using ajax into the DOM element there is no issue access the jquery function, this only happens when I redirect the resulting page from the ajaxForm() function.
View 3 Replies
View Related
Jan 4, 2010
I've just developed a plugin that mimics the combo box control, albeit it's a special one. That's being defined as follows:
function
$
{
$.fn.extend
{
[Code].....
But this isn't possible, since the $myList variable is a jQuery object. So I just defined some functions, say, $.smartList.getSelectedValue and the like... but in this approach, I've to pass the jQuery object to this functions as a mandatory parameter and this really sucks. i.e., I need to get the selected value of $myList this way:
var value = $.smartList.getSelectedValue
$myList
;
View 2 Replies
View Related
Jul 25, 2011
I'm using jQuery Tooltip plugin (url) and need to access title attribute of element which plugin is applied to. As you know all title attributes are removed when tooltip function is applied, is there any way how to access them?
View 1 Replies
View Related
Aug 25, 2010
I'm getting a database error trying to access the validate plugin documentation. [URL]
Error:
A database query syntax error has occurred. This may indicate a bug in the software. The last attempted database query was:
(SQL query hidden) from within function "MediaWikiBagOStuff::_doquery". MySQL returned error "1205: Lock wait timeout exceeded; try restarting transaction (localhost)".
View 1 Replies
View Related
Dec 21, 2010
I've got an ajax call that runs a password verification. The username/password work fine but I can't get the php to send data to to the AJAX, instead it just echoe's the result in an alert box code...
View 2 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
Nov 26, 2011
I'm currently usingMalsup's Cycle plugin. I am just wondering is it possible to have cycle plugin return the index number of the currently displayed slide? I want to change the content of the page when a specific slide is active. Don't know how to achieve that..
View 1 Replies
View Related
Aug 10, 2010
few days ago I wanted to post a follow-up to an issue reported on my plugin on [URL] just to find out some really weird things are happening there.
First I couldn't post the reply with an error telling me I didn't select any project. So I checked the dropdown list of projects to manually find the Reel project. It isn't in the list.
Then I tried to search for Reel project. With no luck.
I also tried a breadcrumb link on the issue page which finally led me to my project page - [URL] where I saw another unusual thing - a pink background underlying the page.
So I filed an issue there -[URL]
But things got much worse today...
Now when I'm logged in i see "ACCESS DENIED" nearly anywhere I look - jQuery Plugins Website Issue Queue, my plugin homes, my issues, the support request I filed, even on the jQuery Plugins homepage.
Under My Projects there's "You have no projects". Even though my other plugin - [URL] - seems to still exist
I have two projects there and even when I'm not logged I'm able to see just one (longclick), the other (reel) gives me access denied.
I'm also denied to post a follow-up to my support request, hence I'm posting here.
some jQuery Plugins Website insiders? what the heck is going on with my account and my Reel project?
View 6 Replies
View Related