Hi there ,
i am more a java developer and there is a standard way of reading images :
BufferedImage img = null;
try {
img = ImageIO.read(new File("strawberry.png"));
} catch (IOException e) {
}
but what is the c++ way of loading images?
I want to load all images in a specific directory into an array or so
Can somebody help ...
Hi all,
I want to have a swf locally that loads another swf from the internet.
Flash quite wisely displays a warning requiring to whitelist the place from were the external swf is being loaded.
Now is there any way for this warning not to display?
Changing those options trough the browser is quite an hassle and Im pretty sure people...
I have been using the jquery form plugin to submi forms on my page and it works great.
But when I try to submit a form that has been loaded using .load it doesn't work.
This is my code:
$(document).ready(function() {
//shows loading screen whilst posting via ajax
$().ajaxStart($.blockUI).ajaxStop($.unblockUI);
...
Before i tried loading the content via the .load() jquery function, i had an overlay which had various elements which were targeted with events, such as a close button and some tabs, which worked great!
I decided to keep my markup clean to load the overlay content with the .load() function which also works great, except the events that w...
Hello!
I have 2 functions $.post jQuery, how to make the 2nd $.post carried out only after the loading of the first $.post completely finished?
But I can not use $.post within $.post because the second $.post called from flash
function play(id, file, dur, who, hname, artist, song)
{
if($.cookie('scrobb') == 'on')
{
setTi...
Hi,
I have a tree structure in the DB with TreeNodes table. the table has nodeId, parentId and parameterId. in the EF, The structure is like TreeNode.Children where each child is a TreeNode...
I also have a Tree table with contain id,name and rootNodeId.
At the end of the day I would like to load the tree into a TreeView but I can't fi...
I am using Django to handle fairly long http post requests and I am wondering if my setup has some limitations when I received many requests at the same time.
lighttpd.conf fcgi:
fastcgi.server = (
"a.fcgi" => (
"main" => (
# Use host / port instead of socket for TCP fastcgi
"host" => "127.0.0.1",
"port" => 303...
So I'm trying to load a script dynamically and figure out the URL path at which that script was loaded. So some guy gave me a pretty awesome solution to this problem if the scripts are statically loaded ( http://stackoverflow.com/questions/2255689/how-to-get-the-file-path-of-the-currenctly-executing-javascript-code ). But I need a dynami...
Hi,
I'm trying to use load to reload a portion of the current page (long story why) but am having an issue with the variable syntax.
Here is the snippet of code:
var pathname = window.location.pathname;
$('#menu').load("/cms.php #menu");
I woudl like to replace /cms.php with the variable, but am having issues with the corrent syntax...
Hi.
I have
// Ajax setup
$.ajaxSetup({
beforeSend: function() {
$('#general-ajax-load ').fadeIn();
},
complete: function() {
$('#general-ajax-load ').fadeOut();
}
});
on page load to set loading animation for all my ajax calls. It works perfect, except for load() calls. For loads only beforeSend is triggered, and complete nev...
I've got content coming into my application using a query and an ArrayCollection. I know how to display the content into a DataGrid by using the dataProvider propriety, but I'd like to use TextInput components and drop the DataGrid altogether.
Does anyone have any examples or information on how I would go about doing this?
Thanks!
Tha...
Hello,
i just trying to learn basic flash programming skills, now i got a program that load an image from my local machine, and show it with uiloader component, code is something like:
var myImage:String = "picture.png"
var request:URLRequest = new URLRequest(myImage);
uiLoader.load(request);
it´s working fine, but when dynamically ...
Hi
I have a complex site with lots of jquery loads in various places and in different files. I want to have a single method which renders a loading popup when any of the ajax loads run, without (hopefully) modifying them all.
Anyone know a way to 'catch' any ajax request start, and also the request end?
Thanks
...
hi
i have 2 pages one is the main and the other is the sub-main
main,html :
<A href="sub-main.html#post5>go and load just post 5</a>
sub-main.html :
<DIV class=posttop id="post4">
here you can write anything ;)
</div>
<DIV class=posttop id="post5">
here you can write anything ;)
</div>
<link type="text/css" href="post.css" rel=...
My website sometimes loads a bit slow, due to the amount of images loading. I actually have 61 images on my homepage due to all the png overlays and icons. I have considered using sprites or an image map, but I really don't feel like doing this. I know that there can only be 2 requests to my server, so if I host the images elsewhere, it ...
I am writing a JavaScript program in Rhino which needs to load other JavaScript files. However the built-in load() function loads files relatively to the current directory and I need to load them relatively to the location of the script (so that the program can be called form any directory).
In other languages I would use something like...
I am using MATLAB to process data from files. I am writing a program that takes input from the user and then locates the particular files in the directory graphing them. Files are named:
{name}U{rate}
{name} is a string representing the name of the computer. {rate} is a number. Here is my code:
%# get user to input name and rate
N...
Hello all,
I have a feeling there is a simple way to do this. I have a number between 1 and 100 and it is stored in a variable called firstValue. This variable is then put into a UILabel. When the user exits my app, I want this firstValue to be saved so that when the app is loaded by the user this number can be re-inserted into the UILa...
I am trying to learn MVC, and i'm creating threaded comments functionality for a simple webapp.
I have a view which lists the comments, and has a reply button that uses jQuery to load a partial view which is basically a comment form. I need to pass the parent commentId to the partial view and then populate the parentCommentId hiddenfiel...
Hello,
I'm trying to put a JqueryUI Datepicker on an AJAX appearing form.
The traditional $(".datepicker").datepicker(datepickerParams); does not work since the ".datepicker" element is not present on DOM ready.
I've tried the live() method but there is no load event on <input>.
Then, I do the following :
$("#datepicker_button").live...