I'm new to XSLT and I can't figure out how to get an xsl:if that matches when there are no child tags.
I want this to match:
<context>
howdy
</context>
And this not:
<context>
<child>
howdy
</child>
</context>
...
Hi, I am using an ObjectDataProvider and a DataTemplate to populate a MenuItem inside my Menu bar. (WPF, C#/XAML) See snipet below.
Result: The top menu item appears, when i click on it, the wrapping menu item (the one with the bound header text) appears along with the little arrow indicating the presence of children but hovering or cli...
Hi,
I got the following situation:
I got a table structure like this:
<tr>
<td>text</td>
<td>text</td>
<td>text</td>
<td><a href="#"><img src="#" /></td>
<td><span style="display:hidden"><a href="#">e</a> <a href="#">e</a></td>
</tr>
What I'm doing with the following function is displaying the hidden span on hover of the t...
I am creating a tabbed content interface. The content panels are an unordered list created using a server-side script. I want to add tabs via jQuery to control the panels. The only requirement for the jQuery plugin to work is to have the same amount of panels as tabs (the number of panels isn't always consistent). I need to query how...
Hi
I know I'm just being OCD about a few milliseconds worth of performance time, but I was just wondering why the following is true for me. It seems goes against my logic.
I currently have a div that has fades out the image inside on hover:
$('div.someclass').hover(function() {
$(this).children('img').fadeOut(function(){
/...
My method fades a div box out and has a callback that calls a method... like this:
function closeWindow(windowIdPrefix, speed) {
$("#" + windowIdPrefix + "_ViewPanel").fadeOut(speed,
function() {
resetWindow(windowIdPrefix);
numWindowsOpen--;
}
);
}
function resetWindow(windowIdPrefix) {
...
Hi,
I am using multiple child models in a complex form (a la http://railsforum.com/viewtopic.php?id=28447). The form works great, but I need to validate a property of the set of child models before accepting the form data into the database. I've come up with one mostly-working, very-kludgy way of doing this. Seems like there has to be a...
I have the handle for a given window. How can I enumerate its child windows?
...
I currently work on a magento webshop, which loads PrototypeJS as framework.
However i need jQuery at some point to do some custom stuff.
jQuery is loaded after prototype and runs in noConflict mode.
Now, here's my demo HTML:
<div id="someID">
<div>child</div>
<div>child</div>
<div>child</div>
</div>
An external JS file is loaded a...
Is there a way to Catch if the childrencollection of a canvas in Silverlight has changed? (when a child is added or removed)
I know the ObservableCollection has such an event, how could i rase one for my Canvas?
...
I am using below code to inject javascript
HtmlElement head = _wb.Document.GetElementsByTagName("head")[0];
HtmlElement scriptEl = _wb.Document.CreateElement("script");
mshtml.IHTMLScriptElement element = (mshtml.IHTMLScriptElement)scriptEl.DomElement;
element.text = "function zoom(){do...
if (div id=myfav has children){
do something
} else {
do something else
}
The if condition is what's giving me trouble. I tried all the following:
if ( $('#myfav:hasChildren') ) { do something }
if ( $('#myfav').children() ) { do something }
if ( $('#myfav:empty') ) { do something }
if ( $('#myfav:not(:has(*))') ...
Is there a way to prevent the opening of a certain form within an MDI container if that said form is already opened? Thanks.
...
I have a the following code for a ScrollViewer in my Silverlight app. The BasketSymbolsView control contains controls that have custom double click triggers applied to them. For some reason the ScrollViewer is preventing the child controls from triggering an action when I double click the BasketSymbolsView controls.
<ScrollViewer x:Na...
Here's my code, with error handling and other stuff removed for clarity:
sub launch_and_monitor {
my ($script, $timeout) = @_;
sub REAPER {
while ((my $child = waitpid(-1, &WNOHANG)) > 0) {}
$SIG{CHLD} = \&REAPER;
}
$SIG{CHLD} = \&REAPER;
my $pid = fork;
if (defined $pid) {
if ($pid =...
I have two sortable lists, one being nested, with a mouse over effect on the li elements of the nested sortable list. My problem is that the mouseover and mouseout functions are being called inconsistently when a user moves the mouse quickly through the list over the child elements.
Here is a sample of what is happening, you have to dr...
Hi,
I'm using .NET C# with standard WinForms, not WPF.
I have this situation.
I'm creating a user control for a month calendar, similar to the .NET one but with a little more functionality.
I have a user control form, that fills with button objects representing dates.
The buttons can be colored with different color depending on their st...
I want to remove the last <li></li>, below is the code:
<div id="q">
<ul><li>
<table><tr><td>Question 1</td><td><input type="text" name="question1" size="60" /></td></tr>
<tr><td>Answer:</td><td><input type="text" name="answer1" size="8" /></td></tr>
</li></ul>
</div>
<input class="btn" id="addquestion" type="button" v...
I have applied an mouseenter effect to a div. When you enter the div, it then animates another div. The problem is, the mouseenter effect applies to the children div as well. How do I apply the effect to just the parent div, but animate the children div?
JS:
$(document).ready(function() {
$('#slideleft').mouseenter(function() {
v...
Hello,
I have an wxWindow. Inside there I've got a wxBoxSize (Vertical). The sizer has 3 child controls.
I want to be able to hide one of the three child controls, and have the sizer and its parent automaticly resize. For example when I hide one child control of the sizer, the window decreases by 200 pixels.
Right now my method of sho...