table width="100%" border="0" cellspacing="0" cellpadding="0" class="ttbb5">{if $list or $list|@count neq 0 } {foreach from=$list item=item key=index} 序号 国家 省份 地区 操作 {/foreach} {else} {$index} {if $item.parent_tow_id eq 2}{$item.country} {$item.province} {$item.name} {/if} {if $item.parent_tow_id eq 1}{$item.country} {$item.name} {/if} {if $item.parent_tow_id eq 0} {$item.name} {/if} {/if} {include file=warning.tpl} --暂无数据--
input=text显示数据库排序的值 在文本框修改值点击确定 怎么传入数据库 改变paixu的值
帮帮忙给写一个ajax异步传递的代码吧
回复讨论(解决方案)
用表单提交你会吗?
如不会,请先学习一下
用表单提交你会吗?
如不会,请先学习一下
没明白什么意思啊 我写的不对么? 还是 ajax必须要用表单提交啊
用表单提交你会吗?
如不会,请先学习一下
这么写对不?
这里如果列表,你的名字不能重复,或者你改为name="p[]"
这里如果列表,你的名字不能重复,或者你改为name="p[]"
改成name="p[]"了 那ajax我写错了么? 我试验好几遍,不知道错在哪?
神呐 帮帮我吧 要死了 要死了 要死了
这个写个ajax很难么? 都不会啊?
不是很难。
不是很难。
服了,真心的。 我都关注你微信了大哥 你也不给帮忙 不够意思
http://bbs.phome.net/showthread-13-130691-0.html
有例子
http://bbs.phome.net/showthread-13-130691-0.html
有例子
这个例子很生动, 我先注册 然后下载了文件,看到代码发现其实我两不是一个类型的,对我这个他根本不适用啊,smarty都是那么写ajax的么? 我怎么感觉他这个文件缺点什么似的啊 ?那个save_ajax.php 我还能看懂 别的真是磕了
http://bbs.phome.net/showthread-13-130691-0.html
有例子
{
data_q = "actiontype=" + act + "&name=" + txt.value + "&id="+id+"&tid="+Math.random(10);
///document.write("save_ajax.php?"+data_q);
if(val != txt.value)
{
$("#tipmsg").show();
$.ajax({
type: "GET",
url: "save_ajax.php",
cache: false,
data: data_q,
success: function(msg){
obj.innerHTML = msg;
$("#tipmsg").hide();
}
});
}
else
{
obj.innerHTML = val;
}
} 套这个?