Thanks Mr. Lisbakken and Mr. Foster. I tried your suggestions, and it
helped a little bit. It worked for "preferred stock" because and I'm
hoping to take the success from preferred stock to the next term where
I'm having more trouble. For the next one, the best way to show what
happens is if you go to google news and put these in the search boxes:

allintitle: profit and loss
or
allintitle: "profit and loss"

I want the results from the search string allintitle: "profit and
loss" to show but using what I learned from the previous methods, I
cannot get it to work in the API. That is, I tried  this:

executeList : ["allintitle: \"profit and loss\""]

And my results came out as if I did

executeList : ["google"]

Thanks very much for the help!

Siam Luu

On Oct 14, 12:05 pm, Matt Foster <[EMAIL PROTECTED]> wrote:
> > >          executeList : ["allintitle: "\"preferred stock\""]
>
>                                                   ^
>                                                   ^
>
> That quote immediately preceding the slash breaks the string and then
> you attempt to escape the string, but you're no longer in a string.
> Remove that quote and you should be good to go.
>
> On Oct 14, 10:50 am, "Ben Lisbakken" <[EMAIL PROTECTED]> wrote:
>
>
>
> > Hey Siam --
> > Try this:
> > executeList : ["allintitle:Apple macbook"]
>
> > -Ben
>
> > 2008/10/14 ss0luu <[EMAIL PROTECTED]>
>
> > > Hi all,
>
> > > Quick silly question that I thought I knew the answer to. I went to
> > > news.google.com and did an advanced search for all articles that had
> > > "preferred stock" in its headline. The search query was:
>
> > > allintitle: "loose credit"
>
> > > So, I wanted to incorporate this in my news bar but was unable to
> > > because the query would have gone in like this:
>
> > >          executeList : ["allintitle: "preferred stock""]
>
> > > I also tried:
>
> > >          executeList : ["allintitle: "\"preferred stock\""]
>
> > > but neither method seemed to work. I was thinking that whatever kind
> > > of search I can do in Google News I could probably do in the newsbar
> > > too. So, if I can do this, please let me know. If there is a way I can
> > > redo my syntax, please let me know what the solution is. Thanks for
> > > your help everybody!
>
> > > Siam Luu- Hide quoted text -
>
> - Show quoted text -
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google AJAX API" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-AJAX-Search-API?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to