Foxtable(狐表)用户栏目专家坐堂 → [求助]图片压缩


  共有5184人关注过本帖树形打印复制链接

主题:[求助]图片压缩

帅哥哟,离线,有人找我吗?
有点蓝
  1楼 | 信息 | 搜索 | 邮箱 | 主页 | UC


加好友 发短信
等级:超级版主 帖子:107783 积分:548260 威望:0 精华:9 注册:2015/6/24 9:21:00
  发帖心情 Post By:2022/10/17 16:58:00 [显示全部帖子]

页面截图看看

另外httprequest,上层页面的完整代码发上来看看

 回到顶部
帅哥哟,离线,有人找我吗?
有点蓝
  2楼 | 信息 | 搜索 | 邮箱 | 主页 | UC


加好友 发短信
等级:超级版主 帖子:107783 积分:548260 威望:0 精华:9 注册:2015/6/24 9:21:00
  发帖心情 Post By:2022/10/17 17:14:00 [显示全部帖子]

提交数据的js代码发上来看看

 回到顶部
帅哥哟,离线,有人找我吗?
有点蓝
  3楼 | 信息 | 搜索 | 邮箱 | 主页 | UC


加好友 发短信
等级:超级版主 帖子:107783 积分:548260 威望:0 精华:9 注册:2015/6/24 9:21:00
  发帖心情 Post By:2022/10/17 17:29:00 [显示全部帖子]

Dim e As RequestEventArgs = args(0)
Dim wb As New weui
Dim PageNumber As Integer = e.GetValues("page")
Dim PrimaryKey As String = e.GetValues("key")
Dim PageURL = "faceid.htm?page=" & PageNumber

If e.PostValues.Count = 0 AndAlso e.Files.Keys.count = 0 Then '生成编辑页面
    Dim dr As DataRow = DataTables("USERSlist").SQLFind("[工号]=" & PrimaryKey)
    If dr IsNot Nothing Then
        wb.AddForm("", "form1", "faceid.htm?" & "page = " & PageNumber & "&key = " & PrimaryKey)
        '
……
Else
    接收数据的代码, 比如
    For Each key As String In e.Files.Keys
        For Each fln As String In e.Files(key)
            e.SaveFile(key, fln, "d:\web\uploadfiles\" & fln) '保存接收到的文件
        Next
    Next
    e.WriteString("OK")
End If

js
function afterSubmit(result){
    hide("tst1");
    if (result=='OK') {
        show("tst2");
        //这一句去掉location="upload.htm";
    }
    else{
        show("tst3",2000);
    }
}

 回到顶部