Hii
Can anyone tell me how can I show percentage on the piechart....
The percentage is seen on mouseover event but I dont know how to show
the percentage on the piechart's slices....
I have TextBox and ListBox with bunch of elements.
TextBox has KeyDown event handler, the idea behind this is to allow user to press up and down keys to scroll inside ListBox while focus is on TextBox.
When user presses "down key" several times, selected element becomes last visible element on screen. If user has reached bottom of visible list element on screen, I want him to see next element after selected element as well.
Can I create something like an Internet Explorer accelerator using JavaScript on the client-side?
I want a clickable icon to show up when the user selects some text on the page.
What is the event I should wait on?
I have this code in a xaml file now in a event handler code i want to assign a xaml file in a frame source dynamically
the code in xaml file is ..
here this assignment of source is working but how to do that in a .cs file.
ProjectTab.Sourse=???
How the heck do I increment a variable that's inside a session?
If I declare $attempt, each time a user unsuccessfully attempts to login, I want $attempt to increase by 1. In the event it gets to 3, display a captcha.
This doesn't seem to work. :-P
$this->session->set_userdata('attempt',$this->attempt++);
Hi,
I use rich:inputNumberSpinner tag.
The problem is :
I set cursor focus to inside of rich:inputNumberSpinner field, then i hit the enter button from my keyboard, that time page will be automatically refresh.
But i don't need page refresh when i hit the enter button from my keyboard.
The code :
spinnerTagTest.jsp
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f" %>
<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h" %>
<%@ taglib uri="http://richfaces.org/a4j" prefix="a4j" %>
<%@ taglib uri="http://richfaces.org/rich" prefix="rich"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<f:view>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Spinner Tag Test</title>
</head>
<body>
<h:form id="SpinnerForm">
<rich:panel id="SpinnerPanel">
<h:outputText value="Input Spinner Tag : "/>
<rich:inputNumberSpinner id="spinnerField" value="" maxValue="23"
inputSize="2"/>
</rich:panel>
</h:form>
</body>
I also use rich:hotKey for that inputNumberSpinner field. But Page refreshed.
<rich:hotKey key="return"
selector="#spinnerField"
handler="event.stopPropagation();event.preventDefault();
return false;"/>
And i check anotherway using javasccript, but page refreshed.
The specific tag and javascript is :
<rich:inputNumberSpinner id="spinnerField" value="" maxValue="23" inputSize="2"
oninputkeypress="return stopPageRefresh();"/>
<script type="text/javascript">
function stopPageRefresh()
{
return false;
}
</script>
Here i use one alert message inside of stopPageRefresh().
But i hit enter button, first page refreshing and then alert message displayed.
Help me about this.
Thanks in advance.
Hi
Since I am building the columns from code-behind, I need to attach hyperlink into one of the columns from code behind. And also, I need to add the click event.
How can I do that and its data-binding in code behind? Please advise.
Thanks
AJ
Is there a way to detect when the disabled attribute of an input changes in JQuery. I want to toggle the style based on the value.
I can copy/paste the same enable/disable code for each change event (as I did below) but I was looking for a more generic approach.
Can I create a custom event that will monitor the disabled attribute of specified inputs?
Example:
<style type="text/css">.disabled{ background-color:#dcdcdc; }</style>
<fieldset>
<legend>Option 1</legend>
<input type="radio" name="Group1" id="Radio1" value="Yes" />Yes
<input type="radio" name="Group1" id="Radio2" value="No" checked="checked" />No
<div id="Group1Fields" style="margin-left: 20px;">
Percentage 1:
<input type="text" id="Percentage1" disabled="disabled" /><br />
Percentage 2:
<input type="text" id="Percentage2" disabled="disabled" /><br />
</div>
</fieldset>
<fieldset>
<legend>Option 2</legend>
<input type="radio" name="Group2" id="Radio3" value="Yes" checked="checked" />Yes
<input type="radio" name="Group2" id="Radio4" value="No" />No
<div id="Group2Fields" style="margin-left: 20px;">
Percentage 1:
<input type="text" id="Text1" /><br />
Percentage 2:
<input type="text" id="Text2" /><br />
</div>
</fieldset>
<script type="text/javascript">
$(document).ready(function () {
//apply disabled style to all disabled controls
$("input:disabled").addClass("disabled");
$("input[name='Group1']").change(function () {
var disabled = ($(this).val() == "No") ? "disabled" : "";
$("#Group1Fields input").attr("disabled", disabled);
//apply disabled style to all disabled controls
$("input:disabled").addClass("disabled");
//remove disabled style to all enabled controls
$("input:not(:disabled)").removeClass("disabled");
});
$("input[name='Group2']").change(function () {
var disabled = ($(this).val() == "No") ? "disabled" : "";
$("#Group2Fields input").attr("disabled", disabled);
//apply disabled style to all disabled controls
$("input:disabled").addClass("disabled");
//remove disabled style to all enabled controls
$("input:not(:disabled)").removeClass("disabled");
});
});
</script>
Please help me to solve this problem:
I have a form in which i have written onSubmit calling a javascript function.
please tell me in that javascript function how can i check that who was the event generater ( i mean on which button click this even raised)..
Note: onsubmit function call is in form tag..
i am using javascript and asp.net
$(item).droppable({
drop: function(event, ui) {
console.log("triggered");
}
});
I try to call drop by
$(item).trigger("drop", [{},{draggable : $(target_item)}]);
But it doesnt work, any ideas?
When I had elements highlighted upon mouseover, it would work fine with sites with minimal number of elements. But when the number of elements on a page was very big, the effect would "lag" so to speak. It would take a while for each elements to highlight upon mouseover event.
Has someone solved this problem successfully ? I've seen a prototype.js example that does not lag.
I have two blocks of code which basically check for 1) a click event on a radio button e.g.
$("input[id='frmSkill']").click(function(){
//do something
});
And 2) a block of code to check if a radio button is :checked, if so, then perform some actions e.g.
if($("input[id='frmSkill']:checked").val()){
//do something
});
What I'd like to do is combine the two in order to reduce the code as the actions performed under each are the same.
Hi,
I am accessing RepeatForUnit to manage "Repeats" in Lotus Notes.
String RepeatForUnit = (string)((object[])docCalendarDoc.GetItemValue("RepeatForUnit"))[0];
Initially i was getting "D" for Daily event, "W" for Weekly and "Y" for Yearly.
But now properties field not showing any of this value even after adding Repeat in calender.It is not visible in Properties list of Lotus Notes Calender and showing "" (black entry) for above code.
I am not getting why this is happening.Can anybody help me out in this?
I used the mapping solution from this question to have a joined component. But it make hibernate trigger join query to obtain the component event i use fetch="select" in <join>
Please tell me how can i make the joined component lazy init.
Thank you
I'm working with the IHTMLEventObj2 interface to create an event object and it has all these redundant(?) x and y coordinates:
clientX
offsetX
screenX
x
Is it enough for me to specify one and the others will be deduced?
The service was started then stopped.Some services automatically stop if there is no work to do?
I've tried clearing all event logs but the error still persists.
Couldn't find an answer, but Im trying to get the last ID of the last div that was created on the page. The code I'm using doesn't seem to work using .last(). My syntax is probably wrong but I can't get it to show the ID.
jQuery(document).ready(function()
{jQuery("a.more_posts").live('click', function(event){
jQuery("div[id^='statuscontainer_']").last();
var id = parseInt(this.id.replace("statuscontainer_", ""));
alert(id);
});
});
hi friends,
I m creating a game, in that i want to use some animation, but i m new to animations.
I want to create an image ,as soon as i click on imageview, the image should come in bouncing manner as if it is a Ball, so is it possible to do so??? The image is predefined for the game.and it must come after touch begin event occures, can any one help me???
regards
viral.
Hi,
my code is:
var ctaLayer = new google.maps.KmlLayer(
'http://.../per1.kml',
{suppressInfoWindows: true});
ctaLayer.setMap(map);
var info_percurso = new google.maps.InfoWindow({
content: 'hi'
});
google.maps.event.addListener(ctaLayer, 'click', function() {
info_percurso.open(map,ctaLayer);
alert("dd");
});
this is possible?
this code doesn't work...but the operation is possible?
I need to create my own infoWindow for database queries
Hi,
Im making an asyncronous call from a client class to a server class.
From this client class i call the method "execute", and in background the server class call the "doInBackground" method.
How could i know from the client class when the "doInBackground" is finished? Should i implement an event on the server class and suscribe to it from the client one?
Thanks in advance.
Best Regards.
Josema.
I have a string property in my ViewModel/Datacontext and want a simple button that copies its contents to the clipboard. Is this possible to do from XAML, or I do I need to handle the button click event (or use an ICommand) to accomplish this? I thought the following would work, but my button is always greyed out:
<Button Width="100" Content="Copy" Command="ApplicationCommands.Copy"
CommandTarget="{Binding MyStringProperty}"/>
Hi All!
i am facing a problem with UIwebview in landscape mode.
in landscape mode the touche event works only 320x320. its not working on entire screen in UIwebview!
In order to track the overall user clickstream, I'd like to fire a javascript event, if the user right-clicks, and select "Open in new Tab" (or middle-clicks in most browsers) on a link. Most of these links are linking outside of my site, and I'd like to interfere with overall browser experience (such as: status bar, etc) as little as possible. What options are there to solve this?