Comments (10)
Did you include jQuery in your layout? The problems seems to be that...
from nested_form.
Yes, I include the jQuery and jQuery-ui
from nested_form.
Hmm and did you include the jQuery file before the nested form one? This is really weird...
Can yo show us your JavaScript include tags?
from nested_form.
This was the problem, my file was jquery after nested_form.
Thanks for that.
from nested_form.
Oh great. Glad it's working now!
Nicolás Hock Isaza
On Apr 22, 2011, at 2:47 PM, [email protected] wrote:
This was the problem, my file was jquery after nested_form.
Thanks for that.
Reply to this email directly or view it on GitHub:
#34 (comment)
from nested_form.
Hi Guys,
I am facing the following problem in jQuery.
I have a link as below. What I want is that when I click onto the link, a jquery fires showing me the alert message.
Note: I dont want to use onClick.
"link1"
jQuery what I wrote was
$(document).ready(function(){
$('a.taglink').click(function(event){
event.preventDefault();
alert("I am clicked");
});
});
The problem is that I am not even able to get the alert message. I have tried .live and .bind too. But still not working, I dont know where I am making the mistake
from nested_form.
Do you get any errors on the Chrome development tools console? I don't see anything wrong with that code.
from nested_form.
Ohh yes. It is giving me the following error.
Uncaught ReferenceError: jQuery is not defined facebox.js:319
(anonymous function)
from nested_form.
I made the correction in facebox.js but still I am facing the same problem. Instead of getting alert message, I am getting redirected to another page after clicking onto the link.
from nested_form.
Hi guys, I solved the problem.
$('a[rel="qtags"]'.live('click',function(event){
event.preventDefault();
alert("I am clicked");
});
defining an attribute (rel="qtags") in anchor tag is working for me.
Thanks for giving me your time.
from nested_form.
Related Issues (20)
- Can I add different subform (using STI)? HOT 3
- Remove labels
- Cusomized forms
- link_to_add make large index number
- wrong field name for the nested _destroy field
- Incremental counter for nested fields HOT 2
- nested_form shows extra fields after error messages HOT 1
- -
- Limit how many nested_attributes can be added? HOT 1
- undefined method `capture_position=' for nil:NilClass HOT 1
- link_to_remove is not deleted vale only hide that so when we update that send hide value in parmeter HOT 1
- nested_form for recursive Model HOT 1
- on clicking link_to_add nested forms not shown in rails HOT 1
- Sort nested form in edit view based on column HOT 1
- Bootsy wysiwyg editor not supported for nested forms HOT 3
- reject_if if 2 attributes are blank HOT 2
- Callbacks nested
- Link to remove not working as expected when :nested_wrapper is false HOT 1
- When I cleck on <%= f.link_to_add "Add a Step", :steps %>, nothing happens.
- Link_to_add, data: { target: } not working for a bootstrap modal pop up HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from nested_form.