Closed (duplicate)
Project:
Examples for Developers
Version:
7.x-1.x-dev
Component:
AJAX Example
Priority:
Normal
Category:
Bug report
Assigned:
Reporter:
Created:
23 Jan 2011 at 23:17 UTC
Updated:
23 Feb 2012 at 09:35 UTC
I get the following error in Chrome, when trying out the ajax link example (http://api.drupal.org/api/examples/ajax_example--ajax_example_misc.inc) and I don't get what's wrong. Can somebody help me, please?
An error occurred while attempting to process drupal-7.0/?q=ajax_link_callback/ajax: Object function (j,s){return new b.fn.init(j,s)} has no method 'fieldValue'
Comments
Comment #1
jhodgdonMoving to the Examples for Developers issue queue.
Comment #2
rfayI confirm this problem using Chromium on Linux.
I suspect this may be a Drupal core issue.
Comment #3
rfayI just checked with FF 3.6, and it also fails there. On FF 3.6 the error is
Will ask katbailey to look at this before we pursue it in core.
Comment #4
katbailey commentedSo, apparently we need jquery.form.js even just for a link that's being processed with the use-ajax class :-(
My memory is a little hazy on this but I do remember the fix for lazy-loading js files being very tightly bound up with form stuff (because it was doing everything on .beforeSubmit())
It seems deeply wrong that we'd need to add jquery.form.js to the page for this link example to work but I will go ahead and do that if that's all that can be done. I should also add an example that shows how do this with a link that has been defined as a renderable array with the #ajax property.
Comment #5
moestavern commentedI see. I hope this can be resolved in future versions as the ability to quickly use AJAX with links is somewhat essential to me.
Looking forward to the examples, katbailey. Thanks
Comment #6
moestavern commentedAdding
results only in:
Comment #7
katbailey commented@moestavern, are you still testing this with the link example in ajax_example module? It works fine for me. If you're getting a 404 then that has nothing to do with jquery.form.js.
Comment #8
moestavern commentedYes. I'm getting that last error when I additionally load js.form.query in the example. I'm new to Drupal, so I'm slightly at a loss to why this might happen. Any ideas where I could start looking?
Comment #9
rfaySee #1018714-19: Image Upload Widget Not Working in IE8. I think the problem will be solved when that one goes in. Am I right?
Comment #10
katbailey commented@rfay it certainly sounds like it, judging by eff's description. I will test it this evening. If that is the case, there's nothing to be fixed in the ajax_example module. Though I do want to create the other type of link example. Will add that as a separate issue and assign it to myself.
Comment #11
katbailey commentedOK I can confirm that the patch in #1018714: Image Upload Widget Not Working in IE8 solves this problem without the need for any change in examples module itself.
I've submitted a patch for the renderable array link example at #1041526: Add a link example that uses a rendered array link instead of the use-ajax class.
Comment #12
rfayThanks katbailey!
Marking this as duplicate of #1018714: Image Upload Widget Not Working in IE8, as no further action seems to be required.
Comment #13
moestavern commentedjust wanted to thank katbailey real quick. figured it all out with the help of the patched example. thanks!
Comment #14
jebbushell commentedI'm still getting it on the "use-ajax" example. I'm using 7.x-1.x-dev dated 2012-feb-20. The render array example is fine.