We're a community of 1077K IT Pros here for help, advice, solutions, professional growth and fun. Join us!
1,076,188 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Start New Discussion Reply to this Discussion

Resizing Google's Result IFrame

Hi..
I'm designing a web that contain Google Custom Search Engine and I put the result in a page. But it doesn't match with the template I've already made because the IFrame is too wide..

<script type="text/javascript">
  				var googleSearchIframeName = "cse-search-results";
  				var googleSearchFormName = "cse-search-box";
  				var googleSearchFrameWidth = 600;
  				var googleSearchDomain = "www.google.com";
  				var googleSearchPath = "/cse";
			</script>

I try to change the FrameWidth variable to lower value but it still doesn't work.. var googleSearchFrameWidth = 500; How can I handle this?!?

3
Contributors
4
Replies
1 Week
Discussion Span
3 Years Ago
Last Updated
5
Views
eantz
Light Poster
30 posts since Jul 2009
Reputation Points: 10
Solved Threads: 0
Skill Endorsements: 0

If Google sets a width when it loads, it overrides anything you do.

MidiMagic
Nearly a Senior Poster
3,363 posts since Jan 2007
Reputation Points: 730
Solved Threads: 184
Skill Endorsements: 1

It means, I can do nothing with what google do..
Okay..thank's...

But if there is a way to do that I will be glad...

eantz
Light Poster
30 posts since Jul 2009
Reputation Points: 10
Solved Threads: 0
Skill Endorsements: 0

I looked for the same question long ago
i found the answer i was helped by a tutorial online about the google iframe
but i do not remember the site:
All the problem resides on the input of the search form where it says:

<input type="hidden" name="cof" value="FORID:10" />

I changed the value of the value from 10 to 11.
Here is the result if you want to try:

http://www.wordtosay.com/google.php

mhamed
Newbie Poster
1 post since Jul 2009
Reputation Points: 10
Solved Threads: 0
Skill Endorsements: 0

wow..that's nice result..
I'll try it soon..

thanks,

eantz
Light Poster
30 posts since Jul 2009
Reputation Points: 10
Solved Threads: 0
Skill Endorsements: 0

This article has been dead for over three months: Start a new discussion instead

Post: Markdown Syntax: Formatting Help
 
You
 
© 2013 DaniWeb® LLC
Page rendered in 0.1133 seconds using 2.68MB