Giter Site home page Giter Site logo

Comments (10)

nhocki avatar nhocki commented on July 30, 2024

Did you include jQuery in your layout? The problems seems to be that...

from nested_form.

lucasallan avatar lucasallan commented on July 30, 2024

Yes, I include the jQuery and jQuery-ui

from nested_form.

nhocki avatar nhocki commented on July 30, 2024

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.

lucasallan avatar lucasallan commented on July 30, 2024

This was the problem, my file was jquery after nested_form.

Thanks for that.

from nested_form.

nhocki avatar nhocki commented on July 30, 2024

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.

pankajjoshiacs avatar pankajjoshiacs commented on July 30, 2024

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.

nhocki avatar nhocki commented on July 30, 2024

Do you get any errors on the Chrome development tools console? I don't see anything wrong with that code.

from nested_form.

pankajjoshiacs avatar pankajjoshiacs commented on July 30, 2024

Ohh yes. It is giving me the following error.

Uncaught ReferenceError: jQuery is not defined facebox.js:319
(anonymous function)

from nested_form.

pankajjoshiacs avatar pankajjoshiacs commented on July 30, 2024

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.

pankajjoshiacs avatar pankajjoshiacs commented on July 30, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.