| View previous topic :: View next topic |
| Author |
Message |
oy
Joined: 20 Jun 2006
Posts: 71
|
| Posted: Fri Aug 04, 2006 11:59 pm changing google site search coding. |
|
|
Hi I am trying to figure out a way to change the code below into either a differen't language with the same result or make it not create the pop up thing that shows up when using it in IE.
Code: <script type="text/javascript">
var domainroot="http://cr3ative.frih.net"
function Gsitesearch(curobj){
curobj.q.value="site:"+domainroot+" "+curobj.qfront.value
}
</script>
<form action="http://www.google.com/search" method="get" onSubmit="Gsitesearch(this)">
<p>Search this site using google:<br />
<input name="q" type="hidden" />
<input name="qfront" type="text" style="width: 180px" /> <input type="submit" value="Search" /></p>
</form> |
|
|
oy
Joined: 20 Jun 2006
Posts: 71
|
| Posted: Sat Aug 05, 2006 12:41 pm |
|
|
| Would something in php work? |
|
|
degsy
Joined: 23 Feb 2005
Posts: 2440
Location: North East, UK
|
| Posted: Tue Aug 08, 2006 6:22 am |
|
|
What are you trying to do? The google site search doesn't work like that.
Have you signed up for a google site search?
https://services.google.com/cobrand/free_customize |
|
|
oy
Joined: 20 Jun 2006
Posts: 71
|
| Posted: Tue Aug 08, 2006 7:42 am |
|
|
I think it does work like that well on the outside it looks like it works like that.
And no I didn't sign up for the google free search thing.
I am trying to make it work without having the pop up bar saying that active x is being blocked in ie so would I use php or something like that to make it work? |
|
|
degsy
Joined: 23 Feb 2005
Posts: 2440
Location: North East, UK
|
| Posted: Wed Aug 09, 2006 4:58 am |
|
|
The google site search works from a domain name
e.g. cr3ative.frih.net
no protocol or subdomain is required.
But you need pages indexed for it to work. That site has no pages indexed by google.
You would be best off signing up for the google site search. |
|
|
oy
Joined: 20 Jun 2006
Posts: 71
|
| Posted: Wed Aug 09, 2006 7:37 am |
|
|
oh nvm it does work with out the active x warning it only warns me when I am using it off of a server microsoft should fix that.
See this is what I was trying to stop but I got it now:
Thanks for the help. |
|
|
degsy
Joined: 23 Feb 2005
Posts: 2440
Location: North East, UK
|
| Posted: Thu Aug 10, 2006 6:46 am |
|
|
That's got nothing to do with your code. It is a browser security setting.
If you are running the page locally then goto Internet Options>Advanced and check the option to Allow active content to run in files on your computer. |
|
|
oy
Joined: 20 Jun 2006
Posts: 71
|
| Posted: Thu Aug 10, 2006 6:49 am |
|
|
| Ya I know but I was trying to find a way of changing the code to html or to php or something that doesn't alert the browser. But I don't need to now. |
|
|
Sloogle.com
Joined: 14 Jan 2007
Posts: 79
|
| Posted: Wed Feb 28, 2007 3:46 pm |
|
|
| it sounds like you are trying to do a SQL injection of google? I think the only way you'd even get that to work is if you post it up on the internet? |
|
|
oy
Joined: 20 Jun 2006
Posts: 71
|
| Posted: Thu Mar 01, 2007 1:38 pm |
|
|
Haha, no. This was posted a while ago I was testing it locally and thought the active x warning was going to be displayed when it was on a server also. Thats all.
I'm not a hacker/cracker. |
|
|
| |