XUL Toolbar is not in FF toolbar list [closed] - firefox

This question is unlikely to help any future visitors; it is only relevant to a small geographic area, a specific moment in time, or an extraordinarily narrow situation that is not generally applicable to the worldwide audience of the internet. For help making this question more broadly applicable, visit the help center.
Closed 9 years ago.
Ive got a following problem.
I made a XUL toolbar. Toolbar works correctly, it is displayed correctly and works fine. The only problem is that it is not displayed in the list of toolbars in Firefox. I want it to be in this list - i want to be able to hide/show it from context menu.
What my problem could be in? XUL is organized in following way:
<?xml version="1.0" encoding="windows-1251"?>
<overlay id="myOverlayName"
xmlns:html="http://www.w3.org/1999/xhtml"
xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
<script type="application/x-javascript" src="json.js"></script>
<script type="application/x-javascript" src="md5.js"></script>
<script type="application/x-javascript" src="sd.js"></script>
<toolbox id="navigator-toolbox">
<toolbar id="somebarid" mode="full"
customizable="false"
toolbarName="toolbarname"
accessibleType="1020"
context="toolbar-context-menu" >
...
...
</toolbar>
</toolbox>
</overlay>

toolbarName="toolbarname" should :
1) be spelled toolbarname
and
2) exactly match <em:name>toolbarname</em:name> string in RDF.
After that it works well.

Related

Inserting an <h1> tag with affecting font [closed]

This question is unlikely to help any future visitors; it is only relevant to a small geographic area, a specific moment in time, or an extraordinarily narrow situation that is not generally applicable to the worldwide audience of the internet. For help making this question more broadly applicable, visit the help center.
Closed 9 years ago.
<p style="margin-left: 14" class="style19"><b>
<font size="6" color="#001E5A" face="Arial">401K Rollover and
Retirement Planning Center</font></b>
Where do I add the <h1> and </h1> tags without affecting the font or other characteristics?
You shouldn't be using markup for styling - use CSS for that, like:
Markup:
<h1> 401K Rollover and Retirement Planning Center</h1>
CSS
h1{
font-size: 6px;
font-family: Arial;
font-weight: bold;
}
Here it is the result.
You can embed the CSS code either in a <style type="text/css">tag, or in an external file, you would refer to as:
<link rel="stylesheet" type="text/css" href="/path/to/someStyleSheet.css">
Anyway, search for some recent web development guidelines online in order to get a better clue on the topic.

How to get the the chosen image and show it on the same page using jquery ajax [closed]

This question is unlikely to help any future visitors; it is only relevant to a small geographic area, a specific moment in time, or an extraordinarily narrow situation that is not generally applicable to the worldwide audience of the internet. For help making this question more broadly applicable, visit the help center.
Closed 10 years ago.
I want to show the uploaded image on the same page without refreshing the page .
<form action='xyz.php' method='post' enctype='multipart/form-data'>
<input type='file' name='image' id='image'>
<input type='submit' name='ok' id='ok' value='upload'>
</form>
<div id='uploadedImage'></div>
<script>
$(document).ready(function(){
$('#ok').click(function (e) {
e.preventDefault();
// then should be the jquery ajax call and response ?
// help with this code .
});
});
</script>
Check out this jQuery File Upload plugin.
By standart means you can't (you can, but in two words you have to write many code with hiding inputs and showing buttons). But there are several good plugins you can use. You can check https://github.com/valums/file-uploader. It is open-code, so you can either use it or you can see how ajax upload is implemented

MissingTemplate : Render partial in Rails 3.2.3 [closed]

This question is unlikely to help any future visitors; it is only relevant to a small geographic area, a specific moment in time, or an extraordinarily narrow situation that is not generally applicable to the worldwide audience of the internet. For help making this question more broadly applicable, visit the help center.
Closed 10 years ago.
Hi I am new to Ruby on Rails and I am following Michael Hartl's book online.
In Partials section of his book. The code he used to render partial was <%= render 'layouts/stylesheets' %>
but I get this error.
I read the API and tried this <%=render :partial => "/layouts/stylesheets" %> but still can't figure this one out.
Thanks for all the help!
In your view, make sure you have the following structure:
- views
- layouts
- application.html.erb
- _stylesheets.html.erb
Your code should be:
<%= render 'layouts/stylesheets' %>
If your main template is inside the layouts folder:
<%= render 'stylesheets' %>
I overlooked the filename. When I initially created the file, after the .erb extension, I accidentally put a space after.

