load

Collection should return null or empty upon a Db load ending with no records found?

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 ...

Lazy loading a plugin (jQuery)

$('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 { ...

How to wait for jQuery's load function to render loaded content before executing callback function

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...

iPhone UIWebView - Calling loadHTMLString:baseURL: a second time doesn't do anything?

...

How can I read this file in MATLAB?

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? ...

How many databases can MySQL handle?

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...

Different method for jQuery.load(); To allow a stop method on the load process.

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 ...

Loading jQuery code (along with html) via Ajax or jQuery's post or get methods

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...

how to show image loading gif using jquery

can ny one suggest how to do show image loading gif when image is loading in runtime using jquery. ...

how can i load a FLVplayback from a specific time?

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ı...

Import gif file to SSIS and save binary, filename etc to table fields

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...

iphone asynchronous file load?

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 ...

jQuery.load() with AJAX Kontactr form

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...

load database from text file

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. ...

How does one hide content from a user until a stylesheet is loaded and executed?

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...

Getting jQuery plugin to act on dynamically loaded (ajax) content

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...

Capture iframe load complete event.

Is there a way to capture when the contents of an iframe have fully loaded from the parent page? ...

PreLoad and cache image in jQuery for "loading" icon (or any better solution)

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...

How to reference pound sign (#) in jQuery?

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(...

Jquery Ajax image load works only after alert statement is inserted in $(window).one function

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 ...