我郁闷了一天的时间, 为了研究webquery的一个很奇怪的现象.
就是会无缘无故的跳出一个 dialog box, "Enter Parameter Value" for "parameter1"
原来, 如果你的webpage 是用的GET method 来把 parameter 传到下一个 page, 的话, URL上就会:
example: http://hi.baidu.com/index.php? username=redwood_lin& selection%5B%5D=1&selection%5B%5D=2
在这个例子里, 传送的 parameter 有2个, one is "username", the second one is an array, selection()=array(1,2)
在这里, 大家要注意了, PHP, ASP可以识别出 selection%5B%5D 是array, 不过 Microsoft Excel 不明白, 所以它就会以为这是一个奇怪的 parameter, 所以, 每次就会 pop-up, ask you to enter value for the 'parameter1'....
所以,怎么办, 如果你还需要保证这个网站可以被query的话, 只能尽量避免在URL里面使用 array 啦.
希望这些对一些人有帮助!
就是会无缘无故的跳出一个 dialog box, "Enter Parameter Value" for "parameter1"
原来, 如果你的webpage 是用的GET method 来把 parameter 传到下一个 page, 的话, URL上就会:
example: http://hi.baidu.com/index.php? username=redwood_lin& selection%5B%5D=1&selection%5B%5D=2
在这个例子里, 传送的 parameter 有2个, one is "username", the second one is an array, selection()=array(1,2)
在这里, 大家要注意了, PHP, ASP可以识别出 selection%5B%5D 是array, 不过 Microsoft Excel 不明白, 所以它就会以为这是一个奇怪的 parameter, 所以, 每次就会 pop-up, ask you to enter value for the 'parameter1'....
所以,怎么办, 如果你还需要保证这个网站可以被query的话, 只能尽量避免在URL里面使用 array 啦.
希望这些对一些人有帮助!