User talk:Asqueella: Difference between revisions

From MozillaZine Knowledge Base
Jump to navigationJump to search
 
(9 intermediate revisions by 3 users not shown)
Line 1: Line 1:
BTW: I like your extension Menu Editor. Hoping for a new version. ;) Maybe you could use the code of this enhanced version: http://www.extensionsmirror.nl/index.php?showtopic=431 But there is a bug in it. I can write a bug report if you're interested. --[[User:Christian Bischoff|Christian Bischoff]] 19.01.2005 01:37
==The new "Knowledge Base changes" article==


:In fact I'm not the original author of Menu editor, - the "enhanced version" is my baby. I know it's buggy and appreciate bug reports in mozdev.org's bugzilla.--[[User:Asqueella|Asqueella]] 01:44, 19 Jan 2005 (PST)
Hi!


---
As a regular contributor to the Knowledge Base, I thought you'd like to know about a new page I've created: [[Knowledge Base changes]]. The purpose of the page is explained in that article, but in summary I think it would be a good central place for existing editors to discuss potentially controversial changes to the KB, and for new editors to propose changes before implementing them.  Any feedback will be gratefully received on the [[Talk:Knowledge Base changes | talk page for that article]], or on my [[User talk:Mozcerize | user talk page]]!


Hi! Didn't mean to imply any contempt for Javascript in my Javscript is not Java article :-P. (Although I confess that I am a Java developer rather than a Javascript one!) I was simply in a rush and copy-and-pasted a chunk of stuff that I'd posted on the talk page for Java in response to a user's confusion (and reiterated a hundred times in various forums :-/). [Feel free to delete this when you've read it!] --[[User:Mozcerize|Mozcerize]]
Best wishes, --[[User:Mozcerize|Mozcerize]] 13:03, 2 January 2006 (UTC)
: Don't worry, you didn't hurt my feelings :) --[[User:Asqueella|asqueella]]


== Please help me add an event on page load ==
==Me and my crazy moving stuff to devmo==
I've made a template so that people will have a chance to say "hey, there's stuff missing" before I replace the development articles here. See [[JavaScript coding guidelines]] and [[Localize extension descriptions]]--[[User:Np|Np]] 22:54, 31 August 2006 (UTC)
: Yep, a good idea, but all I really need is that you check the contents of the page you're blanking before blanking it. Thanks. --[[User:Asqueella|asqueella]] 16:57, 3 September 2006 (UTC)


Hi
==[[nsIWindowMediator]]==
  I was going by this reference
You're the sole author of [[nsIWindowMediator]]. Do I have your permission to move its contents to [http://developer.mozilla.org/en/docs/nsIWindowMediator MDC]? (You can do it yourself, if you like).--[[User:Np|Np]] 19:59, 18 September 2006 (UTC)
  http://kb.mozillazine.org/Dev_:_Extensions_:_Example_Code_:_On_Tab_Load
: Sure, I'd appreciate it. You can move anything I wrote to MDC. --[[User:Asqueella|asqueella]] 20:13, 19 September 2006 (UTC)


I am not able to understand where should I put the window.addEventListener
==[[Inserting text at cursor]]==
Also I want to know how can fire an event whenever the activity indicator stops
What's the functional difference between the code posted there and this (which I use in Stylish):
 
  function insertCodeAtCaret(snippet) {
Can you please help me
var selectionEnd = codeElement.selectionStart + snippet.length;
Please mail me at ram@netcore.co.in
codeElement.value = codeElement.value.substring(0, codeElement.selectionStart) + snippet + codeElement.value.substring(codeElement.selectionEnd, codeElement.value.length);
 
codeElement.focus();
Thanks
codeElement.setSelectionRange(selectionEnd, selectionEnd);
Ram
}
 
--[[User:Np|Np]] 17:58, 24 May 2007 (UTC)
:I recommend you reading some [[Dev : Extensions#Tutorials|online tutorials]], and checking out where this code is in URIid extension.
: I dunno, ask in the newsgroups. There shouldn't be any now. Earlier assigning to .value would clear the editor's transaction list, but that was fixed a while ago.
:Then try searching the [http://forums.mozillazine.org/viewforum.php?f=19 forums] and if you still need help, post your question there. --[[User:Asqueella|asqueella]]
: FWIW, I don't think I wrote that snippet you're referring to, I probably just moved it from another location. --[[User:Asqueella|asqueella]] 20:41, 24 May 2007 (UTC)

Latest revision as of 20:41, 24 May 2007

The new "Knowledge Base changes" article

Hi!

As a regular contributor to the Knowledge Base, I thought you'd like to know about a new page I've created: Knowledge Base changes. The purpose of the page is explained in that article, but in summary I think it would be a good central place for existing editors to discuss potentially controversial changes to the KB, and for new editors to propose changes before implementing them. Any feedback will be gratefully received on the talk page for that article, or on my user talk page!

Best wishes, --Mozcerize 13:03, 2 January 2006 (UTC)

Me and my crazy moving stuff to devmo

I've made a template so that people will have a chance to say "hey, there's stuff missing" before I replace the development articles here. See JavaScript coding guidelines and Localize extension descriptions--Np 22:54, 31 August 2006 (UTC)

Yep, a good idea, but all I really need is that you check the contents of the page you're blanking before blanking it. Thanks. --asqueella 16:57, 3 September 2006 (UTC)

nsIWindowMediator

You're the sole author of nsIWindowMediator. Do I have your permission to move its contents to MDC? (You can do it yourself, if you like).--Np 19:59, 18 September 2006 (UTC)

Sure, I'd appreciate it. You can move anything I wrote to MDC. --asqueella 20:13, 19 September 2006 (UTC)

Inserting text at cursor

What's the functional difference between the code posted there and this (which I use in Stylish):

function insertCodeAtCaret(snippet) {
	var selectionEnd = codeElement.selectionStart + snippet.length;
	codeElement.value = codeElement.value.substring(0, codeElement.selectionStart) + snippet + codeElement.value.substring(codeElement.selectionEnd, codeElement.value.length);
	codeElement.focus();
	codeElement.setSelectionRange(selectionEnd, selectionEnd);
}

--Np 17:58, 24 May 2007 (UTC)

I dunno, ask in the newsgroups. There shouldn't be any now. Earlier assigning to .value would clear the editor's transaction list, but that was fixed a while ago.
FWIW, I don't think I wrote that snippet you're referring to, I probably just moved it from another location. --asqueella 20:41, 24 May 2007 (UTC)