2

Can someone explain me why i got error !?

<link rel="icon" href="http://designshack.net/favicon.ico">
<link rel="stylesheet" type="text/css" media="all" href="style_modle.css">
<script type="text/javascript" src="js/jquery-1.9.1.min.js"></script>
<script type="text/javascript" charset="utf-8" src="js/jquery.leanModal.min.js"></script>

And this is All script i using in head :

<link href="css/jnice.css" type="text/css" rel="stylesheet"/>
<link href="css/jquery.selectbox.css" type="text/css" rel="stylesheet"/>
<link href="css/style.css" type="text/css" rel="stylesheet"/>
<link href="fancybox/jquery.fancybox-1.3.4.css" type="text/css" rel="stylesheet"/>
<link href="vidplayer/video-js.css" type="text/css" rel="stylesheet"/>
<!-- Added to loanModle   -->
<link rel="icon" href="http://designshack.net/favicon.ico">
<link rel="stylesheet" type="text/css" media="all" href="style_modle.css">
<script type="text/javascript" src="js/jquery-1.9.1.min.js"></script>
<script type="text/javascript" charset="utf-8" src="js/jquery.leanModal.min.js"></script>
<!-- END Added to loanModle END   -->
<script type="text/javascript" src="js/jquery-1.7.2.min.js"></script>
<script type="text/javascript" src="js/jquery.validate.js"></script>
<script type="text/javascript" src="js/jquery.selectbox-0.2.min.js"></script>
<script type="text/javascript" src="js/mod_radio.js"></script>
<script type="text/javascript" src="js/jquery.flip.js"></script>
<script type="text/javascript" src="fancybox/jquery.fancybox-1.3.4.pack.js"></script>
<script type="text/javascript" src="vidplayer/video.js"></script>
<link href='http://fonts.googleapis.com/css?family=Lato:400,700' rel='stylesheet' type='text/css'/>
<script>

This is my BODY :

 <div id="content">
     <center><a href="#loginmodal" class="flatbtn" id="modaltrigger">About Us</a></center>
  </div>
  </div>
  <div id="loginmodal" style="display:none;">
     <p>Text text text ! <a href="http://Satisfactionscript.pl">Satisfactionscript.pl</a> </p>
  </div>
<script type="text/javascript">
$(function(){
  $('#loginform').submit(function(e){
    return false;
  });

  $('#modaltrigger').leanModal({ top: 110, overlay: 0.45, closeButton: ".hidemodal" });
});

And "Uncaught TypeError: Object #<Object> has no method "leanModal" is showing in here :

$('#modaltrigger').leanModal({ top: 110, overlay: 0.45, closeButton: ".hidemodal" });
    });

Pointers and libPcap

Working with pcap I declare the rtp struct and when I try to point to this area of the packet I found that depending on my declaration, it works in a different way.

I wrote this:

struct udphdr *udp;
struct rtphdr *rtp, *rtp2;
udp = (struct udphdr*) (packet + sizeof(struct ether_header) + (ip->ip_hl*4));
rtp = (struct rtphdr*) (packet + sizeof(struct ether_header) + (ip->ip_hl*4) + sizeof(struct udphdr));
rtp2 = (struct rtphdr*) (udp + sizeof(struct udphdr));    
printf("UPD header: %p\n",udp);
printf("RTP header 1: %p\n",rtp);
printf("RTP header 2: %p\n",rtp2);

And the output is:

UDP header: 0x7fcea3802222

RTP header 1: 0x7fcea380222a

RTP header 2: 0x7fcea3802262

Why with the first declaration it adds the 8 Bytes of the UDP header (0x2a - 0x22 = 0x8) and with the other it a lot more.

Thanks

4

1 に答える 1

3

jQuery を 2 回含めています。

<script type="text/javascript" src="js/jquery-1.9.1.min.js"></script>
<script type="text/javascript" charset="utf-8" src="js/jquery.leanModal.min.js"></script>
<script type="text/javascript" src="js/jquery-1.7.2.min.js"></script>

1.7.2 バージョンを取り出して、もう一度やり直してください。

明確にするために編集します。最初にjQuery 1.9.1を含め、jQuery 1.9.1になり$ます。次に、jQuery 1.9.1 のプラグインとなる、leanModal をロードします。次に、jQuery 1.7.2 をロードすると、leanModal プラグインを持たない$新しい jQuery 1.7.2 になります。次に、もはや に存在しない、leanModal プラグインを呼び出そうとします。$

于 2013-10-29T17:34:35.310 に答える