Firefox could not install the search engine from… - firefox

I'm trying to make APLcart work with OpenSearch, but keep getting Firefox could not install the search engine from: https://aplcart.info/opensearch.xml with:
<link rel="search" type="application/opensearchdescription+xml" title="APLcart"
href="/opensearch.xml">
Where /opensearch.xml is:
<OpenSearchDescription>
<ShortName>APLcart</ShortName>
<Description>
Search APLcart: A novel approach to finding your way in APL
</Description>
<InputEncoding>UTF-8</InputEncoding>
<Image width="16" height="16" type="image/x-icon">https://aplcart.info/favicon.ico</Image>
<Url type="text/html" template="https://aplcart.info/?q={searchTerms}"/>
</OpenSearchDescription>
Note that this is not the same issue, since I do have Url type="text/html".
I've tried with method="get"
What do I need to change for my OpenSearch specification to be compliant?

You have to use the correct namespace
<OpenSearchDescription xmlns="http://a9.com/-/spec/opensearch/1.1/">
If you open the browser console (CTRL+Shift+J) you can see the error message
Invalid search plugin due to namespace not matching.

Related

Master page throws error when code is inserted

I have a master page that throws an error on content pages when the following line of code is inserted into the master page. It will not let me enter design mode.
<script src='<%= CacheHelper.Fingerprint("/assets/scripts/app.min.js") %>' />
However, the following line of code doesn't throw an error. I've tweaked the quotes, added a type etc, but it still refuses to play ball.
<link rel="stylesheet" href='<%= CacheHelper.Fingerprint("/assets/styles/app.min.css") %>' />
I'm using VS2010.
After trawling, trying and testing for a few hours I can categorically say that 99% of the answers to similar questions do not work.
The answer I found that did work was to replace the end tag '/> with '></script>' - after this Visual Studio started behaving.

Getting a full file path from Fileupload in zk

I want Absolute Path but it's get eclipse path.
how to get original path please help me.
<zk>
<window title="Hello World!!" border="normal">
<label value="You are using: ${desktop.webApp.version}" id="lab" />
<textbox id="tex" width="250px" />
<button label="Upload Image" upload="true,maxsize=300">
<attribute name="onUpload">
<![CDATA[
org.zkoss.util.media.Media media = event.getMedia();
java.io.File myFile = new java.io.File(media.getName());
Messagebox.show("path"+myFile.getAbsolutePath());
]]>
</attribute>
</button>
</window>
</zk>
Now browsers have a very high security so it preventing to show client local file system and for security it make sense for everyone ,no any internet user will like Server will know the our local file system if still any browser showing your file system in browser it is lake of security in the browser.

Data is not loaded in BI Publisher flash template - Error #2032

I have created a simple reprot with one level of XML data, and followed all the guide lines from oracle tutorial http://docs.oracle.com/cd/E10383_01/doc/bip.1013/e10416/flashtemp.htm
When I run the application from Flash Builder, it works fine, a simple data grid as in the tutorial
But when I upload the swf file to the flash template in publisher, it fails to run with error#2032, I've searched and searched for any clue of what is wrong! no tutorial or help was useful.
Here is my flex application source code:
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute" minWidth="955" minHeight="600">
<mx:Script>
<![CDATA[
[Bindable]
public var dataXML:XML =
<ROWSET>
<ROW>
<ACCOUNT_NUMBER>999222111</ACCOUNT_NUMBER>
<CURR_CODE>USD</CURR_CODE>
<INSTALLMENT_AMOUNT_LC>8840</INSTALLMENT_AMOUNT_LC>
</ROW>
</ROWSET>;
]]>
</mx:Script>
<mx:Panel left="10" top="10" width="477" height="267" layout="absolute">
<mx:DataGrid left="0" right="1" top="0" bottom="10" dataProvider="{dataXML.ROW}"
horizontalCenter="-1">
<mx:columns>
<mx:DataGridColumn dataField="ACCOUNT_NUMBER" headerText="Account Number"/>
<mx:DataGridColumn dataField="CURR_CODE" headerText="Currency Code"/>
<mx:DataGridColumn dataField="INSTALLMENT_AMOUNT_LC" headerText="Instalment Amount"/>
</mx:columns>
</mx:DataGrid>
</mx:Panel>
I don't know whats wrong with the code! or what is causing the error, BI or the swf file.
Can anyone help me ?
I use Oracle 10g, and Flash builder 4.6
After a lot of search, I came to the result that there is no solution for linking reports built using Flex Builder 4.6 with Oracle 10g BI Publisher that I'm aware of.
But when I downgraded to Flex Builder 2.0, it worked for me, and I'm now able to see the data in the flash template that is built using this version of Flex when the report runs in Oracle BI Publisher and without changing any code from the above question.
I believe this is backward compatibility issue between Oracle 10g and its BI Publisher, and the new versions of the Flex Builder from Adobe.

