Google Search embedded in an HTML region

Hello,
I tried to embed the standard Google search engine code (see below) into an HTML region within the HTML DB app, but upon hitting "submit" I get an error because the HTML DB engine tries to process the form post, instead of allowing a redirect to Google. I toyed around with this for a bit was unable to make it work. Has anyone else had success with this?
The error is:
http://myhostname.com:4444/pls/htmldb/wwv_flow.accept
The page cannot be found
The Google code snippet
<!-- Search Google -->
<center>
<FORM method=GET action=http://www.google.com/custom>
<TABLE bgcolor=#FFFFFF cellspacing=0 border=0>
<tr valign=top><td>
<IMG SRC=http://www.google.com/logos/Logo_40wht.gif border=0 ALT=Google align=middle>
</td>
<td>
<INPUT TYPE=text name=q size=31 maxlength=255 value="">
<INPUT type=submit name=sa VALUE="Google Search">
</td></tr></TABLE>
</FORM>
</center>
<!-- Search Google -->

Hello,
Actually Marife is telling you the exact same thing I am.
You will want to put your Google code in the page template. If it's in a region or somewhere else on the page it will break. When you open up your page template you will see there will be 2 substitution tags #FORM_OPEN# and #FORM_CLOSE# somewhere in the page template HTML. Your code needs to go on the outside of those tags so that the two forms in the page do not conflict.
Carl

