473,385 Members | 1,569 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

Click to activate this control?

Is there anyway to get around this. I know sites like Cnet do it but am not sure how to get the flash be automatically activated.
Apr 10 '07 #1
17 8286
sandyw
122 100+
not sure what you want can you please give us an example...

sandy
Apr 10 '07 #2
When building flash menu's I often see sites that it is required to click on the flash applet to "activate" it. At which point you can use the links. Is there a way to avoid this?
Apr 10 '07 #3
Motoma
3,237 Expert 2GB
What sites? Any examples for us?

Some tools like Adblock and Flashblock have a feature like this.
Apr 10 '07 #4
http://eksamerica.com/

That site has a menu which requires activation.

Notice that when you hover the menu it does nothing. One click then activates it and the menu comes to life.
Apr 10 '07 #5
Motoma
3,237 Expert 2GB
http://eksamerica.com/

That site has a menu which requires activation.

Notice that when you hover the menu it does nothing. One click then activates it and the menu comes to life.
It works fine for me. I believe this is due to your web browser or certain plugins for it.
Apr 10 '07 #6
iam_clint
1,208 Expert 1GB
windows xp IE6 does this and i'm sure IE7 does.
Apr 10 '07 #7
I have no tried FF but it does in in Opera and IE 7. IE even places a box around the control with a hover that says "press spacebar or enter to activate and use this control"
Apr 10 '07 #8
Stumped, eh?
Apr 13 '07 #9
Motoma
3,237 Expert 2GB
Not stumped. We gave you an answer. This is a configuration setting in your browser. It is not supposed to be overridable. If you could override it, it would completely circumvent the tool!
Apr 13 '07 #10
Would anybody being willing to devulge how exactly you can overide this then?
Apr 13 '07 #11
nb109
1
Rather than jumping on the guy because you can't answer his question, just keep quiet.
-- Edit by iam_clint : be nice now.

Truth be told, this is just another example of Microsoft designing IE to take certain design elements out of the hands of the web designer. Shortly after this "feature" was introduced, Microsoft and Adobe scrambled to provide designers with ways to override it because there were so many complaints. Most of these complaints came from the owners of sites that were already established and using active content, but were immediately crippled after this release.
Being that users have the choice and ability to manually disable active content any time they want, it seems silly that Microsoft would just mandate that their browser and only their browser would force it. All in all, this is just another example of poorly planned blunder on MS's part.

Anyway, enough with the ranting. I had to search out a solution after several clients requested a way around this craziness.

Here's Adobe's solution, since it has had the best results for me:
http://www.adobe.com/devnet/activeco...devletter.html

-- edit by clint: good review.
Apr 13 '07 #12
Great! Thank you very much!
Apr 13 '07 #13
Firstly my apologies for using an Bugmenot account.
I found this page while I was researching for my blogpost via Google. I just wanted to mention that IE and Opera implemented these changes not because they wanted to take power away from web developers, but because they didn't want to be sued by EOLAS.
You can learn more about that here : http://en.wikipedia.org/wiki/Eolas#Browser_Changes
The solution from web developers end has already been mentioned in this thread. If you are a user, you can over ride this behaviour in Opera by using this userjs :http://www.howtocreate.co.uk/operaSt...ktoactivate.js

I would also reccomend that you check out http://www.thefutureoftheweb.com/blo...e-this-control
Apr 30 '07 #14
Another option that will work for both IE6/7, and Firefox is to take all of yoru code, and put it into a javascript and call it from there. Here is an example:

HTML CODE:

Goes in your HEAD tags:
Expand|Select|Wrap|Line Numbers
  1. <script src="flash_functions.js" language="JavaScript" type="text/javascript"></script>
  2.  
Goes into the place you want your flash to appear:
Expand|Select|Wrap|Line Numbers
  1. <script language="JavaScript" type="text/javascript">
  2. call_menu();
  3. </script>
  4.  
JAVASCRIPT CODE (You are basically taking your HTML code, and placing it in between document.write('');):
Expand|Select|Wrap|Line Numbers
  1. function call_menu()
  2. {
  3. document.write('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" width="766" height="69">\n');
  4. document.write('<param name="allowScriptAccess" value="sameDomain" />\n');
  5. document.write('<param name="movie" value="flash/menu_v7.swf" />\n');
  6. document.write('<param name="quality" value="high" />\n');
  7. document.write('<param name="bgcolor" value="#FFFFFF" />\n');
  8. document.write('<embed src="flash/menu_v7.swf" quality="high" scale="exactfit" bgcolor="#FFFFFF" width="766" height="69" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />\n');
  9. document.write('</object>\n');
  10. }
  11.  
May 11 '07 #15
iam_clint
1,208 Expert 1GB
has anyone tried this?

<script>
window.onload = function() { document.getElementById("idoftheflash').click(); }
</script>

for an automatic click on the element
May 11 '07 #16
kestrel
1,071 Expert 1GB
is click() even part of javascript?
May 11 '07 #17
chunk1978
224 100+
Great! Thank you very much!
Adobe's solution around active content in IE works fine, but the code can appear to be really messy... in my opinion, SWFObject is a far better solution, and it's way easier to customize... http://blog.deconcept.com/swfobject/

also, Adobe's solution has been around since early last year and it was available as a small update to Flash 8. and Adobe Flash CS3 now has fully integrated active content support (incase you weren't aware).
May 14 '07 #18

Sign in to post your reply or Sign up for a free account.

Similar topics

2
by: john | last post by:
How to call a php function on click of a hyperlink??
1
by: holysmokes99 | last post by:
I have a VB6 winforms application that has a .Net 2.0 user control (exposed via COM) that I made. No matter what I have tried, once the user control looses focus, it always requires a double-click...
1
by: holysmokes99 | last post by:
I have a VB6 Winform application that has a .Net 2.0 user control (exposed via COM Callable Wrapper) that I made. No matter what I have tried, once the user control looses focus, it always...
0
by: Jim in Arizona | last post by:
I've got a datalist with an ItemTemplate and EditItemTemplate. Its strange (to me), but when I have some records showing (data list items, if you will), and I click the Edit button on the first...
2
by: fniles | last post by:
For IE users, we now encountered a "Click to activate and use this control" when the web page has an ActiveX Control. There is a compatibility patch that changes the default bahavior back to what...
5
by: moonie | last post by:
I have an msn style c# windows application with a form and panel on it. A news list is drawn from the database and dynamically added via labels, link lables during form loading. In this...
1
by: ofir | last post by:
WHEN I'M PUBLISH FLASH .SWF FILE IN HTML, I'M GETTING IN WINDOWS THE NOTE: "CLICK TO ACTIVATE AND USE THIS CONTROL" AND MY QUESTION IS, HOW DO I GET A ROUND THAT ??? I SEE MANY WEB SITE THAT...
8
by: ofir | last post by:
WHEN I'M PUBLISHING A FLASH - .SWF FILE IN HTML, I'M GETTING IN WINDOWS THE NOTE: "CLICK TO ACTIVATE AND USE THIS CONTROL" AND MY QUESTION IS, HOW DO I GET A ROUND THAT ??? I SEE MANY WEB SITE...
6
by: Eng Teng | last post by:
How do I write a code to activate a popup menu when I right click in a label control? Regards, Tee
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.