Author Topic: [Resolved myself] my JS file isn't being called.  (Read 1055 times)

Offline Sim

  • Level 13
  • *
  • Posts: 104
  • Reputation: +1/-1
    • View Profile
    • Online RPG Creator
[Resolved myself] my JS file isn't being called.
« on: February 24, 2011, 04:39:20 PM »
inside my html i got

Code: [Select]
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.4/jquery.min.js" type="text/javascript"></script>
<script src="jquery.form.js" type="text/javascript"></script>
 


inside my jquery.form.js I got
Code: [Select]
$(document).ready(function(){
alert("test");
$("#btnFight").mouseup(function () {
alert("test");
$("#fight_status").html("Checking Oppoments...");
$.ajax({
     url: "battle_action.php?action=fight",
     global: false,
     type: "POST",
     data: $("#form1").serialize(),
     dataType: "html",
     success: function(msg){            
      $("#fight_status").html(msg);        
     },
     error: function(msg) {
      $("#fight_status").html(msg);
     }
   });
});

});


It shows no alerts.

problem fixed ;]
« Last Edit: February 24, 2011, 04:43:53 PM by Sim »

Offline Nox

  • Level 35
  • **
  • Posts: 767
  • Reputation: +12/-2
    • View Profile
Re: [Resolved myself] my JS file isn't being called.
« Reply #1 on: February 25, 2011, 02:20:13 AM »
problem fixed how?
Meet us at an IRC irc.freenode.net #bbg as well
https://vimeo.com/36579366 (a must-watch) | Join BOINC - no longer a hype, but you can help never the less

 


SimplePortal 2.3.3 © 2008-2010, SimplePortal