0
我曾以任何方式搜索解决我的问题,但没有任何!填写HTML表单并获得一个javascript函数的结果iphone sdk
我有这个网页与此字段:
<form method="post" name="form_verifica" action="popup.jsp">
<input name="cod" type="text" >
<td id="code" name="code" >
<input name="conc" type="text" >
<input src="" onclick="return checkcode();" type="image">
我如何填写“鳕鱼”和“浓”字段,然后调用注册码()函数? 我已经试过这样:
NSURL *url = [NSURL URLWithString: @"MioURL/popup.jsp"];
ASIFormDataRequest *request = [ASIFormDataRequest requestWithURL:url];
[request setPostValue:[NSString stringWithString: Codice.text] forKey:@"cod"];
[request setPostValue:[NSString stringWithString: Concorso.text] forKey:@"conc"];
[request startSynchronous];
我错了吗?
道歉我为我的英语不好。 在此先感谢!
感谢您的重播,但我不只是从这个网页检索领域......我应该在[本页](http://servizi.sisal.it/verificavincite/popup.jsp)页面中填写“cod”和“conc”字段,然后执行checkcode()函数,返回给我另一个页面以及我的有趣信息。 ..谢谢 – Luca 2011-04-09 00:47:47
我想传递一个值[webView stringByEvaluatingJavaScriptFromString: @“document.getElementById('myField')。value;”]。怎么做? – sairam 2013-04-16 06:43:03