load

Linux: How to put a load on system memory?

I'm working on a small function, that gives my users a picture of how occupied the CPU is. I'm using cat /proc/loadavg, wich returns the wellknown 3 numbers. My problem is that the CPU doesn't do anything right now, while I'm developing. Is there a good way to generate som load on the CPU, I was thinking something like makecpudosomethi...

Make sure Flex components are loaded at the beginning

How can I make sure all the components, even those that are not going to be visible at the beginning, load right away when I start my application? I have an application with a ViewStack whose visible child is set via a sidebar menu. Say the ViewStack has two children, A and B. A is initially visible, whereas B is not. How can I make su...

MooTools: Window load

I have a page and use window.addEvent('load', function() { alert('test'); }), but the browser never displays the alert. There are no JavaScript errors on the page that prevent this from running. What might be happening? Is it possible that the page already loaded so the 'load' even doesn't fire? ...

Remote domain load browser restriction

Hi, You know the browser restrictions which disallow remote domain load, ie making this not work: $("#verizon").load("http://verizon.domain.net/?var=rscms&tan=0.9"); Is there any way around that? I'd rather not have to iframe the content ...

Fill Databasegrid doesn't occure when envoked automatically

In the following Form-code I have a FrmPrintKasTicket witch i start form another form. This Form should print a document based on information in a SQL database. When I use a button on this form (and remove the "PrintKasTicket();" under FrmKasTicket_Reload) it actually prints. But when I envoke the printKasTicket-methode when the Frm is ...

sIFR 3 (r436) is loading terribly slow in Firefox (3.5.6) on Mac OSX

For some reason sIFR is taking FOREVER to load here (almost to the point of crashing the browser): http://www.pginvestor.com/phoenix.zhtml?c=104574&p=irol-news&nyo=1 This is only occurring in Firefox (3.5.6 on OSX) and seems to be an issue when there is loads of content (multiple links with hover, etc.). Similar pages do not hav...

Load jQuery, wait

I need to dynamically load jQuery and jQuery UI from a javascript, then check if it has loaded and do something afterwards. function loadjscssfile(filename, filetype){ if (filetype=="js"){ //if filename is a external JavaScript file var fileref=document.createElement('script'); fileref.setAttribute("type","text/javascript"); fil...

javascript - Failed to load source for: http://localhost/js/m.js

Why oh why oh why... I can't figure out why I keep getting this error. I think I might cry. /*** common functions */ function GE(id) { return document.getElementById(id); } function changePage(newLoc) { nextPage = newLoc.options[newLoc.selectedIndex].value if (nextPage != "") { document.location.href = nextPage } ...

ms access combo box refresh

i have 3 tables chapters (id, name) heading (id, name, parentid) subheading (id, name, parentid) the parents are the ids of the tables above each other. i have a form with 3 combo boxes chapter heading subheading. i have vba for the onchange for chapter and heading. This code works fine: Private Sub Chapter_AfterUpdate() Me.Headin...

jQuery ajax .load() not working in IE6/IE7/IE8 - Working in FF/Safari/Chrome

Hi There, I have a blog where each post doesn't have a detail page. Therefore each blog post has a footer link that loads comments and the comment form via jQuery ajax .load(); The code below doesn't work in IE6/7/8 but it does work in FF/Safari/Chrome. Also, I'm pretty new to jQuery and javascript, and the code just looks so bloated. Ca...

Resolving Problems with jQuery and Unordered List Loading

I'm building a very simplistic unordered list tree in XHTML with multiple levels deep. The way it works is that you click a parent node, and it uses the jQuery .load() API to make an AJAX call back to the server to see if this node has children. If it does, it inserts those nodes inside. When you click the parent link again, it does a .r...

Speed up web site loading

I am looking for the best way to speed up the load time of my js. The problem is that I am working with a very large site that uses the jquery framework, and what's happening is because the site is also loading, facebook connect, addthis sharing, google analytics and another tracking code, the jquery is delayed a few seconds, and certai...

Is emacs loading my files twice (both .el and .elc)?

I aware that when there's a byte compiled version of a .el file (.elc), emacs loads this second one (I currently pacing them in the same directory). When I start emacs and I look into my Message buffer I see this: Loading c:/Documents and Settings.../App.../.emacs.d/themes/color-theme-example.el (source)...done Loading c:/Documents and...

dynamic form using jquery ajax load posting to the same form

I want to load form dynamically using following : HTML : <div id="add_new" style="display:none"> <form id="addrecord_form" name="addrecord_form" method="post" action=""> <label>Type:</label> <select name="type_select" id="type_select"> <option value="A">Type A form </option> <option value="B">Type B form </option> ...

Check Checkboxes loaded from JQuery Load

Hi, I am loading a set of checkboxes into a div using Jquery and the load function. My code is $("#cb-list").load('www.someurl.com'); where www.someurl.com returns html for a bunch of checkboxes e.g. <input type="checkbox" value="sddfdsf" name="cb[]" id="a1" /> <input type="checkbox" value="sddfdsf" name="cb[]" id="b2" /> I want t...

Postgres Tuning and scaling

We have currently a Postgres database with a 100 of tables 20 of them with more than 5 000 000 rows, the master DB server runs on Debian 32MB RAM 8 Processors. Additionaly to the master DB we have a Slave DB replicated using Slony. Our application uses Java and Hibernate framework for SQL query, c3p0 as connection pool. Our problem is...

Ruby server and Flash client

I want a Flash file to load external movies. Later, I want to add tags to the XML document to control the movies. I have a policy server file "to open a port for Flash client. I also have a file to load, but I don't have a Flash client built to receive the file. Ultimately, I can control Flash from a Ruby server and talk to it with an X...

Load dynamic swf generated by Flex 3 in a div

I am trying to load the dynamic SWF file which has 100% width and height ,generatd by my flex 3 in a div. using Jquery load() function. The div wherein i am trying to load is visible for sometime but after that my SWF comes out of div and takes whole viewport area to display the SWF. I have tried to provide fixed height and width to div ...

Window load event not responding in IE8

The following script, largely obtained online (which is used to select css stylesheets called thin, medium and large) has stopped executing in IE8 when the page loads. It is fine in IE7, IE6 and IE5 where it executes both on load and resize. In IE8 it only executes when the page is resized? It works in FF and recent versions of Opera. I...

jQuery load html - how to get last table returned

I am somewhat new to jQuery but have been having fun trying learn about all the cool tricks it can do. One of the current things I am trying to use is the load function to get a weather report from one the sites we use for daily reporting. The code I am using is $(document).ready(function() { $("#table").load("weather_url table"); }); ...