Similar Messages

  • Embedded Google search on our website is not showing results. Windows 8, 64 bit, Firefox 30

    We have Google Search embedded in our website. It was brought to my attention by one of our employees that Firefox is not showing the results of the search after the search button is clicked. The issue seems to be only confined to Firefox. Tested the issue on Internet Explorer 10 and Google Chrome and both are working as expected, showing the results on our results page.
    I am using Windows 8, 64 bit, Firefox 30. The user having the issue is on Windows 7, 64 bit.
    I used the Web console and there were an error message of
    'TypeError: google.search.Search.apiary5337 is not a function'.
    I am not sure this is the root of the issue or not, but why would this work in Chrome and Internet Explorer and not in Firefox?
    If you need to check it, out website is http://www.dmns.org/ . The search box it on the top right of the page. You will see that the page redirects to our '/results?q=searchterm'. We are a science institution so if you type "science" in the search box, you will get redirected to the '/results' page with the query string of 'science' for the search term. But in my case the search results below are blank. If you do the same search if Chrome or IE the results show fine.
    Oh, I do not have any add on installed on Firefox.
    Any suggestions or a fix would be great.
    Thank you.
    Carlos Mosqueda

    Problem SOLVED.
    This is probably still a bug in Firefox. Our Google Search <script> that call the Javascript service from Google was within the Body tag. I moved the Script tag to the head and now it seems to work as expected. In the new Firefox, are <script> tags not allowed within the Body element?

  • Is there any problem going on with google search embadded in firefox or is it with firefox?

    i m can't search any thing via Google search embedded to Firefox, rather i have to open google.com and then search, i was wondering is there somthin wrong with Firefox or its wrong with google itself. im facing this issue since morning. Time-morning IST.

    There's a general iCloud problem now. See: http://www.apple.com/support/systemstatus/

  • How to add Google Search box on sharepoint master page

    SharePoint master page already has a form.  Google search box need to add another form. how to make it work.
    Google search box code
    <form action="http://..." method="GET" name="gs">
    <input maxlength="256" name="q" size="25" type="text"/>
    <input name="btnG" type="submit" value="Search"/>
    <input name="site" type="hidden" value="Education"/>
    <input name="output" type="hidden" value="xml_no_dtd"/>
    <input name="client" type="hidden" value="RESEARCH"/>
    <input name="proxystylesheet" type="hidden" value="Education"/>
    <input type="hidden" name="filter" value="0" />
    <input type="hidden" name="oe" value="UTF-8" />
             </form>

    Hi Icha, check out the following links. They include details for different methods depending on what you want:
    https://developers.google.com/search-appliance/documentation/connectors/260/connector_admin/searchbox_sharepoint
    http://kamalasekar.blogspot.com/2012/06/add-google-search-text-box-inside.html
    https://www.thorprojects.com/blog/archive/2012/10/05/adding-a-google-search-option-in-your-sharepoint-2010-search-scopes-without-code.aspx
    cameron rautmann

  • When I try to change the keyword.url settings in about:config to do a "I'm Felling Lucky" Google search, it just resets to chrome://browser-region/locale/region.properties whenever I restart Firefox.

    I just installed Firefox 4 today. When I try to change the keyword.url settings in about:config to do a "I'm Felling Lucky" Google search, it just resets to chrome://browser-region/locale/region.properties whenever I restart Firefox.

    Start Firefox in [[Safe Mode]] to check if one of the add-ons is causing the problem (switch to the DEFAULT theme: Tools > Add-ons > Appearance/Themes).
    * Don't make any changes on the Safe mode start window.
    See:
    * [[Troubleshooting extensions and themes]]
    See also:
    * http://kb.mozillazine.org/Preferences_not_saved

  • (Solved) Calling a different page using HTML Region as a part of other page

    Hi All,
    I want to open a page as a part of other page as it is done using frames in HTML.
    For example :
    <html>
    <head>
    </head>
    <frameset cols="30%,*">
    <frame src="menu.html">
    <frame src="content.html">
    </frameset>
    </html>
    Now I want to use the HTML Region and try calling different page developed in the same application. How can I acheive this task.
    Hoping for a quick and easy solution for this.
    Thanks in advance.
    Regards
    Arif

    Once Agian Thanks Andrews
    http://www.dynamicdrive.com/dynamicindex17/iframessi2.
    htmThis web page i suppose is presently not available, atleast i'm not able to open it.
    Hope there are some more sites.
    I'm trying to search on Google but as I do not have much information about Java Script so cant identify the exact solution.
    Hoping to get some predeveloped JavScript that works with Internet Explorer and Mozilla Firefox atleast.
    Thanks once again.
    Regards
    Arif

  • Site not found in Google search

    Perhaps a basic issue but one that's giving me a headache.
    What is the best and cheapest method of getting a site found during
    a google search. ?
    Any words of wisdom would be hugely appreciated.
    ????

    Yeah, but it's still not going to work if you've got your
    whole Flash site
    embedded into a single html page. Google asks you to create a
    robot.txt
    file in order for your Flash site to be listed by them, but
    I've never found
    any comprehensible specs on how to make that file. Anyone got
    these?
    The only thing I know of that works is to recreate your whole
    site in html
    as well as the Flash site. This, of course is an unsatisfying
    pain in the
    rumpus!
    KB
    "dagurluknow" <[email protected]> wrote in
    message
    news:fpeniu$eqf$[email protected]..
    > The meta data needs to go between the <head> and
    </head> tags in your html
    >
    > <meta name="keywords" content="
    keywords go here " />
    > <meta name="description" content="
    Description goes here " />
    >

  • Google search result causing spry error on webpage

    I have a webpage with some dynamically generated spry elements. The webpage seems to work as is should and generates no errors. However, when the page is accessed through a Google search the page generates the following error...
    Caught exception in Spry.Data.Region.prototype.evaluateExpression() while evaluating: {ds_RowID} == {ds_CurrentRowID} Exception:SyntaxError: invalid object initializer
    This error is being caused by Google generating malformed URL in its search results; like the following...
    mywebpage.php?row={ds_RowID}
    I suspect that this error is being caused because the link is being generated by JavaScript which Google is having difficulty interrupting. Is there a way that I can fix this and make Google interpret the link correctly?
    Thanks

    OK I think that I have found the problem. On the first page of my website I have the following Spry element.
    <div spry:state="ready">
                <h4 spry:repeat="dsNews"><a href="mywebpage.php?row={ds_RowID}">{Caption}</a></h4>
                <p spry:repeat="dsNews">{Front_Page} <a href="mywebpage_2.php?row={ds_RowID}">read more ></a></p>
    </div>
    This is where Google must be picking up the link. My question now is how do I properly link the elements on my first page to correct Spry data elements the supporting page, so that the page keeps functioning like is now does.
    Thanks again for your help.
    Example of first page of website that links to the supporting page.
    http://128.121.66.175/spry/index.php
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>Untitled Document</title>
        <link href="css/frontPage.css" rel="stylesheet" type="text/css" />
        <link href="css/frontPage_layout.css" rel="stylesheet" type="text/css" />
    <script src="js/cufon-yui.js" type="text/javascript"></script>
    <script src="js/cufon-replace.js" type="text/javascript"></script>
    <script src="SpryAssets/SpryData.js" type="text/javascript"></script>
    <script src="SpryAssets/SpryHTMLDataSet.js" type="text/javascript"></script>
    <script src="SpryAssets/xpath.js" type="text/javascript"></script>
    <script src="SpryAssets/SpryURLUtils.js" type="text/javascript"></script>
    <script src="SpryAssets/SpryPagedView.js" type="text/javascript"></script>
    <script language="JavaScript" type="text/javascript">
    <!--
    var pageOffset = 0;
    var pageSize = 1;
    var pageStop = pageOffset + pageSize;
    var dsNews = new Spry.Data.HTMLDataSet(null, "ENGdata");
    //Define the Data Set
    var params = Spry.Utils.getLocationParamsAsObject();
    function MyPagingFunc(ds, row, rowNumber)
        if (rowNumber < pageOffset || rowNumber >= pageStop)
            return null;
        return row;
    function UpdatePage(offset)
        var numRows = dsNews.getUnfilteredData().length;
        if (offset > (numRows - pageSize))
            offset = numRows - pageSize;
        if (offset < 0)
            offset = 0;
        pageOffset = offset;
        pageStop = offset + pageSize;
        // Re-apply our non-destructive filter on dsStates1:
        dsNews.filter(MyPagingFunc);
    -->
    </script>
    <style type="text/css">
        .SpryHiddenRegion {
            visibility: hidden;
    </style>
    </head>
    <body id="page1" onload="UpdatePage(pageOffset - pageSize);">>
    <div class="col1 comments">
                <div class="preview-box">
                        <noscript>
            <p class="nojavascript" style="margin-top:15px;">Your browser does not support JavaScript or JavaScript is turned off in your web browser. To view this site properly JavaScript needs to be enabled in your web browser.</p>
              </noscript>
        <div id="loopedSlider2">
          <h1></h1>
          <div class="container">
            <div class="slides">
              <div spry:region="dsNews" class="SpryHiddenRegion">
      <div spry:state="loading"><img src="images/ajax_loader_green.gif"/></div>
      <div spry:state="error">Failed to load news data!</div>
           <div spry:state="ready">
                <h4 spry:repeat="dsNews" style="padding-top:20px;"><a href="spry_test.php?row={ds_RowID}">{Caption}</a></h4>
                <p spry:repeat="dsNews">{Front_Page} <a href="spry_test.php?row={ds_RowID}">read more ></a></p>
                </div>
              </div>
            </div>
          </div>
          <div class="pagination-container" style="margin-left:600px; width:75px;">
          <input type="image" value="Prev" src="images/button-prev.gif" onclick="UpdatePage(pageOffset - pageSize);" />
          <input type="image" value="Next" src="images/button-next.gif" onclick="UpdatePage(pageOffset + pageSize);" /></div>
        </div>
            </div>
            <div class="SpryHiddenRegion">
    <table width="100%" id="ENGdata">
      <tr>
        <th width="35%" scope="col">Caption</th>
        <th width="39%" scope="col">Front Page</th>
      </tr>
      <?php do { ?>
        <tr>
          <td><?php echo $row_conn_front_page['caption']; ?></td>
          <td><?php echo limit_text($row_conn_front_page['front_page'],140); ?></td>
        </tr>
        <?php } while ($row_conn_front_page = mysql_fetch_assoc($conn_front_page)); ?>
    </table></div>
              </div>
    </body>
    </html>
    <?php
    mysql_free_result($conn_front_page);
    ?>
            </div>
          </div>
          <div class="pagination-container">
          <input type="image" value="Prev" src="images/button-prev.gif" onclick="UpdatePage(pageOffset - pageSize);" />
          <input type="image" value="Next" src="images/button-next.gif" onclick="UpdatePage(pageOffset + pageSize);" /></div>
        </div>
            </div>
            <div class="SpryHiddenRegion">
    <table width="100%" id="ENGdata">
      <tr>
        <th width="35%" scope="col">Caption</th>
        <th width="39%" scope="col">Front Page</th>
      </tr>
      <?php do { ?>
        <tr>
          <td><?php echo $row_conn_front_page['caption']; ?></td>
          <td><?php echo limit_text($row_conn_front_page['front_page'],140); ?></td>
        </tr>
        <?php } while ($row_conn_front_page = mysql_fetch_assoc($conn_front_page)); ?>
    </table></div>
              </div>

  • How to interact with google search engine using java HTTP POST

    I am trying to develop an desktop app that acts as an online radio tuner. I want to use google as an index site for actually searching for radio stations online. So I was wandering if it is possible for me to use java to actually interface with the google search engine servers. For example, I have built a gui that allows you to enter search text. This gui will connect to the web. I would like it to connect to the Google site and post the query to the google web servers. Then i would like to began to parse the response( html page) that i get back from the google servers. Like using google without actually typing in the text field on the google site. Can anyone tell me if it is possible to do this with java. If so, what would be the best way to go about doing this. Thanks.

    Thanks for the response. It was actually alot easier to do than I anticipated. All I had to do was create a URL object initialized with the google url(search text embedded in the url - http://www.google.com/search?q=" + searchText + "&hl=en&ie=UTF-8&oe=UTF8).
    Looks like this:
    String google = http://www.google.com/search?q=" + searchText + "&hl=en&ie=UTF-8&oe=UTF8;
    URL url = new URL(google);  // creating Google Url object
    URLConnection connection = url.openConnection();
           connection.setDoOutput(true);
           connection.setRequestProperty("User-Agent", "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0)" );  // fooling google servers into thinking the request is coming from a real browser
           BufferedReader reader = new BufferedReader(new InputStreamReader(connection.getInputStream()));The content returned by the google server can be accessed calling the BufferedReader class methods.

  • Can no longer enter data in the address bar {url Bar}, it correctly follows data from google search bar. It was a 1 month old installation so not a lot of complications

    I was not adding anything to Firefox. I Refused tool bars embedded in several application installs on this new computer. Was working fine. Then had a problem with Google search, restored default values and re-tooled Firefox. At this point all worked fine. Then my url, address bar changed color to the same color as the program shell, a grey brown as opposed to the white it was before. With the change in color it no longer allows me to change the data showing in the bar. I can not delete or add data. I used to add a url and navigate to the domain. Now I can not

    Greetings,
    TY for the reply, the information was enlightening to be sure. I never knew safe mode was an option with Firefox. I have so many tasks running that I didn't want to shut things down. What I did is turn off some of the last plug-ins I installed. That did not fix the problem at least in the first look. What happened next was very interesting none the less. I had a moment of mouse spastic wrist syndrome and accidentally moved a tab in such a way that it opened in a new window. The URL bar was white and editable. So I moved all my tabs to the new window and everything works as it should. I have restarted Firefox this morning and it came back with the bar editable and I am speechless to understand what I may have done to correct the problem if anything ??

  • How to set up Google search in Firefox to closest resemble how I use it in Chrome?

    1st) I go to https://www.google.com/ncr [No Country Redirect, see: https://support.google.com/websearch/answer/873?hl=en]
    2nd) My setup how I search on Google in Chrome by default is the following:
    https://www.google.com/search?q=%s&hl=
    If I want to search on No Country Redirect land, I simple press Ctrl+E [which brings me to default search] and enter my [search term], which will result in: https://www.google.com/search?q=search+term&hl=
    Now if I want to search in a specific language (which I often need) other than English, some easy modifications:
    For example, German: https://www.google.com/search?q=search+term&hl=DE
    For example, French: https://www.google.com/search?q=search+term&hl=FR
    That's it.
    I don't understand what are these lots of [aqswdefrgthyjukiolkijuhygtfrdesasd] long strings in the default Firefox version of Google are, and why I should trust them? You might get a kickback for that from Google but sorry, that's not my business. :(
    [Philosophical question: why are simple things in Firefox so much more complicated than in Chrome?]

    Firefox doesn't have a handy built-in interface for editing search strings. Instead, it uses search plugins, small .xml files based on the OpenSearch standard. You can find these files on the Add-ons site, on the Mycroft site (example: [http://mycroftproject.com/google-search-plugins.html]), and elsewhere. Many sites offer them, in which case a green + appears on the icon in the search bar.
    You also can create your own custom search plugins. If you open the standard google.xml plugin in Firefox or IE as a page*, you can see the categories of data it contains. Most of it is encoded icons (using encoded icons means Firefox doesn't have to link out to a site to fetch the icon, potentially introducing a tracking issue). Toward the end you see how the query is constructed.
    For example, if you search for Firefox using the standard Google plugin, the results page is:
    https://www.google.com/search?q=Firefox&ie=utf-8&oe=utf-8
    You can see from the plugin how this is constructed (toward the bottom):
    &lt;Url type="text/html" method="GET" template="https://www.google.com/search" rel="searchform">
    &lt;Param name="q" value="{searchTerms}"/>
    &lt;Param name="ie" value="utf-8"/>
    &lt;Param name="oe" value="utf-8"/>
    &lt;/Url>
    And if you wanted to change that, you could copy and edit the file to your preferred parameters. Interested?
    ''* On 32-bit Windows 7, the google.xml file is in this folder:''
    C:\Program Files\Mozilla Firefox\browser\searchplugins

  • I'm having trouble with something that redirects Google search results when I use Firefox on my PC. It's called the 'going on earth' virus. Do you have a fix that could rectify the vulnerability in your software?

    I'm having trouble with a virus or something which affects Google search results when I use Firefox on my PC ...
    When I search a topic gives me pages of links as normal, but when I click on a link, the page is hijacked to a site called 'www.goingonearth.com' ...
    I've done a separate search and found that other users are affected, but there doesn't seem to be a clear-cut solution ... (Norton, McAfee and Kaspersky don't seem to be able to detect/fix it).
    I'd like to continue using the Firefox/Google combination (nb: the hijack virus also affects IE but not Safari) - do you have a patch/fix that could rectify the vulnerability in your software?
    thanks

    ''' "... vulnerability in your software?" ''' <br />
    And it affects IE, too? Ya probably picked up some malware and you blame it on Firefox.
    Install, update, and run these programs in this order. They are listed in order of efficacy.<br />'''''(Not all programs detect the same Malware, so you may need to run them all to solve your problem.)''''' <br />These programs are all free for personal use, but some have limited functionality in the "free mode" - but those are features you really don't need to find and remove the problem that you have.<br />
    ''Note: If your Malware infection is bad enough and you are mis-directed to URL's other than what is posted, you may have to use a different PC to download these programs and use a USB stick to transfer them to the afflicted PC.''
    Malwarebytes' Anti-Malware - [http://www.malwarebytes.org/mbam.php] <br />
    SuperAntispyware - [http://www.superantispyware.com/] <br />
    AdAware - [http://www.lavasoftusa.com/software/adaware/] <br />
    Spybot Search & Destroy - [http://www.safer-networking.org/en/index.html] <br />
    Windows Defender: Home Page - [http://www.microsoft.com/windows/products/winfamily/defender/default.mspx]<br />
    Also, if you have a search engine re-direct problem, see this:<br />
    http://deletemalware.blogspot.com/2010/02/remove-google-redirect-virus.html
    If these don't find it or can't clear it, post in one of these forums for specialized malware removal help: <br />
    [http://www.spywarewarrior.com/index.php] <br />
    [http://forum.aumha.org/] <br />
    [http://www.spywareinfoforum.com/] <br />
    [http://bleepingcomputer.com]

  • When returning to a google search, Firefox takes me to the top of the page

    I use Firefox exclusively as my browser. I also use Google as my default home page. I execute a google search, and am presented with a list of several pages of web sites. As I work my way through each of these sites, I wish to return to my search results and select the next item listed. When doing so, Firefox always returns me to the top of the list. I must then page down through the list and remember where I left off and select the next search item. Can this be fixed? Are my settings wrong? How can I prevent this?

    Do a malware check with some malware scanning programs on the Windows computer.<br />
    You need to scan with all programs because each program detects different malware.<br />
    Make sure that you update each program to get the latest version of their databases before doing a scan.<br /><br />
    *http://www.malwarebytes.org/mbam.php - Malwarebytes' Anti-Malware
    *http://www.superantispyware.com/ - SuperAntispyware
    *http://www.microsoft.com/windows/products/winfamily/defender/default.mspx - Windows Defender: Home Page
    *http://www.safer-networking.org/en/index.html - Spybot Search & Destroy
    *http://www.lavasoft.com/products/ad_aware_free.php - Ad-Aware Free
    See also:
    *"Spyware on Windows": http://kb.mozillazine.org/Popups_not_blocked

  • First direct link in google search causes "Internet Explorer blocked this site from downloading"

    I've disabled both the Adobe Reader Add-on and the Adobe PDF Link Helper to force IE 8 to open PDF's outside of the browser i.e in the stand alone reader application.
    After doing this I did some testing, a google search for "test pdf" produces numerous direct links to pdf files.  If i click any of them it causes IE to display the message bar "Internet Explorer blocked this from downloading files to your computer, click her for options.."  When I click on the message bar, it appears to download the file , then nothing happens.  Next time I click the link it opens in the stand alone reader just fine and so do all PDF files, until the browser is restarted or a new tab is started.
    This only seems to happen in IE8.  IE9 doesn't have the problem.
    If I open a web page that has a link to a PDF that always work.
    Help? I can't roll this out to prod.  Users will get very confused...

    You actually trashed the whole Internet Preferences Folder including all your preferences still in there?
    Actually, you were suppose to just trash the Internet Preference file/document which is inside the folder.
    See if updating to the latest & last version of IE for Mac will help.
    Internet Explorer (Classic) 5.1.7
    Internet Explorer 5.1.7
    Internet Explorer v5.1.7
    "WARNING:" Microsoft ended support for Internet Explorer for Mac on December 31st, 2005, and is not providing any further security or performance updates.
    Accordingly, as of January 31st, 2006, Internet Explorer for the Mac is no longer available for download from Microsoft.
    Or, you can try the following w/your older version of IE:
    Once a week Go into the system folder>preferences folder & trash the following preferences:
    finder
    ASLM
    PPC Registration Database
    Cache.waf-found inside the MS Internet Cache folder
    MRJ Cache folder-a new one will be recreated.(If not found go to System folder>Application Support>MRJ Cache folder-trash all you find inside-(DO NOT TRASH THIS FOLDER)
    Download Cache-found inside Explorer Folder
    Downloads.html-found inside Explorer Folder
    History.html-found inside Explorer Folder
    Rebuild your desktop w/extensions off. Use Techtool Lite or Trash*Desktop - may delete Finder comments to rebuild your desktop w/extensions off. Does a better job than manually & you avoid all the finger gymnatics. You just have to hold down the shift key to shut off extensions.
    Restart to turn the extensions back on again & empty the trash.
    Good luck!

  • Two finger swipe replaces google search string

    MBP with Safari 6.0 experiencing this problem.  Another user was experiencing the issue here:
    http://www.ehmac.ca/mac-iphone-ipad-ipod-help-troubleshooting/99937-safari-two-f inger-swipe-bug-replaces-google-search-string-os-10-7-3-a.html
    I don't know where the bug reports are to follow up on it and I haven't seen any patches for it.  Any advice?  Specifically, I'd like to know how to file the bug (in case I find another) and to follow up on any existing issues.
    TIA,
    Scott

    Is there no place to track the status of the report or see any other outstanding issues so I don't bother filing duplicates?
    Never heard of such a function here. This method gets feedback to the people who count but it is completely behind the scenes. Part of Apple's "cards close to the chest" method of doing pretty much everything. You should have been looking at the "don't expect a response" screen after you hit the submit button on your bug report.
    If there is something that needs clarification, I suspect they will use e-mail to ask for it, but don't stay home waiting!
    Have you read Walter Isaacson's  biography of Steve Jobs? Things like this took on a new--if not satisfying--perspective for me after reading it. So far, it has persisted in their corporate culture in the after-Steve era..

Maybe you are looking for