In my application the browser window connect with long polling(comet) with the server. If the user open several browser tabs, only one of them(called the master) communicate with the server and serves as a proxy for the other tabs. I want to use flash localConnection to exchange data between the tabs.
What happens when a user closes the master tab that holds the comet session? I can use javascript with the unload event to inform the...
User Profile
Collapse
-
dolittle started a topic Monitor browser tabs with localConnection and sense when a user closes a tab.in FlashMonitor browser tabs with localConnection and sense when a user closes a tab.
-
can I use a Microphone without importing the class?
Hi,
I'm new to flex and trying to understand a tutorial by reading the code.
There is a line:
Flex docs says that you need to import flash.media.Mic rophone but on the code they don't:Code:var mics:Array = Microphone.names;
...Code:import mx.formatters.DateFormatter; import flash.sampler.Sample; import mx.events.SliderEvent; import mx.events.FlexEvent; import mx.collections.ArrayCollection;
-
I manged to get the image using curl and then send it to the user.
The problem is I can't get IE to cache the image.
FF works fine.
Any ideas?
[PHP]// Allocate a new cURL handle
$ch = curl_init($user _thumb);
if (! $ch) {
die( "Cannot allocate a new PHP-CURL handle" );
}
// We'll be returning this transfer, and the data is binary
// so we don't... -
Your first solution doesn't work because the html image tag expect the image data and not the image url.
I can't use your second solution because I'm generating the image tag dynamicaly on the client side.
I finally used the header function:
[PHP]header('Locatio n:'.$image_url) ;[/PHP]
The problem is that I need to cache the image.
Can I load the image data in the php script, add expire...Leave a comment:
-
Serve an image with php
Hi,
I have an image tag in my html with a src pointing to a php script.
The php script finds the url of the image from a paramater in the query string.
How can I return the image data to the html page?
[HTML]<img src="phpScript. php?id=12321321/>[/HTML]
[PHP]<php?
$id = $_REQUEST["id"];
$img_url = someFunction($i d);
echo imageData????
[/PHP]... -
What I'm asking is if internet radio stations stream in several formats other then mp3.
Will Flash be able to stream something else?Leave a comment:
-
Thanks
I'll try it.
I wonder if I could include other formats....Leave a comment:
-
Thank you for your answer.
I've found that Yahoo media player enable you to listen to ShoutCast streams:
http://www.fistfulayen .com/blog/?p=183
I guess it's possible.
If you'll have any more info that will be great.
ThanksLeave a comment:
-
flash based radio player
Hi,
Is it possible to play internet radio streams in flash?
I saw flash radio players but sometime internet radio uses windows media player.
How can I know if I can play a url with flash? Does it depends on crossdomain.xml , streaming format?
Do you know of an example for flash based internet radio player?
Thanks -
check if a website is opened in another window
Hi,
Is it possible to use javascript to check if a website is opened in another tab or window?
I thought about setting a cookie that will expire in the end of the session.
The only problem is that if a user opens two browser windows A and B with the website opened at window A and then window A crashes, window B will still hold the cookie.
Any idea?
Thanks -
Thank you for your answer.
I've read about javaFx script. Should I use it because this is the new technology or is it different then what I'm looking for?
How can I let users install the screen capture program from a web page?
I could be a temporary installation.
I've read about Java web start. Is this the way to go?
Will JavaFx address this issue in a different way then Java web start?
...Leave a comment:
-
screen capture
Hi,
I want to create a screen capture using java.
I'm new to java and I'm overwhelmed by the so many terms: SE, EE, FX, Swing...
I saw a nice product written in java that let you start the Java program from the website (java web start) and then it sits in your system tray. When you right click on it you see several capture options: full screen, area, window...
After you capture it opens a window... -
serve a file as if it was from another domain?
Hi,
A client is requesting the file test.html from the domain example.com
Can apache return the file test.html but let the client think it is from www.otherDomain .com?
Thanks -
-
database collation
Hi,
I'm creating a db for a multilingual site.
I know that utf8 is supposed to be my choice but there are several options.
What is the difference for example between utf8_unicode_ci and utf8_bin?
What should be the most general choice?
Thanks -
It turned out to be simple:
Now I'm dealing with another problem.Code:objectName.object.body
When a user navigate inside the inner page it makes new entries in the browser history. I guess I can't prevent that from happening.
When the user clicks on the back/forward browser history buttons the right page appears but the object tag is being reloaded.
On FF it works fine.
...Leave a comment:
-
I want to replace the code dynamically and automatically on the server side without touching the original code.
Drupal is just an example of a working CMS which I don't want to change only replace all the div tags with span tags.
I can't change the pages by hand because they are created dynamically.
My question is, can I put some code on top of everything to do the job?
Can I put some kind of filter...Leave a comment:
-
Change HTML page before it is being sent to the client
Hi,
This is probably a basic question.
I need to change all the web pages before they are being sent to the client.
I'm using a CMS(drupal) but I don't want to tuch it. I want to put some filter or something on top of it and for example replace all the <div> tags with <span> tags.
How can I do that?
Thanks -
-
I tried what you suggested but it replaces the main page url instead of the page inside the object.
My code:
...Code:<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=iso-utf-8" /> <title>object test</title>
Leave a comment:
No activity results to display
Show More
Leave a comment: