multimedia search problem

28 views
Skip to first unread message

serdo

unread,
Dec 16, 2009, 1:53:00 PM12/16/09
to Google AJAX APIs
hi, i am trying to use video search control (GSvideoSearchControl)
and multimedia search control (google.search.SearchControl) together
on a page.
i tried everything and could not get the SearchControl to draw in
TABBED form. then i realized that when i delete <script src="http://
www.google.com/uds/api?file=uds.js&v=1.0&key=ABQIAAAAPU...." script i
can get the results in TABBED form, put uds script back results are
like in a kind of "distorted" LINEAR form.

why is this happening?

does this mean i can not use both together on the same page?

Jeremy Geerdes

unread,
Dec 16, 2009, 2:00:06 PM12/16/09
to google-ajax...@googlegroups.com
Could you provide a link to your page, working or not?

Jeremy R. Geerdes
Effective website design & development
Des Moines, IA

For more information or a project quote:
http://jgeerdes.home.mchsi.com
http://jgeerdes.blogspot.com
http://jgeerdes.wordpress.com
jgee...@mchsi.com

Unless otherwise noted, any price quotes contained within this
communication are given in US dollars.

If you're in the Des Moines, IA, area, check out Debra Heights
Wesleyan Church!

And check out my blog, Adventures in Web Development, at http://jgeerdes.blogspot.com
!
> --
>
> You received this message because you are subscribed to the Google
> Groups "Google AJAX APIs" group.
> To post to this group, send email to google-ajax...@googlegroups.com
> .
> To unsubscribe from this group, send email to google-ajax-searc...@googlegroups.com
> .
> For more options, visit this group at http://groups.google.com/group/google-ajax-search-api?hl=en
> .
>
>

serdo

unread,
Dec 16, 2009, 3:05:22 PM12/16/09
to Google AJAX APIs
i dont have a page on air but i will paste the code here.
thanks for the reply...

here is the javascript in the head section:

<script src="http://www.google.com/uds/api?
file=uds.js&v=1.0&key=ABQIAAAAPUgH7fb-
wWwTdG_c3ncXnBQi_xY__X7apxVwhjmKmpz6P1hINBQkGiWY7rtPQgp_LJnGZ2e_gAG9Aw"
type="text/javascript">
</script> //WHEN I TAKE THIS
OUT TABBED RESULTS ARE OK

<script src="http://www.google.com/uds/solutions/videosearch/
gsvideosearch.js"
type="text/javascript"></script>
<script type="text/javascript">
window._uds_vsw_donotrepair = true;
</script>





<script type="text/javascript">
function LoadVideoSearch() {

// establish default tags
var defaultTags = [
{ query: "blue" }
];

// request twoRowMode
var options = {

string_allDone: "done",
largeResultSet:true

};

// create a new GSvideoSearchControl
new GSvideoSearchControl(document.getElementById
("videosearch"),
defaultTags, null, null, options);
}
/**
* Arrange for LoadVideoSearch to run once the page loads.
*/
GSearch.setOnLoadCallback(LoadVideoSearch);
</script>




<script type="text/javascript">

function OnLoad() {

// create a tabbed mode search control
var tabbed = new google.search.SearchControl();

tabbed.addSearcher(new google.search.VideoSearch());
tabbed.addSearcher(new google.search.ImageSearch());

// draw in tabbed layout mode
var drawOptions = new google.search.DrawOptions();
drawOptions.setDrawMode
(google.search.SearchControl.DRAW_MODE_TABBED);

// Draw the tabbed view in the content div
tabbed.draw(document.getElementById("search_control"),
drawOptions);

// Search!
tabbed.execute("blue");
}
google.setOnLoadCallback(OnLoad);
google.load('search', '1');
</script>




On Dec 16, 9:00 pm, Jeremy Geerdes <jrgeer...@gmail.com> wrote:
> Could you provide a link to your page, working or not?
>
> Jeremy R. Geerdes
> Effective website design & development
> Des Moines, IA
>
> For more information or a project quote:http://jgeerdes.home.mchsi.comhttp://jgeerdes.blogspot.comhttp://jgeerdes.wordpress.com
> jgeer...@mchsi.com
>
> Unless otherwise noted, any price quotes contained within this  
> communication are given in US dollars.
>
> If you're in the Des Moines, IA, area, check out Debra Heights  
> Wesleyan Church!
>
> And check out my blog, Adventures in Web Development, athttp://jgeerdes.blogspot.com
>   !
>
> On Dec 16, 2009, at 12:53 PM, serdo wrote:
>
>
>
> > hi, i am trying to use video search control (GSvideoSearchControl)
> > and  multimedia search control (google.search.SearchControl) together
> > on a page.
> > i tried everything and could not get the SearchControl to draw in
> > TABBED form. then i realized that when i delete <script src="http://
> >www.google.com/uds/api?file=uds.js&v=1.0&key=ABQIAAAAPU...." script i
> > can get the results in TABBED form, put uds script back results are
> > like in a kind of "distorted" LINEAR form.
>
> > why is this happening?
>
> > does this mean i can not use both together on the same page?
>
> > --
>
> > You received this message because you are subscribed to the Google  
> > Groups "Google AJAX APIs" group.
> > To post to this group, send email to google-ajax...@googlegroups.com
> > .
> > To unsubscribe from this group, send email to google-ajax-searc...@googlegroups.com
> > .
> > For more options, visit this group athttp://groups.google.com/group/google-ajax-search-api?hl=en
> > .- Hide quoted text -
>
> - Show quoted text -

