1

guys! I was trying to add flexigrid plugin into my html, but i have problem that

Uncaught TypeError: Object # has no method 'flexigrid' showed in chrome console

my code is

<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />

<script src="/houtai_xiangmu/js/jquery-1.8.2.js" type="text/javascript"></script>
<script src="/houtai_xiangmu/js/flexigrid.js" type="text/javascript"></script>
<script src="/houtai_xiangmu/js/flexigrid.pack.js" type="text/javascript"></script>
<script src="/houtai_xiangmu/js/jquery-1.2.3.pack.js" type="text/javascript"></script>

<script type="text/JavaScript">
    $(document).ready(function(){
    alert("123");
    $("#flex1").flexigrid
            (
            {
            url: 'post2.php',
            dataType: 'json',

I tried add alert in flexigrid.js file, it works!


Lua detect packets sent from the same host to a multicast group?

I'm using the lua socket library to communicate to a multicast group. The problem I'm having is whenever a host sends a packet to the group, the socket that's listening to that group will receive its own traffic.

At first, I figured all I would need to do is, after sending a packet for the first time, is grab the address:port via udpSocket:getsocketname() and compare that with udpSocket:receivefrom() and don't handle messages that match. However, these don't match at all. :getsocketname() will report "0.0.0.0" as the ip, and the ip that comes from :receivefrom() is my actual ip ("something.not.all.zeroes").

I don't know a good way to handle this other than try and send some data along with each packet that can uniquely identify it, and don't handle the packets that originate from the same host.

4

0 回答 0