load

PHP SOAP XML Response convert to DOM Document loadxml() - not working, empty

I have a SOAP Response which I want convert to a DOM Document. I am using loadxml() for that, but it returns an empty object. <?xml version='1.0' encoding='UTF-8'?><S:Envelope xmlns:S="http://schemas.xmlsoap.org/soap/envelope/"&gt;&lt;S:Body&gt;&lt;ns2:getResponse xmlns:ns2="http://api.sponsoredlistings.ask.com/api/v5/"&gt;&lt;rval xmln...

load google maps in javascript file

I want to load google maps dynamically so I only load them when needed but I keep getting the error google is not defined here is my code $(document).ready(function(){ if($('.geotags').length > 0){ $("head").append('<script type="text/javascript" src="http://www.google.com/jsapi?key=keytogooglemapsapi"&gt;&lt;/script&gt;'); ...

AdBlock is killing my XMLHttpRequests ... work-around?

A quick Google search shows that this is a common problem: AdBlock Plus for Firefox kills XMLHttpRequests. Throws an exception: "Component returned failure code: 0x805e000a." However, the only prescription I could find is to send random parameters in my ajax call but that didn't work. I've renamed file extensions, tried just about ...

iPhone save data getting deleted on upgrade?

I have an app in the app store, and just got a message from a user telling me that upon upgrading to a newer version of the app, their saved data all disappeared. Is there a distinctly wrong way to save data on the iphone that would cause data loss upon upgrading the app to a new version? Here is the code I'm using to load & save, whic...

Loading external images then fading between them using ActionScript 3.0...?

Hi, I'm using the Loader class in AS3.0 to load external images. I need to load a random image each time and I'm using a timer to load a new image after 5 seconds or so. When I load the first image, I call... myMovieClip.addChild(loader); After the first time I call... if (myMovieClip.numChildren > 0) { myMovieClip.addChildAt(lo...

jquery doesn't work after load

hi everyone. I got this jquery code which is working just fine. Except on element I load after the page is ready. $('.reply').click(function(){ ele = $(this).attr('title'); $('#'+ele).load('ajax/form_post.php'); $('#'+ele).show(); return false; }); $('.add_com form').submit(function(){ ele = $(this); $.post(...

jquery load to download the content first

Hello, this is a strange case, I have a jquery script that works with load() and a PHP script with a gif loader until this script is retrieved FADING IN, this jquery is launched on click The problem is that the jquery script is kinda useless for its real intent because this php script I call returns something like <img src="resizer.php...

jQuery delegate problem

This is my first question on SO, so if it seems beyond dumb, please take it easy on me. I have a page with a list of pictures with links for deletion underneath them and with possibility to add more pictures. After each one of this events (that does a #user_gallery load like below, I have to click twice the delete link for it to work. W...

jQuery: loading css on demand + callback if done

hi, i want to load css files on demand (by eg. running a xmlhttp request which returns the css files to be loaded) for example: style1.css, style2.css .. so - is there a way in jQuery (or a plugin) to this: bulk-loading several files + adding all those css-files into the dom when finished loading: firing a callback (like alerting "al...

Get Flex modules from ASP MVC

Hi, We´re developing an ASP MVC application witch the View (aspx) has a Flex embed. This aspx/flex view is composed by a flex application and several modules. So, when we call the application url (http://localhost:9090/MyProject/Flex/Index), the server invoke the method the will return the ActionResult that represents this action, in ...

Sending a history command to ajax load() when browser back is hit.

Hi there My question is kind of hard to explain, but I'll try it as best as I can. I have a jquery paginator without history support. So I understand that clicking on page 5 and then 8 and then pressing browser back would go out of this page. It doesn't bother me. What bother's me is that pressing page 5 and clicking on a link in this...

Jquery: Is there something wrong with my .load()?

I have a problem with this code... The preloader shows up when this function is fired, but it never hides. The page also shows up before the image inside it is finished loading. Is there something wrong with my load function? $('select.select').change(function() { var x = $(this).val(); //Hide the current page and show the p...

Getting WMI to read processor load faster.

Hi. I have a C# application, where I have to get the processor load. According to the accepted answer for this question, my options are to either use performance counters from either WMI or the System.Diagnostics namespace. I have a problem with the System.Diagnostics performance counter (as documented here), so my only option is to use...

jQuery hashing and loading file, string formating?

Hey. I'm loading content dynamically like this: $("#id a").click(function(e){ e.preventDefault(); var hash = this.parentNode.hash; $("#show").load('files/'+ hash +'.html'); $("#show").fadeIn(300); }); But the hash is #first, #second, #third so I have to name files #first.html, #second.html etc. Ho...

jQuery load() and stylesheet not working?

Hello, I'm loading a file into a div with load() function, but after I load the data - the styles for it doesn't want to work. For example: index.html: $("a ").click( function(e) { e.preventDefault(); $("#Display").load('file.html'); $("#Display").show(); }); file.html: <h1 id="title">Item...

Loading Content and Appending Styles

I know this can't be done with iFrames or the default jQuery load function, so I'm looking for a 'workaround' or concept that would work better. We have to load an iframe to display a checkout process (long story) and the iFrame content is too wide. Without making it scroll, is there a way to hide some of the content or resize the inner...

show image while page is loading

My webpage is using some api's together and the total process time for the page to load is around 8 seconds. I want to show a page loading image while the page is loading. Could be like the whole page is dimmed out and an image is shown which represents the page loading and once the page loads i want to go back to my page. How can i show...

Table too big in MySQL database

Hi. I am making an online game and one table in my database. The most important one maybe. It's starting to become very large. I am creating a function where you can go together with multiple users and for that I have a table that look like this so far: CREATE TABLE `oc` ( `id` int(11) NOT NULL auto_increment, `leader` varchar(40) N...

Rhino load() function available in JavaScript provided by javax.script?

Some JavaScript files that have been developed for Rhino's shell use load() to load additional JavaScript files. I'm attempting to embed functionality from one of these Rhino JavaScript files using javax.script. Unfortunately, the load() function is not implemented by javax.script's JavaScript. When attempting to eval() a script containi...

Image does not update when file name remains the same in XCode 3.1.2

Hi Everyone, I'm using XCode version 3.1.2 and am developing for iPhone using the Simulator with iOS 2.2.1 on Leopard. I had an image file named "img.jpg" in my project which I decided to switch for a different file. After adding the new file into the XCode Resources folder, I removed the first file and renamed the new file to the same ...