load

How can I ensure correct load of dynamic JavaScript files?

I have an app where generated HTML pages specify a single JavaScript file: <script language="JavaScript" src="/global.js"></script> In global.js is the following code, to load a single user-defined user.js file: var UserJsFile = document.createElement("script"); UserJsFile.type = "text/javascript"; UserJsFile.src = "/user.js"; docume...

Differences of behavior in saving/loading file between iPhone and iPod Touch

Hi, I have developed an application (a Sudoku to be accurate) that runs perfectly smoothly on the iPhone (after of course several minor versions to do some bug fixing). But I have had several reports of issues on iPod Touch exclusively. The normal modus operandi is the following: the first start does not load anything from file the ...

Simple Jquery load function work just in FF but dont work in IE and Safari

Works fine just in FF: <script type="text/javascript"> function loadContent(id,start) { $("#ContentRightBlockTest").load("cast_member.php?_type="+id+"&start="+start+""); } </script> whith onload in the body <body onLoad="loadContent('cast',4);"> ...

Forcing external javascript files (from Digg, Reddit) to load last

I'm working on a WordPress site that has two external javascript files load about half-way down the page. The files are badges from Reddit and Digg, and often add about 4-8 seconds to the total loading time of page — while also preventing the bottom 50% of the page from loading too. The Digg and Reddit javascripts render an <iframe> (wh...

sybase - can not migrate database

hi, I am working on load database dumps to new ase server. but when I try to load 15gb and 32gb dumps to database, I get below error. When I load 2gb dump to db, everything fine. I search on net and they advice to get db dump with sp_flushstats in single user more but I have no chance to get new dumps. isql 1> load database db1 2> ...

How can I know when the content imported via jQuery's .load() method are done completely loading?

I'm working on a website concept that utilizes David DeSandro's jQuery Masonry plugin along with some code inspired by Paul Irish's Infinite Scroll plugin (I couldn't get the plugin to work so I wrote something similar myself). I've done the integration so the basic concept that I have does work. I'm firing jQuery's .load() method when...

avoid page load on html image button click

I have code on aspx page : <input id="imgBtnUpdate" type="image" src="../images/update_btn.gif" value="Update" onclick="javascript:showModalPopupUpdate();"/> also Script is : var popUpObj11; function showModalPopupUpdate() { popUpObj11 = window.open("AddPopup.aspx?mode=Update", "ModalPopUp", "toolbar=no,"...

How to load jquery plugin on page load

Im trying to use this page slider jquery plugin, you can see the demo here: http://www.derekperez.com/jquery-pageslide/demo/ I can get it to work, but it works when you click a link. I would like to make it automatically run when they go to a certain page, is this possible? I am very new to this and searched google but couldnt find a s...

ajax and jquery to load content

http://www.yensdesign.com/tutorials/contentajax/ In this tutorial, we see that the content of the page that is loaded by ajax slides up and slides down, but i want the content relating to the old link to slide up and content of new link to slide down.. could you please tell how to do that.. Thank you, Raj ...

Waiting for image to load in Javascript

I'm making an Ajax call which returns me some info including an image path. I prepare all those informations in my HTML which will be displayed as a kind of popup. I just toggle the visibility of by popup div from hidden to visible. To set the position of my popup div, I have to calculate depending on the height of the image. So, I have...

I want to load multiple images very fast on a website, what's the best method?

So.. my idea is to load a full manga/comics at once, with a progress bar included, and make sort of a stream, like: My page loads the basic (HTML+CSS+JS) (of course) As done, I start loading the imgs(the URLs are stored on JS var) from my server, one a time (or some faster way) so I can make a sort of progress bar. ALTERNATIVE: Is ther...

Tomcat6 on Linux uses 100% CPU whenever ServerSocket is idle

Greetings I am running my webapp on Tomcat6 on Java6 on Ubuntu8.04. The main servlet of this app opens a ServerSocket, with the following simple code: ServerSocket serverSocket = new ServerSocket(6767); Socket xmlSocket = serverSocket.accept(); Of course this runs in a separate thread and with the necessary try-catch blocks....

jquery not workin after callback

I've got a function to parse some data, and get a result which is the same as the previous, with just some classes thrown here and there. $(document).ready(function() { $("div.rating div").click(function(){ var str = $(this).attr('alt'); var b = str.split("-"); var book = b[0]; $("div.book-" + book).load("sites/al...

When does a load event of a browser occur?

Wondering when does a load event occur in a browser? Is it when it receives the header information? ...

How Do LINQ TO SQL Stored Procedure Calls Work?

I have a LINQ TO SQL Context that I have created that calls a stored proc. When I'm looping through the ISingleResult is it creating entities on the fly while the underlying DataReader reads the results or does it put every thing into Entities upfront before the function call returns. Basically what is going on is I'm working with a sto...

jQuery .load() does not load plug-ins

I have a main page with 2 links that load external files via .load(). The first file has a simple JavaScript rollover, which works when the content is loaded. The second file has a jQuery plug-in that does not work when loaded via .load() - but works fine when the data file is viewed by itself. Main file: http://gator1105.hostgator.com/...

jQuery loading images with complete callback

I saw a comment on Ben Nadel's blog where Stephen Rushing posted a loader, but I can't figure out how I can pass the selectors and parameter.. I think I also need a completeCallback & errorCallback functions? function imgLoad(img, completeCallback, errorCallback) { if (img != null && completeCallback != null) { var loadWatch...

How to handle PNG image loading time in html, css

When I have an <a> tag set to a specific image background like this: HTML: <a href="..." title="click here">Click Here</a> CSS: a { background: transparent url(button.png); } and I want the background to change whenever a user hovers over the spot, like this: CSS: a { background: transparent url(button_HOVER.png); } The hover...

jquery slider shows all content on load

Hi, IE somehow shows the whole div when the page loads (just click a button to see it) befor it resizes to the right size. Is it possible to avoid this since it is really ugly: http://www.bbp.nl/luuk-test/wac/partners/ In FF it works perfectly fine (not the layout fully, but the slider) plz help. ...

Nested load image with jquery

I need to load 2 or more images off screen and display them with a transition only when all of them are loaded. I'm having some issues with load() Here is my function it shows a div with a loading message, when the img is loaded it hide the loadig message and call a function with the visual transition (transizione();) function load_im...