aardio 官方社区

 找回密码
 注册会员

QQ登录

只需一步,快速开始

搜索
查看: 9017|回复: 1

inet 登陆页面 网页显示乱码和提示脚本错误

[复制链接]

27

主题

88

回帖

787

积分

三级会员

积分
787
发表于 2012-5-11 14:02:57 | 显示全部楼层 |阅读模式
本帖最后由 以利亚先生丶 于 2012-5-11 14:04 编辑
  1. import win.ui;
  2. /*DSG{{*/
  3. mainForm = ..win.form( bottom=400;parent=...;right=600;text="aardio Form" )
  4. mainForm.add(
  5. button2={ bottom=394;right=121;left=18;top=359;z=5;text="button2";cls="button" };
  6. edit={ bottom=355;text="edit";left=134;multiline=1;top=19;z=1;right=583;edge=1;cls="edit" };
  7. button={ bottom=330;right=120;left=17;top=291;z=4;text="button";cls="button" };
  8. picturebox={ top=210;z=3;bottom=253;right=123;left=25;cls="picturebox" };
  9. edit2={ bottom=191;text="edit2";left=28;multiline=1;top=159;z=2;right=113;edge=1;cls="edit" }
  10. )
  11. /*}}*/

  12. import config;
  13. mainForm.bindConfig( config.mainForm,{
  14.         edit = "text"; //绑定edit控件的text属性值到配置文件
  15.         radiobutton = "checked";
  16.         checkbox = "checked";
  17.         combobox = "selIndex";
  18. } );

  19. import inet.http;
  20. import web.form;
  21. var wb = web.form( mainForm.edit);//创建web窗体
  22. var Http = inet.http();
  23. mainForm.picturebox.image=Http.get("http://my.jdzj.com/incing/getcode.asp");

  24. mainForm.button.oncommand = function(id,event){
  25.         //mainForm.msgbox( mainForm.button.text );
  26.         var html=Http.post("http://my.jdzj.com/Chkadmin.asp","user=wjxdgz&pass=wujingxing®jm=" + mainForm.edit2.text+ "&Typ=comp");

  27.         if(html){
  28.         wb.write(string.fromto( html ))
  29.     }
  30.    
  31.     if(string.find(string.fromto( html ),"wjxdgz")){
  32.         wb.go("http://my.jdzj.com/Chkadmin.asp")
  33.     }else {
  34.         mainForm.msgbox("登录失败")
  35.     }
  36. */

  37. //        mainForm.msgbox(html)
  38.         

  39. }

  40. mainForm.button2.oncommand = function(id,event){
  41.         //mainForm.msgbox( mainForm.button2.text );
  42.         var asdf = Http.get("http://my.jdzj.com/Chkadmin.asp");
  43.         mainForm.msgbox(asdf)
  44. }

  45. mainForm.show()
  46. win.loopMessage();
复制代码
因为wb 控件 里网页显示的是 一连串的问号,所以我是根据msgbox 弹出的页面信息显示网页时是登陆成功的,我不知道是我哪里写错了。哪位知道的朋友,帮忙热心解决下问题,谢谢了。
而且也经常会出现登陆不成功,以下是图片。




QQ截图201a.png
QQ截图20120511102859.png

27

主题

88

回帖

787

积分

三级会员

积分
787
 楼主| 发表于 2012-5-11 14:06:02 | 显示全部楼层
我试过登陆百度的时候,都不会出错。这次拿个网站实验下。立马就出现问题了,菜鸟在此特虚心请教。
您需要登录后才可以回帖 登录 | 注册会员

本版积分规则

手机版|未经许可严禁引用或转载本站文章|aardio.com|aardio 官方社区 ( 皖ICP备09012014号 )

GMT+8, 2026-1-18 23:30 , Processed in 0.060776 second(s), 25 queries .

Powered by Discuz! X3.5

Copyright © 2001-2024 Tencent Cloud.

快速回复 返回顶部 返回列表