Google CSE multiple search bar issue - html

I am using the two page look and feel, i.e. Search bar on one page, results on another.
I have one search bar in my header, when I search for something it takes me to a new page for the results to be shown. The problem is, when I get to the new page, there is ANOTHER search bar. So now i have two search bars on the same page, which do the same thing.
Is there a way to remove the second search bar?

Yup.
Somewhere in your JavaScript you'll be creating a DrawOptions object:
var options = new google.search.DrawOptions();
After this line add this one:
options.enableSearchResultsOnly();
Which will get rid of the search box. However the problem I'm having is that the search box in the header (the one you do want) doesn't have the query term in it.
BTW, here's a link to the JavaScript API reference

Related

How to make Google Forms dropdown list searchable? [duplicate]

I'm trying to create a google form with a field which takes the values as a list from spreadsheet. Right now i'm using formRanger scrip but my list is to long, 200 entries, how can i make it similar to android contact search. That it will filter the entries based on keystroke.
So it seems that nothing has changed in the last 8 years and the best solution to date seems to:
put the long list as a single question on separate section
advice users to use Ctrl+F to find the needed option.
This has advantage over drop-down that it's much easier to scroll the whole page than dropdown which user can accidentally close and will need to open and search again.
It sounds like you are looking for an "Autocomplete" entry for your form.
As the user types an entry into the form field, a dropdown list appears showing matching entries lifted from a Google spreadsheet column.
The following solution using HtmlService works great for lists having over 200 entries.
I've tried it!
"Populate jQuery autocomplete list using value array from Google Spreadsheet"

Prevent header being split into multiple page

In SSRS, there is a KeepTogether attribute for groups to prevent them split across 2 pages. But is it possible to apply the KeepTogether attribute to headers?
I have a group that has 3 rows of headers, in some cases, when rendering the data, if it comes to the end of the page, but still able to fit 1-2 rows, it will print the 1-2 rows at the current page, and split the rest of the rows to the next page like. Thus, the header will be splitted when export to PDF like the image below:
Any idea on how to fix this?
You can try this to see if it works. Make sure your Row Groups window is showing at the bottom (go to the view menu and check grouping if it isn't). Then press the little down arrow at the top right of that bottom pane and enable advanced mode.
Click the groups. They will highlight a pane in your table. Find the one for the header you are having problems with. Now look at the properties pane on the right (you can use the view menu to turn it on if it's not there). There are a few properties to try here. Try experimenting with KeepTogether and KeepWithGroup options.
If that doesn't work out with you then it looks like your only option is going to be the Insert Page Break Before option in the table options menu.

R Shiny HTML hyperlink to seperate page containing chart

I have been trying for the last 2.5 hours to figure this out. I have managed to create a custom navigation bar with three links for my ShinyApp. My ShinyApp consists of 3 charts: a bubble chart, a timeline chart, and a histogram, and I want each respective link in the navigation bar to go to a page containing the appropriate chart. I know about the Navbar function in shiny, but it does not look quite the way I want. Here is mine:
tags$ul(class="main-nav",
list(
tags$li(class="active", tags$a(href="link-to-timeline-chart","Timeline Chart")),
tags$li(tags$a(href="link-to-bubble-chart","Bubble Chart")),
tags$li(tags$a(href="link-to-histogram","Histogram"))
))
I have even considered the option to plot them all in a single page and use the anchor tag to link to the specific part of the page containing the appropriate chart, but that would be compromising too much on my design. I really just want to have separate links for them; each in it's own page.

Adding list items to a page tactically

I have about 2000 items that I want to add my page. They are right now in alphabetical order in a word doc, and I want to add them in a list sort of manner. Since there are so many of them, and I basically right now am adding each of them one by one I needed to know if there is a quicker way I am missing? Please let me know if so.
Ok I've got some real trick out here go to TinyMCE, Copy Paste the list of words, select all and make it as a list and press submit now copy paste all the items from "Source output from post"
Open your dreamweaver and the page you are working on.
Paste the texts
Select All
Go Properties Panel Find the list button then click it. It should convert all the texts to list items

Is there anyway to add an input field for IE9 jump lists?

I've been playing with IE9's new jump lists. I was wondering if there is a way to add an input field to the jump list. I want to add a search bar to the jump list and takes it to the site and put the search query in the querystring. Anyone know if this can be done?