Alright, I have a bar on my desktop that has a bunch of search boxes for google, ebay etc. What I've been trying to do is have an address bar that you type in a url and it pops up that page in a new window.
I tried an onsubmit javascript function but it didn't seem to work.
I've also tried a php solution. Now, the odd thing about the php solution I have is that if I just open the page with the form in a normal browser window, it works fine, I type in an address and a new window pops up with that address. However, as soon as I put it on my AD, for some reason i get 'undefined index' which means that the php script is not getting the variable from the form passed to it. My only thought is that AD has some kind of limit on variables being passed from form data, but then all my other search bars use data passed to scripts as variables, so I'm at a loss. Below is some of the code I've used:
Form Code:
HTML:
<form id='web' action='http://127.0.0.1/address.php' target='_blank' onsubmit="window.location.reload(false);">
Web:<input id='addr' type="text" name='addr' value="" size="18" /></form>
Then I have address.php hosted locally as indicated in the form code, very simple stuff:
PHP:
<?
echo("<html><head><script type='text/javascript'>location.href='http://".$_POST['addr']."'</script></head><body>hello</body></html>");
?>
Now, I've also tried the depreciated $HTTP_POST_VARS method, and it changes nothing. Again, this script works perfectly when it's not being submitted from the Active Desktop.
Does anyone have any ideas why this is happening?? Or any other methods of putting an address bar on the desktop (I've tried the address toolbar that you get by right clicking on the taskbar, but I don't like it)
BTW I'm running Windows 2000 sp4 (also happend in sp3) with IE v. 6.0.2800.1106
I've tried with and without admin. priviledges, with and without norton antivirus enabled, i even set up an account on a remote server that ran php just to verify, again it worked from normal browser but not from desktop.