JuiceUI component not saving viewstate [closed]

This question is unlikely to help any future visitors; it is only relevant to a small geographic area, a specific moment in time, or an extraordinarily narrow situation that is not generally applicable to the worldwide audience of the internet. For help making this question more broadly applicable, visit the help center.
Closed 10 years ago.
When using the DatePicker JuiceUI control the text field used to store the value does not retain its value upon postback. The DatePicker control is set as follows;
<asp:TextBox ID="txt_DueDate" Type="date" MaxLength="50" CssClass="requiredField" Width="75" runat="server" />
<Juice:Datepicker ID="dp_DueDate" TargetControlID="txt_DueDate" ButtonImage="/images/signs/ico_calendar.gif" DateFormat="dd/mm/yy" ButtonImageOnly="true" ShowOn="both" ButtonText="Select date" runat="server" />
Apart from adding the DatePicker control and the Type="date" attribute to the text box, this text box stored the value from a previous javascript only date picker and maintained it's value after postback.
Is there a attribute I am missing on either of these controls to make viewstate work again?
I tested the code you provided in a new page with a single button and the textbox retained the value set by the datepicker on postback initiated by an asp:button. There must be something else in your code resetting the value of the textbox.

CKEditor: unable to cancel anchor default behaviour (href page change) after mode switch (source/wysiwyg) in FF [closed]

This question is unlikely to help any future visitors; it is only relevant to a small geographic area, a specific moment in time, or an extraordinarily narrow situation that is not generally applicable to the worldwide audience of the internet. For help making this question more broadly applicable, visit the help center.
Closed 9 years ago.
We have a CKEditor in place, on a ASP.Net MVC 3 page:
var editor = CKEDITOR.replace(...);
Inside this editor we use some plugins to create several types of elements, the element causing trouble is created with this structure:
<div backendname="asfasdf" class="editableArea" contenteditable="false" displayname="asdfasdf"
fieldheight="50" fieldlength="610" fieldtype="5" maxchars="0" required="true">
<a href="google.com">
<img align="top" alt="" hspace="0" src="http://someaddress/img.jpg"
style="border-width: 0pt; border-style: solid; margin: 0pt;
width: 420px; height: 315px;" vspace="0" />
</a>
</div>
When creating this element, we are attaching (via jQuery) the click event with a function of our own, which sums up to this:
$jq(field.$).find('a').click(function (event) {
event.preventDefault();
event.returnValue = false;
return false;
});
As you can see we've been trying some variations for the event cancelation to prevent anchor behaviour. When the element is first created this works as expected. The problem araises when we switch modes in CKEditor.
For those unfamiliar with CKEditor, when you switch modes between "source" and "wysiwyg/design" the iframe that design mode uses is destroyed and replaced with a textarea. When switching back into design, the iframe is recreated and all content populated.
We've tried to use this event on CKEditor to reattach the click event, like this:
editor.on('mode', function (e) {
if (e.data.previousMode == 'source') {
$jq("iframe").contents().find('.editableArea a').click(AnchorClick);
}
});
function AnchorClick(event) {
event.preventDefualt();
event.originalEvent.preventDefault();
event.preventPropagation();
event.returnValue = false;
return false;
} (this function was separated for debugging purposes)
Again, we tried anything we could think of, but still FF follows the link inside the iframe, which causes the lose of the CKEditor and its contents.
We cannot define href="..." in the anchor tag since the information in the CKEditor is stored for future usage, therefore we must store the true href in the link.
It's a very peculiar question, I know. The truth is I can't think of anything else to do and can't find information about how to overcome FF behaviour in this particular case. Hopefully at least one of the many users of SO has faced a similar issue and can point us in the right direction.
It was a typo. This issue is solved.
function AnchorClick(event){
event.preventDefualt();
...
}

Resources