load

Jquery: how to check if a newly opened window has been fully loaded? / window loads an external page (like www.yahoo.com)

ε祈祈猫儿з 提交于 2019-12-18 07:46:20
问题 the following doesn't work , why ? var myWindow=null; myWindow = window.open(targetUrlVar,"_blank","resizable=yes"); $(myWindow).load(function(){ alert('hello'); }); Though MyWindow is a Window reference, no check is performed to see whether or not it has been fully loaded. i thought $(window).load(...) would work here for "window " being replaced by "MyWindow". the following works: $(myWindow).load(function(){ alert('hello'); }); for targetUrlVar being an internal resource (like a page

Jquery: how to check if a newly opened window has been fully loaded? / window loads an external page (like www.yahoo.com)

岁酱吖の 提交于 2019-12-18 07:46:19
问题 the following doesn't work , why ? var myWindow=null; myWindow = window.open(targetUrlVar,"_blank","resizable=yes"); $(myWindow).load(function(){ alert('hello'); }); Though MyWindow is a Window reference, no check is performed to see whether or not it has been fully loaded. i thought $(window).load(...) would work here for "window " being replaced by "MyWindow". the following works: $(myWindow).load(function(){ alert('hello'); }); for targetUrlVar being an internal resource (like a page

Load iFrame after page load

馋奶兔 提交于 2019-12-18 06:56:58
问题 I have a PHP page with a few iFrames that cause the page to load fairly slowly. How do I go about only loading those iFrames once the page has completely loaded? I assume I need to use JavaScript but I haven't yet found a code that works. Many thanks. EDIT - The iFrame needs to appear within a PHP echo. Here's the code: <?php while($i = mysql_fetch_array($e)) { ?> <div class='dhtmlgoodies_question'> <div style='float:left'><img src='../images/categories/<?=$i[Category]?>.png'></div> <div

VS2013 Test agent and controller not communicating

☆樱花仙子☆ 提交于 2019-12-18 06:24:49
问题 I have a Windows Azure VM running VS2013 Load Test Controller and a second Azure VM running 2013 Load Test Agent. I have not been able to get the two communicating successfully. I added the hostname and IP of each VM to the other's HOSTS file. I also created a local admin account with the same username and password on both machines. Neither machine is joined to a domain. I have also created endpoints for each VM to port 6901/TCP. I am able to telnet from the agent VM to port 6901 on the

VS2013 Test agent and controller not communicating

匆匆过客 提交于 2019-12-18 06:24:05
问题 I have a Windows Azure VM running VS2013 Load Test Controller and a second Azure VM running 2013 Load Test Agent. I have not been able to get the two communicating successfully. I added the hostname and IP of each VM to the other's HOSTS file. I also created a local admin account with the same username and password on both machines. Neither machine is joined to a domain. I have also created endpoints for each VM to port 6901/TCP. I am able to telnet from the agent VM to port 6901 on the

jQuery wait till AJAX page is fully loaded

允我心安 提交于 2019-12-18 04:27:05
问题 I use AJAX to display content of page B on page A. How can I make jQuery wait for everything to load (text, images etc.) before the content is displayed? $.ajax({ url:"pageB.html", beforeSend: function() { //show loading animation here } success: function(data) { //hide loading animation here $("body").append(data); } }); I use beforeSend to show a loading animation to the user when the AJAX request is being processed. Now I want to "extend" the waiting time so that the loading animation does

efficiently loading jquery and javascript files in django templates

半腔热情 提交于 2019-12-18 04:10:36
问题 In one of my django projects i am using lots of custom jquery scripts and lots of open source jquery plugins. Now if i load all the jquery scripts in my base template, I will be loading a lot of unused javascript code in the templates which do not require any/some of the jquery files that have been loaded which will affect the page load time of that particular template. So, The current approach i am taking is Load the basic jquery scripts in the base template (ones that are required by each

Most effective and realistic free web-app load tester?

扶醉桌前 提交于 2019-12-18 03:47:30
问题 I'm in the middle of picking tools to load test my Ruby on Rails app. So far I'm trying out - apachebench autobench httperf selenium trample Is there anything else worth looking at? I don't have a ton of hardware, so efficiency is a concern. 回答1: The famous one (at least for me): JMeter The Grinder OpenSTA All support simulating concurrent users, can generate decent load, support distributed testing if required (with distributed agent). JMeter and OpenSTA have a recorder and recorded scripts

What is the most accurate method of estimating peak bandwidth requirement for a web application?

时光毁灭记忆、已成空白 提交于 2019-12-18 03:43:22
问题 I am working on a client proposal and they will need to upgrade their network infrastructure to support hosting an ASP.NET application. Essentially, I need to estimate peak usage for a system with a known quantity of users (currently 250). A simple answer like "you'll need a dedicated T1 line" would probably suffice, but I'd like to have data to back it up. Another question referenced NetLimiter, which looks pretty slick for getting a sense of what's being used. My general thought is that I

Log4j2 error on load XML configuration file

心不动则不痛 提交于 2019-12-17 20:46:26
问题 I'm trying to use an XML configuration file for Log4j2 that is embedded in my Java application, but is not working. The code: ConfigurationSource source = new ConfigurationSource(Main.class.getResourceAsStream("/in/gunbound/prelauncher/server/log4j2/log4j2.xml")); ConfigurationFactory factory = (ConfigurationFactory) XMLConfigurationFactory.getInstance().getConfiguration(source); ConfigurationFactory.setConfigurationFactory(factory); The error: Exception in thread "main" java.lang