NPAPI plugin not working in Firefox5.0 on Mac

I have a NPAPI plugin (built using firebreath) which works fine Safari and Google Chrome (both on Mac); But it fails to work on Firefox.
When I looked at the Firefox plugins (about:plugin) it correctly shows my plugin name and version and shows it as Enabled.
Following is the code I use to load the plugin in javascript -
<object name="fp" type="application/x-myplugin" width="0" height="0">
<embed name="jsPlugin" id="jsPlugin" width="0" height="0" type="application/x-myplugin">
</embed>
</object>
And I use this plugin as follows -
function PluginVwersion(){
var jsPlugin = document.getElementById('jsPlugin');
jsPlugin.GetScannerDetails();
}
But whenever I test this code in firefox, it doesn't work, and I see following error in the Error Console -
Error: jsPlugin.GetScannerDetails is not a function
Source file: file:///Users/u162794/Desktop/test.html
Any help is appreciated.
Regards,
Yogesh Joshi
Why exactly are you trying to use an embed tag inside an object tag? Remove the embed tag, set your object tag id to jsPlugin, and then try it.
<object id="jsPlugin" type="application/x-myplugin" width="0" height="0"></object>
Also try using the example FBControl.htm file that is created in the build/projects//gen folder in your project like is suggested on the FireBreath website.

Using Script # 0.7 with MVC 3

I'm trying to use Script# 0.7 with MVC 3 using the ScriptSharpSection and all that stuff.
So far I'm doing
#{ Ajax.InitializeScripts();
}
but I get the exception: "The referenced script named 'loader' was not registered in configuration as a script."
I can bypass that exception adding a <script name="loader" ... but I don't know that scripts has to do.
Is there any example showing how this is done?
Thanks.
I still need to get examples out.
Does your web.config have this:
<configSections>
<section name="scriptSharp" type="ScriptSharp.Web.Configuration.ScriptSharpSection, ScriptSharp.Web"
allowDefinition="MachineToApplication" requirePermission="false" />
</configSections>
...
<scriptSharp clientScriptStorageCookie="scripts">
<script name="loader" url="/Content/Scripts/ssloader.js" version="0.7" />
<script name="loader.debug" url="/Content/Scripts/ssloader.debug.js" version="0.7" />
<script name="core" url="/Content/Scripts/mscorlib.js" version="0.7" />
<script name="core.debug" url="/Content/Scripts/mscorlib.debug.js" version="0.7" />
<script name="jquery" url="http://ajax.googleapis.com/ajax/libs/jquery/1.5.1/jquery.min.js" />
<script name="jquery.debug" url="http://ajax.googleapis.com/ajax/libs/jquery/1.5.1/jquery.js" />
</scriptSharp>
And do you have the ssloader.js script to go along with it?
The MVC APIs render out scripts that are then downloaded by the script loader while managing dependency order etc. For now it is required. Eventually I need to add couple of things:
Have a mode where this is not
required, i.e. it does the
dependency ordering on the server
and renders out vanilla script tags.
Have the ss.init/ss.ready callback
functionality implemented in
mscorlib.js as well, if someone is
only loading mscorlib.js and not
ssloader.js.
Hope that explains the current implementation and what will be added in the future to make ssloader.js optional.

Resources