Hi,
If you have a method that queries the Db and returns a collection populated with the records found, what should be returned upon no records found?
A new collection with .Count == 0 or
null
Is there any consensus on this?
Or returning null and returning an empty collection should have different meanings?
Thanks
...
$('a.lightbox').hover(function () {
if (jQuery().lightbox) {
// required, otherwise lightbox.js will be loaded on hover each time
$("a.lightbox").lightbox({
'type': 'iframe',
'overlayOpacity': 0.5,
'width': 632,
'hideOnContentClick': false
});
} else {
...
Hi,
I am using jQuery's load function to render some of my content when the document is ready.
$(document).ready(function(){
$('#header').load('header.html',function() {
//do call back function});
$('#footer').load('footer.html');
});
I don't want my callback function to execute when the request completes, but rather when...
I have a file named data.dat with the following contents:
my name is elyas 123
this is a book 123.450
my father name -2.34e+05
I want load this file into MATLAB and get the following data as output:
a = 123
b = 123.450
c = -2.34e+05
name = 'elyas'
But I don't know how to do this. Any suggestions?
...
My MySql server currently has 235 databases. Should I worry?
They all have same structure with MyISAM tables.
The hardware is a virtual machine with 2 GB RAM running on a Quad-Core AMD Opteron 2.2GHz.
Recently cPanel sent me an email saying that MySql has failed and a restart has been made.
New databases are being expected to be creat...
This is my first question on here, and I couldn't find any related questions that seem to have the same problem. I found a few people talking about .bind() to disable a link, but my problem is having multiple links that are in different parts of the site loading different pages.
So I am wondering if there is a simple ajax load method I ...
Is it possible to load jquery code in addition to html via ajax or jquery's post or get methods? I am trying to build conditional gui element activation (based on user's input).
It doesn't make sense to create one file with all jquery code taking all the conditionality into consideration. Instead, my hope is that if jquery via ajax allo...
can ny one suggest how to do show image loading gif when image is loading in runtime using jquery.
...
import flash.net.URLLoader;
import fl.video.*;
import flash.utils.getTimer;
fk.autoPlay = false;
// Parametreleri yüklüyoruz.
var myLoaderInfo=new Object();
//Parametrelerin yuklendigine emin olmak için false yapıldı.bunun daha sonra true olması gerekiyor.
myLoaderInfo.myParamsLoaded = false;
// Event.complete i cagırmak için kullanı...
Hi
I need to use SSIS to cycle through a bunch of .gif images in a folder and import each one into a single row in a table, which contains fields such as filename and size, but more crucially, the binary from the file.
I will use a foreach loop to cycle through the files, and probably a script transformation to assign variables to cert...
is there way to load local files in iphone asynchronously? I load uiimages for my uitableview using this:
NSData *imageData = [[NSData alloc] initWithContentsOfFile:fileName];
UIImage *cachedImage = [[[UIImage alloc] initWithData:imageData] autorelease];
but it is slow, because main thread is locked or something until NSData finishes ...
After seeing many questions about how jQuery.load() handles tags in the content to be loaded, I see that jQuery strips out inline tags. But, I'd like to use Kontactr for the contact page in my site, and the much nicer AJAX embed they have is two script tags as in the code examples below. How can I work around the jQuery.load() constrai...
say I have a table named XY_values with columns X_values and Y_values.
now, I have a text file xy.txt which contains those x values and y values, with x values in the 1st column and y values in the second column.
is there any SQL command to load those x and y values from the text file into the XY_values table in the database?
thanks. ...
Hi all smart people!
I'm using a jQuery plugin for sliding panes of content. For about 400ms all the page elements flashes up (text, images, etc.) on top of themselves making for a messy garbled jumble...a brouhaha you could say.
Then the stylesheet comes along and sorts it all out. But for the sake of professionalism and perfectioni...
Hello Stack geniuses!
I have one jQuery plugin (colorbox) that loads a modal popup window (with an external html file). <-- works perfectly by itself. I have another jQuery plugin (jScrollPane) that loads custom scroll bars for divs. <-- it too works perfectly by itself. Both have a JS component and a CSS component.
My process thus f...
Is there a way to capture when the contents of an iframe have fully loaded from the parent page?
...
I am working with dynamic tabs in jQuery. When the user opens a new tab, the content is loaded via ajax:
function addTab(tabId) {
$("#tabs").tabs('add', tabId, tabId);
$(tabId).load("...");
}
I want to display a loading icon while the content is being loaded. So I am setting the tab panel content in the add property of the tab...
I've been trying a new way to set up a website using jQuery to dynamically get the content when a link is clicked. Here is the jQuery code:
$(document).ready(function() {
var content_loader = $('#content-loader');
$('#nav ul li a').click(function () {
$(this).closest('ul').find('li.active').removeClass('active');
$(this).parent(...
Hello,
I have a peculiar problem.
I am loading a JSON file that contains the src, width and height of a number of images.
I am trying to load them into the smooth script jquery plugin and have the images scroll automatically.
The "viewing area" div can fit three images side by side.
When I first load the page, only the first image is ...