serdo

unread,
Dec 16, 2009, 3:33:08 PM12/16/09
to Google AJAX APIs
one more thing. in this "distorted" LINEAR results display the page
numbers under the result tabs are displayed vertical like:
1
2
3
4
5
6
7
8

??
> > For more information or a project quote:http://jgeerdes.home.mchsi.comhttp://jgeerdes.blogspot.comhttp://jgee...
> > - Show quoted text -- Hide quoted text -

serdo

unread,
Dec 17, 2009, 4:12:24 AM12/17/09
to Google AJAX APIs
one more thing. is there a way to custimize the colors for results'
page numbers. it is always defaulted to googles paging colors. they
are black, and get red when clicked i mean when active. so when you
try to use SearchControl control on a page with black background they
are invisible + it would be really nice to be able to change the color
scheme for them to fit different backgrounds instead of always having
the same look.

Jeremy Geerdes

unread,
Dec 17, 2009, 7:37:46 AM12/17/09
to google-ajax...@googlegroups.com
It sounds to me as though you're having a CSS problem. Unfortunately,
without being able to see the COMPLETE code for your entire
application, it's virtually impossible to track it down and tell you
how to fix it. I would recommend finding somewhere to host your page
and then posting a link here. There are plenty of free hosting
services out there.

You might also find this blog entry useful:

http://googleajaxsearchapi.blogspot.com/2008/11/styling-searchcontrol-guest-post.html

Jeremy R. Geerdes
Effective website design & development
Des Moines, IA

For more information or a project quote:

Unless otherwise noted, any price quotes contained within this

communication are given in US dollars.

If you're in the Des Moines, IA, area, check out Debra Heights
Wesleyan Church!

And check out my blog, Adventures in Web Development, at http://jgeerdes.blogspot.com
!

serdo

unread,
Dec 17, 2009, 9:17:12 AM12/17/09
to Google AJAX APIs
it is just a single asp.net page that i use for my API studies/
trials...not a complicated application and what i pasted here was all
it had except for the DOM elements. it seems to be a css problem,
cause as far as i see css stylings that i changed seems to apply,like
borders,colors. but styles related to draw mode are not applied.i
can't see tabs but can see the "images", "videos" links that switch or
open/close the related containers.

is there a way that i can get a complete sample css file for this
control? i believe i could solve my problem if i had that.

checked out the link you provided and it helped me with some further
customizations so thanks for that, nice entrance your blog has by the
way:)

thanks jeremy...

On Dec 17, 2:37 pm, Jeremy Geerdes <jrgeer...@gmail.com> wrote:
> It sounds to me as though you're having a CSS problem. Unfortunately,  
> without being able to see the COMPLETE code for your entire  
> application, it's virtually impossible to track it down and tell you  
> how to fix it. I would recommend finding somewhere to host your page  
> and then posting a link here. There are plenty of free hosting  
> services out there.
>
> You might also find this blog entry useful:
>

> http://googleajaxsearchapi.blogspot.com/2008/11/styling-searchcontrol...


>
> Jeremy R. Geerdes
> Effective website design & development
> Des Moines, IA
>

> For more information or a project quote:http://jgeerdes.home.mchsi.comhttp://jgeerdes.blogspot.comhttp://jgeerdes.wordpress.com

serdo

unread,
Dec 17, 2009, 11:20:58 AM12/17/09
to Google AJAX APIs
ok here is the deal.
while i disabled the script source mentioned before, i was getting the
error -'GSearch' is undefined- .
for the line "GSearch.setOnLoadCallback(LoadVideoSearch);", when i
uncommented the script source line then SearchControl was going crazy.
what i have done is disable the script that cause SearchControl to go
mad (css) and comment the line "GSearch.setOnLoadCallback
(LoadVideoSearch);" and call LoadVideoSearch(); on page load. now
everything seem to be fine:) but i wonder if there could be any
drawbacks regarding this workround?

> > For more information or a project quote:http://jgeerdes.home.mchsi.comhttp://jgeerdes.blogspot.comhttp://jgee...

serdo

unread,
Dec 17, 2009, 11:42:00 AM12/17/09
to Google AJAX APIs
i also want to mention a bug in SearchControl.
when the results are expanded, click the settings button and close it
back. all the results collapse back to minimized form.
i guess this is a bug right?
Reply all
Reply to author
Forward
0 new messages