how do i add default magento contact form to a static block?
{{block type="core/template" name="contactForm" template="contacts/form.phtml"}}
doesn't seem to work.
thanks
Hi,
I know that log4j by default outputs to stderror.
I have been capturing the out put of my application with the following command:
application_to_run 2> log ; cat log | grep FATAL
Is there a way to capture the output without the auxiliary file?
I am binding a textbox to a property on an object, and would like the property to be updated on the TextChanged event and not the default LostFocus event. How would this be done?
It would be nice if there was a property on the Binding object to designate which event should be used.
When creating a flex Chart, the list of colors is always the same, something like (orange, green, blue, ... ) I imagine that the Flex Charts use any array of default colors, Is there a way to get this array ?
Because IE won't do document.getElementById(ID).setAttribute('type','password') I've re-engineered the way the password field woirks on this site:
http://devdae.dialanexchange.com/Default.aspx
so it works in accordance with this idea:
http://www.folksonomy.org/2009/01/12/changing-input-type-from-text-to-password-in-internet-explorer-hack/
It works fine in IE8 and FF3. It breaks in IE7 just as you click into the password field. I'm now tearing my hair out. Can anyone give me a clue what's wrong as IE7's diagnosis is just "Object expected, code 0"?
What are cons if we use JavaScript to apply only CSS property to that browser who do not support that property by default? to keep my HTML semantic and keep free from Deprecated HTML.
Is it against content, style and Behavior separation?
How much it will effect to site accessibility, usability?
What are cons?
If I make accessible site then should i only use whatever i can do with pure css. shouldn't use JavaScript to apply CSS properties
Is it possible to change the element's node name in GWT? I mean something like this:
HTML h = new HTML();
h.getElement().setNodeName("mydiv")
while there is no setNodeName() method for Element.
I'd like to acquire <mydiv>some contents</mydiv> instead of default tag <div>some contents</div>
Thanks for any hints.
Hi everyone!
I just wanted to know if any of you had any problems using java default HttpURLConnection class. Some kind of bug that made you switch to apache commons.
Or is it just the (ugly) interface that class exposes that justifies the birth of 3rd party http lib?
Disclosure: I heard some arguments against java.net having some serious problems, but I'm finding hard to believe that a class that is part of the java core distribution still has issues after several releases of the JDK
hello all
i have 3 modules in my application , like following sturcture
application
|
default
|---models
|--views
|--forms
|--controller
admin
|---models
|--views
|--forms
|--controller
cars
|---models
|--views
|--forms
|--controller
bootstrap.php
how could i create autoloader for all forms and models in mouldes?
thanks?
I run .NET application with default rights, then I need to perform some action which requires admin rights.
How to get admin rights on-demand in .NET application?
Running application with admin rights from the beggining may not be needed as such action may not be called.
Is there a good php syntax highlighter for Emacs? I'm using Emacs 23. I've tried php-mode, but that doesn't do anything. I've tried nXhtml, but that ignores my color theme and reverts to some awful looking default. Is there one I've missed or perhaps a configuration setting I've ignored?
Can i change default AdminDateWidget to SelectDateWidget in my models?
How can i do this?
I try:
class RespondentAdmin(admin.ModelAdmin):
formfield_overrides = {
models.DateField: {'widget': SelectDateWidget},
}
but it doesn't work
I'm using windows and I notice that a lot of functions are grayed out because I guess #ifdef GL_GLEXT_PROTOTYPES is not defined. One of these is the VBO extension. Should I just define GL_GLEXT_PROTOTYPES? Otherwise how else can I use VBOs since im using OpenGL32.dll (I want my application to have no dll dependencies not included in Windows by default.) Thanks
Is it possible to create and manage custom permission types in Jetspeed. In addition to the default - folder, page, link, portlet I would like to add document as a type.
I want to then use the list of permissions of type "document" that a principal has to manage access to documents.
Thanks
Datatables has an option to select the number of records shown per page. The default value starts from 10, 25, 50 and 100. How can I change it to start from 5 instead of 10?
10 records is a bit too much and takes a lot of space in my current design.
Thanx!
http://datatables.net/
I usually add the clear form button to HTML forms by default, but tonight I had what alcholics call a "moment of clarity". Why the hell do we add this? In all my years of using the internet I have never gotten to the end of the form and thought "crap!, I screwed up, I need to reset this!". Is this button actually necessary or a hold over from another time?
According to this python page, oursql looks very cool.
oursql has real parameterization.
oursql allows text or binary data to be streamed into the database and streamed out of the database, instead of requiring everything to be buffered in the client.
oursql can both insert rows lazily and fetch rows lazily.
oursql has unicode support on by default.
So, Anyone start using it in the live projects and could share pros and cons over it?
I've found that if I use the CursorManager to set a cursor — CursorManager.setBusyCursor() — then set stage.mouseChildren = false, the cursor set by CursorManager is replaced by the "default" mouse cursor the next time the mouse is moved.
I'm setting stage.mouseChildren = false so that, while the mouse is being dragged, other "stuff" on the stage won't get mouse events (eg, so that mouse-over affordances aren't triggered if I'm in the middle of a drag).
Is there some way I can work around this?
Hi,
I am mainly a windows programmer and need to ask this to Mac experts.
Is there a way to set "Keep in Dock" setting while installing AIR app in Mac?
So that when user does a quit from the dock menu the app remains there, unless user does a "Remove from dock" manually, instead of the default where user has to do a "Keep in Dock" manually.
In the Javascript Shell, I click the browser.xul link and:
$.ajax({url:'http://www.test.com/', async: false}).responseText; works
(async default is true)
$.ajax({url:'http://www.test.com/'}).responseText; doesn't work
what are the ways to make it work?
How to store java.util.Calendar field into one column with Datanucleus JDO. By default it is stored into two columns (millisecs, Timezone) with following JDO metadata.
field name="startDate" serialized="true" embedded="true"
persistence-modifier="persistent"
What need to be changed in metadata to store it into single column (Timestamp)?
Is it posible query (JDOQL) on calendar field when it is in two clumn?
How to view iphone's build-in album photo programmatically?
Could I get the photo from iphone's build-in album without showing the picker view ? same as default photo album application in iphone.
It seems that I can sort an std::vector<std::pair<int, std::string>>, and it will sort based on the int value. Is this a well defined thing to do? Does std::pair have a default ordering based on it's elements?
Hi, I am using syntaxhighlighter (http://alexgorbatchev.com/wiki/SyntaxHighlighter) with a php source code with the ins and del tag.
What I would like to do is to have syntaxhighligher ignore those html tags so that they can be parsed correctly. So I'd like to to display:
test
instead of the default
< del test < /del
Anyone has any idea?