My jqgrid has a bottom toolbar and changes height depending on the user-agent:
$('#titles-table').jqGrid(
{
.
.
.
height: function(){ return (navigator.userAgent.match(/iPad/i) !=null) ? "100%" : "222px";}(),
toolbar : [true,"bottom"]
}
The grid displays a list of titles which is sometimes very long. Therefore, the grid wil...
I'm working on some basic form validation styles for an ASP.Net website.
I need to select all span elements that are visible, and add a css style to another element. (Just to indicate which input fields are invalid.)
The below code works like a charm in FF and Safari, but fails in IE. I've narrowed the problem down to the :visible selec...
I have a document management system which creates a report showing people who own which document. There are times where people have 0 documents and in that case I would like the repeater table for that person to not be visible. I have looked around for a while and have not had much luck, maybe its because I am new or maybe its because ...
I'm trying to implement enhanced TabControl/TabPage classes, in order to achieve real TabVisible feature, since TabPage's Visible property doesn't work as expected.
I'm working with C# / WinForms / VS2005 / .Net FW 2.0; I've implemented the code this way:
http://csharp.pastebin.com/AUnzRQLw
And I've made a Form to test it, checking/un...
I want to have a hidden div on the page with the elements of a SimpleModal dialogue, but when I set the CSS visibility to hidden and fire the modal, it is empty.
How can I use a DIV in this fashion without making it visible on the page?
...
I have an application in Forms that has a lot of custom controls, all on panels within a home-grown tab control. So far, so good.
The problem comes from some systems, all XP. If you start the app from a shortcut, with the "Run Maximized" option selected, the application runs but the tabs do not paint properly. Also, the desktop seems to...
Hello,
I have made a sample application to flip through different layouts in a viewflipper.
XML is basically (pseudo-code)
<ViewFlipper>
<LinearLayout><TextView text:"this is the first page" /></LinearLayout>
<LinearLayout><TextView text:"this is the second page" /></LinearLayout>
<LinearLayout><TextView text:"this is the third page" ...
Hello everybody,
I'm working on a application which is communicating by network to monitor another application's variables.
The remote application has loads of variables, and I want to transfer only the variables that I'm currently watching on my user interface, to avoid overloading the network.
I try to keep the architecture of my a...
How do I convert this small script to Prototype:
Basically I need to check if an element is visible or not, I do with jquery this way: $('id_element').is(':visible'); but I dont know how to do it similar with Prototype.
<div id="myDiv" style="display:none">A Div</div>
<script>
if(document.getElementById('myDiv').style.display == 'none'...
I have a problem. I need to hide my window at window load. But
private void Form1_Load(object sender, EventArgs e)
{
this.Visible = false;
}
is not working. And property Visible remains true. Am I missing something?
...
I have an imageView and want it to work like this:
ImageViewer visible
5 second pause
image view invisible
5 second pause
ImageViewer visible
and so on ...
How do I do that? I have tried sleep but it freezes the whole program in 5 seconds. I just want to affect my imageView.
...
I set sameting to invisible like this on Android:
myImageView.setVisibility(View.INVISIBLE);
And then visible like this:
myImageView.setVisibility(View.VISIBLE);
I don't know if myImageView is visible or not now, how can I check it like this:
if (IF myImageView IS VISIBLE) {
Do something
} else {
Do something else
}
How can I do...
Yesterday i tried to create an object for this class to be able to use its methods getGsmBitErrorRate() and getGsmSignalStrength(), but Eclipse IDE throws me error that constructor is not visible. The line:
SignalStrength x = new SignalStrength();
Target SDK set in manifest file is 7. Any ideas what can be done to solve this problem?
...
This is a strange one. I have a couple of hyperlinks that I use for paginating a RadGrid (next page, prev page). All works well until I decided to hide one or the other when on the first/last page. So I added the Visible attribute and set a value of true/false using a databinding expression like so:
<asp:HyperLink Visible="<%#(int)DataB...
"TreeNode.IsVisible" is available but I can't tell from it whether it's visible or partially visible - "true if the tree node is visible or partially visible".
e.g. How can I tell if the following "Temporary ASP.NET" tree node is partially visible?
Also, how the text hovers directly over the node is called? Is it a tooltip in the end? ...
Just a simple problem without any idea of how to do it. Does anyone know how/if this can be done?
Reason: I just want one solid dialog box with no partitions as it looks a little better in my application.
EDIT
public void showCustomDialog() {
Dialog dialog = new Dialog(this);
dialog.setContentView(R.layout.customdialog);
...
when i click on #button, it's stilling doing the 'do something', even though .wrapper is animating and .wrapper span is not visible. so it's not following the rules. what's wrong?
$('#button').click(function(){
if(
$('.wrapper').not(':animated') && $('.wrapper span').is(':visible')
) {
//do something
}
})
...