Javascript :: Cross-browser Solution To Work With SVG Files?
Dec 9, 2011
I'm working on a project that originally required me to use <area> elements and 40 copies of a single GIF image to have a hoverable and clickable <img> tag. I suggested SVG, and the client agreed to use SVG instead, as it was easier to work with for both of us.
Anyways, my question is, what cross-browser JavaScript SVG library will allow me to display and interact with pre-made SVG images.
I know of these libraries:
Raphaƫl: I'm currently using this along with a SVG loading plugin. But that plugin does not support Inkscape or Adobe Illustrator SVGs (i.e. most SVGs). cang: This library looks promising, but it requires <canvas> support, which IE doesn't have natively. svgweb: Another more-promising library. It requires Flash, but most IE users have Flash. jQuery SVG: It seems to be able to load SVG images, but development seems to have died. And it requires me to use a modified version of jQuery 1.3.
My client would like to provide somewhat-arbitrary images to my script and have chunks of them be "selectable" (see my demo here).
View 3 Replies
Similar Posts:
Jan 2, 2011
I am looking for the abilities that Youtube's Chromeless player has to offer but for non-Youtube hosted videos such as Metacafe, Vimeo, Viddler, etc. Abilities I will need are :
[Code]....
Can I use Chromeless player for videos hosted on other sites besides Youtube? If not, is there a solution out there? If not, what languages/APIs would I need use and know to create such an application?
View 2 Replies
Oct 2, 2011
I'm trying to write a web application that searches google and then downloads the result sites and parses them.The search has to be done on the client side. Without implementing a server side proxy.Can this be done using javascript/sliverlight/flash?
View 1 Replies
Dec 21, 2011
So I'm building a web application, and in part of the application the user should choose an XviD (.avi) video file from his machine, to be played in the browser (without uploading it). I decided to use Flash for this.
Now I have two questions about this:
Which Flash video player is free to use and capable of doing this? How should I let the user choose a video file, and how can I link the Flash video player to the file?
View 1 Replies
Jun 9, 2011
Basically I am working on a project which I have coded using HTML, HTML5, CSS and JavaScript. The issue I have is that I want a flash object/animation to show on the first page. Now despite resizing the file within the HTML it seems that within Firefox and IE it sets a default size and doesn't fit the screen.
When tested on Safari it seemed to work fine but just doesn't show as intended on Firefox and IE.
Below you can a find a link to get a better understanding of what I mean.
[URL]
View 1 Replies
Jan 25, 2010
As you might know, browser's security model does not allow a script loaded in a page from http:[url]... to make cross-domain requests (no AJAX calls to any other domain other than url...).The Javascript file itself could have been served from a different domain altogether (url....) and that is irrelevant. This is the Same-Origin Policy.
Flash also has something similar? But does Flash treat the origin to be the HTML page where the .swf file was loaded or origin is the domain which served the .swf file?
So http:[url]... loads a .swf file from http:[url].... Now .swf can load resources only from [url].... or only [url....? I'm assuming there are no cross-domain.xml files setup on either [url]....
View 1 Replies
Mar 4, 2012
Is it possible to make cross request from client web page to any other host? using flash, javascript or mb some other client side technology, how can this cross requests ipmlemented?
View 1 Replies
Jul 20, 2010
I would like to execute a cross domain http request from a website. Javascript is out, because most browser don't allow cross domain calls. Generally the solution is to use a proxy, but that isn't an option for this project. The other things I was thinking about would be to use Flash or maybe Java. Are there any other platforms that I could use?
View 4 Replies
Sep 24, 2009
How the browser caches .swf and it's content? For example, if I have an image slideshow that load data specified in XML on the domain, will it be cached for access if the same swf is used on the domain or does it have to be re-cached?
View 2 Replies
Feb 4, 2010
I've tried publishing CS4 swfs in both Flash 10 and 9, but the pages are acting strange in various browsers. For example:
On PC FF and IE when hitting back button in browser the site disappears.
Sometimes PC site won't load. Says "Done with errors."
In FF, the page is coming up blank.
What is the best way to publish swfs for cross-browser support?
View 4 Replies
Feb 1, 2011
Is there a cross-browser solution to making a flash players background invisible? I have a swf movie that I want to sit on a faintly stripped background. I could place the same background in the Flash movie and sit it with CSS - using hacks for i.e. to make the backgrounds match up, but wondered whether there was a simple way of turning the background off?
View 1 Replies
May 24, 2011
I'm using jPlayer in a website, which is a cross-platform/cross-browser jQuery solution for audio and video playback on a website. On my website, I will have users upload files either in MP3 or OGG format. I wonder though... in order to truly stay 100% stable on any browser or platform, wouldn't I need to support a corresponding OGG for every MP3 uploaded (and vice-versa)? I know jPlayer uses HTML5 when it can and will fall back to Flash when necessary, but I didn't know if you need to have that file in both formats to have it play everywhere. If I need both file formats then I suppose I'd have to convert the file to the other format using a server-side conversion. If I need just one format... then wouldn't that be just dandy! So my question is, do I need to convert? Or not?
View 1 Replies
May 23, 2009
I made an as3.0 website in Flash cs4. [URL]The content of the pages is placed in a ScrollPane component, that comes with cs4. It all works fine in Chrome, Opera and IE but Firefox and Safari only show the top-left 100x100px.
Here's how it works.index.html holds a variable that tells my flash where to go (agenda, djs, bookings etc.). index.html loads preloader.swf via swfObject. Preloader.swf loads theKitchen.swf and passes a variable to it so it knows where to go, and triggers the init() function.
Code:
var loader:Loader = new Loader();
var go:String;
public function Preload():void
{
[code]...
In the "mainswf" then comes some if/else statements to build the desired page. If you click a button in the menu a function is triggered with an if/else statement that checks if the page that belongs to that button isnt allready shown. If its false the source of the ScrollPane is set to that page.Every page is build in a seperate class. The class ready an XML file that holds all the text/urls to images/ video.
View 4 Replies
Sep 2, 2011
This is my code [code]Basically what I'm doing is creating a string with a flash object and embedding into a new window. Now this works perfectly with IE9 and Firefox but for Chrome and Safari I have to resize the new window and then the flash object appears.
View 1 Replies
Jun 12, 2011
I have a SWF on that reads in XML URL's to images on sit. They wont load once the flash file is posted online.I am trying to understand the cross domain policy stuff but am confused? Some say the crossdomain.xml is supposed to reside on my site, others say the site I am trying to access. If the later is true I don't know to get them to add itAlso, what exactly is in the crossdomain file? One person said to redirect the policy
View 1 Replies
Apr 6, 2011
I have a flash accordion embedded using SWFObject. The SWF and related XML file are hosted on one domain. I have about 10 sites embedding this SWF from it's hosted location, both the SWF and the XML. The accordion links to various pages of my domains. The domain in which the SWF and XML file are hosted, the links work as expected. The other domains that the SWF is not hosted on, the links do not work at all. I verified it's a cross domain issue by placing the SWF and XML files locally on each domain and they worked, but this is not how I want it setup. I attempted to use crossdomain.xml and allow access from all hosts but that didn't work either.
View 1 Replies
Sep 9, 2010
I am having a heck of a time loading an image from Amazon S3.[code]...
Is there any way I can avoid having to hard-code the policy file path in my AS?
View 2 Replies
Aug 5, 2011
I'm wondering if its possible to do what I'm thinking, and if it is possible, does anyone know of a flash object that does what I need? I know a Flash object can provide a javascript API to interact with it, what I dont know is can Flash send an email directly without the need to talk to the webserver to do so? If thats possible would it not be possible to write a flash object that did nothing but provide an API to send emails? Has such a thing been created that is out there for others to use?
I'm looking to create a email form on a web page but the site is static (no server scripting). In my situation server scripting is not possible as there is no server, the site is 100% client side on a CD/DVD/USB Stick.
View 4 Replies
Mar 14, 2011
I have this code in my html
function open(direccion, pantallacompleta, herramientas, direcciones, estado, barramenu, barrascroll, cambiatamano, ancho, alto, izquierda, arriba, sustituir){
var opciones = "fullscreen=" + pantallacompleta + [code].....
And I call it from as3 like this:
var request:URLRequest = new URLRequest("javascriptpen('+ prop.link +',0,1,1,1,1,1,1,800,500,0,0,1);");
navigateToURL(request);
But when I click to open the new url.. chrome brings me this log error "Ignoring cross-frame javascript url load request by plugin"
View 1 Replies
Dec 19, 2009
I have two SWF-Movies. One is exported into eht other as Child.Can I instance the Objects of the two libraries in all places, where ActionScript is possible? (In Keyframes of the MovieClips and in external class definitions.)
View 3 Replies
Feb 22, 2010
I have run across a strange problem. When I load products2.swf by itself, I can call the two "copy" files and everything works. When I open 0342.swf (the index page), I can switch between the home and products2 pages, but I can't view the "copy" pages.I'm guessing there may be some sort of conflict with variable names, but I have been messing with it for most of today.I have uploaded all of the FLA files to here:[url]....
If you make an swf file out of each of the attached items, and open the 0342 file, you will see what is supposed to be happening.
on (release) {
if (_root.currMovie == undefined) {
_root.currMovie = "home";[code].....
View 3 Replies
Nov 5, 2010
My swf works fine when previewed locally but because of flash cross domain issues (link below) doesnt work live. [URL] Ive used a 'crossbrowser.php file to .load in xml but am not having success with the sendAndLoad command. [URL]
View 3 Replies
Dec 3, 2007
[code]the problem is my xml file is a variable being passed from the html, so I was wondering how to write this without the inverted commas?[code]
View 2 Replies
Dec 9, 2008
Ideally what I was initially looking for is an implementation of the HTML5 Media Capture API with a polyfill rolling back to Flash, however, my research has concluded that the API is in its infancy and is yet to be taken up by any of the major vendors, and in addition to that, Flash means for doing what I need seem scarce.I need to be able to take webcam input from a camera, show a live preview, record, and play back that recording, nothing more, no upload to server necessary, all local
View 1 Replies
Dec 15, 2010
I am working on optimizing a page that has Flash on it. I am using optimization practices like moving Javascript to the bottom to not block. Removing inline scripts. And minimizing HTTP requests with minified css and js.The majority of the pages content is in the flash, so loading it as soon as possible is the goal. Currently there is a 2 ~ 3 second delay before the flash is even rendered (using firebug profiling)
I am wondering at what point in the page load does the browser start initializing flash on the page? Is it once the DOM element containing the flash has been rendered? Is it once the complete onload event has been fired? I imagine it probably differs with each browsers as well.
View 3 Replies
Jan 5, 2011
I need to plot a contour chart in the web browser. It needs to be interactive as well. Does anyone know good javascript library, flash or flex libary to do this?
View 1 Replies
May 17, 2011
I'm starting a project for browsers which requires some complex data processing. The algorithm I'm using is 50-100x faster when accelerated with GPU.
I could use JavaScript, Flash or other technologies with the browser.Is there any way I can access the GPU to accelerate the processing of my math?
View 3 Replies
Oct 3, 2011
I have a Flash application that sends a getURL request for an image file every 60 seconds.
This works fine in all browsers except IE9 with Internet Option set to automatically check for newer versions of stored pages. I setup Charles proxy (http://xk72.com) to watch the requests being sent by my flash app and confirmed that the request is being surpressed by IE9 when the setting is set to Auto, but works fine if I change the setting to check everytime I visit the webpage. This, however, is not an option! I need this to work in all browsers regardless of how the options are set.
Even if I do a page refresh (F5), the ASP page does not reload. The only way to get it to reload is close the browser and restart it.
I have tried adding content headers to disable caching but it does not appear to work.
For Example, here is my request headers:
HTTP/1.1 200 OK
Date Sun, 02 Oct 2011 23:58:31 GMT
Server Microsoft-IIS/6.0
X-Powered-By ASP.NET
Expires Tue, 09 Nov 2010 14:59:39 GMT
Cache-control no-cache
max-age 0
Content-Length 9691
Content-Type text/html
Set-Cookie ASPSESSIONIDACQBSACA=ECJPCLHADMFBDLCBHLJFPBPH; path=/
Cache-control private
I have read the Microsoft blog (http://blogs.msdn.com/b/ie/archive/2010/07/14/caching-improvements-in-internet-explorer-9.aspx) which states that if I add the content headers, the browser should respect my request, but it obviously does not.
I don't think this is a Flash issue since the html page that holds the Flash object will not even reload.
View 1 Replies
Nov 24, 2011
Ideally what I was initially looking for is an implementation of the HTML5 Media Capture API with a polyfill rolling back to Flash, however, my research has concluded that the API is in its infancy and is yet to be taken up by any of the major vendors, and in addition to that, Flash means for doing what I need seem scarce.
I need to be able to take webcam input from a camera, show a live preview, record, and play back that recording, nothing more, no upload to server necessary, all local.
View 1 Replies
Jun 5, 2009
I have a client who will want an e commerce area for his site. Does anyone recommend a good Flash based program out there that will allow you to constuct an e commerce solution in both AS 2 or 3 . I know that is a lot to ask for but at this point I really need something that will not break my budget, I can use easily multiple times with different looks .
View 1 Replies