HTML Tutorial


 /help/HTML Help Forum   FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
RegisterRegister - Not registered yet? Got something to say? Join HTML Code Tutorial!
changing google site search coding.
Post new topic   Reply to topic    HTML Help Forum -> Others
View previous topic :: View next topic  
Author Message
oy



Joined: 20 Jun 2006
Posts: 71

PostPosted: Fri Aug 04, 2006 11:59 pm     changing google site search coding. Reply with quote

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)"&gt;

<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

PostPosted: Sat Aug 05, 2006 12:41 pm     Reply with quote

Would something in php work?
degsy



Joined: 23 Feb 2005
Posts: 2440
Location: North East, UK

PostPosted: Tue Aug 08, 2006 6:22 am     Reply with quote

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

PostPosted: Tue Aug 08, 2006 7:42 am     Reply with quote

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

PostPosted: Wed Aug 09, 2006 4:58 am     Reply with quote

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

PostPosted: Wed Aug 09, 2006 7:37 am     Reply with quote

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

PostPosted: Thu Aug 10, 2006 6:46 am     Reply with quote

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

PostPosted: Thu Aug 10, 2006 6:49 am     Reply with quote

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

PostPosted: Wed Feb 28, 2007 3:46 pm     Reply with quote

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

PostPosted: Thu Mar 01, 2007 1:38 pm     Reply with quote

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.
Display posts from previous:   
Post new topic   Reply to topic    HTML Help Forum -> Others All times are GMT - 8 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
HTML Help Archive
Powered by phpBB © 2001, 2005 phpBB Group
HTML Help topic RSS feed 

 
DARFUR
HOSTING / DESIGN
MAKE MONEY

Home
  |   Tutorials   |   Forum   |   Quick List   |   Link Directory   |   About
Copyright ©1997-2002 Idocs and ©2002-2007 HTML Code Tutorial