change

How to change portlet mode outside processAction (jsr168)?

I'm writing mail client portlet. I would like to show portlet in edit mode for new user and don't allow change this mode while user filling html form. ...

PHP: Change color of text based on $value

What's the easiest way to change a text's color based on a variable? For example: If $var is between 1-5, green. Between 6-10, Orange. Greater than 11, Red. ...

Change Key in WPF KeyDown

Legacy app conversion issue. VB6 TextBox_KeyDown() allows key to be changed (e.g. force keystroke to upper case but there are many other uses). How can this be done in WPF? The only way I can see is too handle all TextBox keystrokes. In effect, reimplement TextBox editing. I'd rather not go there. ...

Name that blog entry - Modelling changes over time with two db columns only.

I vaguely remember reading a blog entry (written by a well-known blogger I think) about how to model price changes over time, and that you could model most changes by saving two dates only (two columns in a db). The blog talked about prices on a website changing over time and how you could figure out the right price to charge knowing onl...

Jquery UI autocomplete event change

Hi I got a problem with change event. By documntation there should be object ui.item After an item was selected; ui.item refers to the selected item. Always triggered after the close event. But when I try it ui.item is undefined :( I want unset s_town_id when input in autocomplete doesn't match with data from script. Thx for any h...

Is There any API in windows to detect whether the disk situation is changed?

I am writting a application to detect the change of system disks. for example, if user insert a disk, the application can detect this event. If user change the volume label, I can receive the message. Is there any APIs to detect this kind of event? Many Thanks! ...

HTML Input on change of value

Hello, I have an input tag. This tag does not have the autocomplete feature turned off, thus, one does not necessarily need to release a key to change the value of this field and focus anotehr one. My question is: how can I detect ANY value changes of this particular field, like e. g. <input onvaluechange="//do following..." /> The ...

how do i get change to div id to wait until next image is loaded

I am building a website where I need to change the div class that contains image in order to manipulate the style of the next image given it is different in size and needs to be handled differently. I have a manual slideshow system working with an array of images and an array of corresponding class names. The problem is that the javasc...

How to change the attribute value of svg file

Hello, In samplexml.svg there is a node <image width="744" height="1052" xlink:href="image1.png"/> I need to replace "image1.png" with another value like "image2.png". Please guide me with sample code how to to that. I could get the attribute value "image1.png". Here is the code: $xdoc = new DomDocument; $xdoc->Load('samplexml.svg'...

Change color of the iPhone screen

Hi, I need to change the color of the iPhone screen when i touch on it. The only thing i need to do is to change the color of the area where i am touching. if i am placing a star on the screen as touch then only that area color will be changed. Any idea about this? Thanks in advance, SMAK ...

How to change Eclipse indentation style for automatically generated code?

Is there any way to change indentation style for automatically generated code in Eclipse? I'd like to change from class Test { blah blah } to class Test { blah blah } ...

Delphi: how to lock dfm-s to not change...?

Hi! We used Delphi 6 long times ago. Our problem, that Delphi have two problems with DFMs: 1.) When some linked resource (like DataSet) will removed, Delphi many times forget to ask you that "some of the resources are linked, you need to redirect...". This happens, when the actual form is not added to the project, or it is not opened. ...

Android question. If i create an Options menu with menu.xml, can I change the menu buttons' text size, color etc using xml?

Android question. If i create an Options menu with menu.xml, can I change the menu buttons' standard text size, color etc using xml? I would like to change text size, bold, and color. I would like to avoid using themes and styles for this application. Thank you for reading my question. ...

Jquery: change event not triggered in IE

Hi, I have some code updating a dropdownlist, and then I fire the "change" event manually. It works like it should in firefox, opera and so on, but not in Internet Explorer. Any idea why? Code attached below. $(".bringFraktvalgRadio").click(function() { var selectedValue = $(".bringFraktvalgRadio:checked").val(); $("#<%= dro...

When do I need to use automatic poperties and when properties with propertychanged event ?

Hello, I am using wpf and its C sharp! I have this in my Animal.cs clas private string _animalName; public string AnimalName { get { return _animalName; } set { if(_animalName!= value) { _animalName= value; this.NotifyPropertyChanged("AnimalName")...

Rewrite document.location without loading

I am developing a system which is 100% ajax, except of course, the first request. I am interested in changing the address in document.location, using javascript. But I don't want the browser to load the page on that "new" location. Does anyone know how I can do this? miro ...

Android question. Is there a link to a simple example of changing the screen brightness for an activity?

There are apparently at least three different techniques for changing screen brightness in the Android OS. Two of them no longer work post-cupcake and the third accepted technique evidently has a bug. I would like to increase screen brightness at the start of a one-view activity then turn the brightness back to the user setting at the e...

How to change the label of "Search" key on iPhone's keyboard to customized text?

I am using a UISearchBar and i want to change the "Search" key's label to customized text such as "ABC".how to do? thanks in advance! ...

Change the Color Of Certain Words In Textarea using Jquery ?

How to Change the Color Of Certain Words In Textarea using Jquery ? For instance, i have a textarea <textarea id="txt"> </textarea> When i type into the textarea, certain words like "is, a , was ..." should be colored or highlighted. The aim is to create a ultra simple HTML syntax highlighter for my project that's all ! ...

How to assign Application Icon that will display in Task bar?

I am working on a Wpf desktop application, whenever i run my application it shows me a window and associated tab in the task bar(Normal windows feature). My problem is that the tab is using window's icon for unknown file-type, I tried with Icon property of Window, Icon gets assigned but still problem is when I run application, task bar T...