I have a web-application project which requires interactive User
Interfaces. It is more like a web based xml content editor. I have seen
a few javascript based text editors but not much flash based ones. I
dont have much experience on neither of the technologies so I have to
spent some time to develop my skills on them (your suggestions are
wellcome:) my questions are:
1. Is JavaScript and the today's internet users's enveronment
(browser-speed-security) mature enough to run a heavy javascript based
web application ?
2. I have the "sceptic feeling" that with Javascript, programmers have
very little control on runtime environment or javascript behaviours,
errors are not so predictable on client site. (Still I see lots of
websites with javascript and a yellow Error sign on my browsers left
bottom corner). Is it still quite complicated task to make the
javascript run properly on most of the users site (say 90%) without
complicated browser/version/DOM tricks and customisation?
3. Is Flash a better option for a interactive UI application? If so why
is it still just an "animation" technology?
4. Is it possible (and easy) to mix the Flash with other technologies
like Ajax or ASP.NET ? Is it possible (and available) to make
flash-based components (like special behaviour combo box, or new kind
of UI components) which can be used in an asp.net web application?
Basically I created a script which changes image banner on site depending on which day it is, and what period of time it is.
Script goes like this:
HTML part
<img id="banner" /> Javascript code var nowHr=new Date().getHours(); var nowMin = new Date().getMinutes();
[code]...
Now, WHAT I NEED NOW is instead o using images (1.jpg, 2.jpg...) I want to use Flash (1.swf, 2.swf...).So is it possible to modify this script and make it work with Flash?
I have two swf files that I use as headers on our website; one for day, one for night. I am looking for a script that will change these files depending on the time of day the user hits the site based on their computer clock.
I have developed a very nice javascript-based navigation structure. My customer wants to have a flash film on his very first site which already has to have this navigation.
And now the effect: Whenever the flash film is running, the navigation submenus are not displayed ABOVE this flash film, but BEHIND it. As far as I have tried, there is no way to influence this behaviour with the "z-index" and different values.
Is there any other way to make the navigation submenu seen or - in other words - is there a way to put the flash film "a layer back"?
I'm attempting to have Javascript / jQuery play a flash player automatically based on the inbound/back link. The objective is to only play it automatically for people coming from a certain link. Is this possible with Javascript / jQuery?
<!-- Begin function popUp(URL) { day = new Date(); id = day.getTime(); eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=0,location=0,statusbar=0,men ubar=0,resizable=0,width=194,height=146,left = 440,top = 288');"); }
// End --> </script>
It opens a new window when the user clicks on a certain link.
Well, somewhere else in the page, I embeded a flash media object and found out now that everytime the page opens, the pop up window opens too which is NOT what I want. I want the Popup window to only open when the user clicks on a text link (which it did work perfectly until I put in the flash object).
So why is the flash object calling the popup window instead of just playing like it is supposed to?
im trying to load a flash intro movie, i got it to work for me on ie7 and the newest firefox, and a few other ppl can see it but there are some that can, and it is just a blank page, here is my .js file called intromovie.js
like i said it works for some ppl, and not for others. it works for me so i can't find a problem at all. and the other ppl that can't see it use the same browsers, and im doing it this way to prevent the extra click and when you move your mouse over it you don't get the boarder.,
I'd like to have a drop-down form pass a variable to an embedded flash file. I know the basic idea of how to stop, rewind and play a flash file via JS, and I obviously know how to pass a variable into Flash, but my experience in forms is keeping me from understanding how I would use the form to pass a javascript variable to the flash file.
can i know what is wrong with this script? cause my ie6 doesnt seem to be able to detect the flash and i dont know why.. or is there any other recommedation of site that i can read up from?
and by detecting flash, will it slow down the whole site?? i am a beginner in this area.
function message() { if (navigator.mimeTypes && navigator.mimeTypes["application/x-shockwave-flash"]) { do something...... } else { do other stuff... }}
I am designing a template for File Hosting site but the flash uploader is breaking the design
This is what it looks like
When the button (white box) is clicked it opens a file selecting box
How can i replace that box with image, i tried placing a image over it with help of wmode transparent but when clicked on image flash doesnt open up the file selection box
How this can be done?
Is there any way i can run the flash when clicked on image because this doesnt looks good.
Little detail as i am more a designer than a coder.
I have a multiple select list box that gets its values using mysql+php. What I'm trying to do is pass the selected value as a variable into flash with the onChange event.
I've been using the very cool Transmenu javascript drop down menu that I heard about on this forum. Below the menu is a flash movie that I set to 'transparent' so that the menu will display on top of the movie. This works GREAT on internet explorer, however I've recently become a big fan of firefox and the menu still seems to fall behind the flash movie in that browser.
Has anyone had experience with this issue? I could really use a solution here to get the menu to display on top of the flash.
Is this possible? Basically I need to grab all the flash objects on the page (done) and then set the wmode to transparent so it doesn't mess up my DHTML menu.
Doing my own fitness bootcamp site and want to fancy up my front page. My front page loads a picture and I want it to load like flash. What could I do? I have all the Adobe Software, just don't know how to use it.
I need a simple javascript that I can use in my HOME page.index.html has a flash animationnoflash.html is a page without flash animationKindle does not support Flash and therefore i want to redirect my index.html to noflash.html page.
I work for a company called Best of the Best (www.botb.com). We use Flash countdown clocks to mark the end of our competitions. The issue we now have is that our clients are using mobile platforms more and more and as bloody Apple wont support flash (not fully anyway) we need the option to detect whether our users have flash and if not then replace the current <OBJECT>Blah Blah Parameters etc</OBJECT> with <DIVCLASS="NON_FLASH_CONTAINER">All other bits in middle</DIV>Is this at all possible?
I'm trying to put some code together to create an image-swapping system, that when you click on the image it'll hide the image and replace it with a given iframe vimeo/youtube code...The swapping part works fine, however when the iframe loads up, it hides all other flash objects in the page, and I can't figure out why.Here's the JS
Code: function swapvideo(w,h,url) { document.getElementById('video_pholder').style.display='none';
I like it because everything is modular, the submenus stays within the shape of the rectangle without jutting out horizontally across the website. However, when I tried to tweak with the code some of the images just wouldn't show up. I saved the ENTIRE website but modifying the names of the images just didn't work. As a result I am comtemplating on doing this same menu in Flash. (loading the same positioned swf on top of another, on top of another).
Not sure how useful this is, exactly. It requires a bit of explanation.
function assert(assertString, thisObj) { var throwException = arguments.length > 2 ? arguments[2] : false; var argsObj = arguments.length > 3 ? arguments[3] : {}; var argsString = ""; for (var property in argsObj) { argsString += ("var " + property + " = " + argsObj[property].toSource() +"; "); } var func = new Function(argsString + "return (" + assertString + ");"); var mustBeTrue = false; try { mustBeTrue = func.apply(thisObj); } catch(e) { // fall through. An exception will leave mustBeTrue as false, and the assertion still fails. }
try { if (!mustBeTrue) { throw new Error("ECMAScript assertion failed: (" + assertString + ")"); } } catch(e) { if (throwException) { /* For Mozilla, use throw new Error(e.message + " stack: " + e.stack); */ throw e; } else { /* For Mozilla, use dump ("Warning: " + e.message + " stack: " + e.stack); for (property in argsObj) { dump(property + " = " + argsObj[property] + " "); } dump(" "); */ alert(e); } } return mustBeTrue; }
So what is an assert()? In C++, it's usually a macro the programmer uses to test a statement that must be true for the code to function properly. The statement, I believe, is called an assertion.
If the assertion evaluates to false, then there's a bug in the program. It's basically a way for the programmer to detect for bugs in the program that the program wouldn't be expected to know about.
This assert() function takes a string as its first argument, which must evaluate to true. If said string is true, everything's hunky-dory, and the function returns true. If said string is false, then the function notifies either the user or the application (depending on the third argument, which is optional), and returns false. If there is an exception generated while testing the assertion, the assert() function returns false.
The second argument is the this object of the code calling the assert(). So you could basically call the assert() like this:
assert("1 == 1", this);
The optional third argument, which defaults to false, determines if a JavaScript error should be thrown. A false value means notify the user, but don't stop execution (dump() is a Mozilla-specific function, used in debug builds). A true value means throw the exception.
The fourth argument should be an object literal for passing variables into the assertion for evaluation. For instance:
if (assert("x == 1", this, false, { x: 1 } )) { html_input.value = "x is indeed equal to one!"; }
All this works because the assert() function creates a local function object based on the information you feed it, and then executes that function.
This code is available under the Mozilla Public License (MPL1.1) tri-license scheme. Feedback?
I have created a very simple HTML base photo album integrated with Google Maps.You can share your photo and the place where it was taken on a map. I tried to make it as straightforward I could. There is only a single XML file a user has to edit to use this album.
I have seen this employed somewhere else, but for the life of me cannot remember how it was done. I need to write a javascript that will call a desired CSS file based on the user's browser.
I have created no flash pages and flash pages, but instead of creating a portal at the front of the site that leads you to a flash site and a no flash site id like to do it so the page detects flash or not, and redirects to whichever URL.
Is this possible, or do multiple browsers cause problems ?
I have created a transparent flash video (virtual spokesperson) for my website. For demoing purposes, I would like to have this appear on any desired website.
This is what I am trying to produce - here a virtual spokesperson appears on the [url]website: [url]
Have a look at other sites which enable one to type in a URL and their demo virtual spokesperson appears on the given site: [url] [url]
I believe they do this within an iframe to display the underlying website.