Click event not working on anchor tag

I've the following code and it's not working on the Safari browser (latest version, windows or in iPhone User Agent mode). This works fine in any other browser. What am I missing or is there any other alternative to fix this?
What code is supposed to do, is, when you click on the "google" link in the example, it should create a Image request from JS (junk test) which I don't see it happening when I look through network sniffer.
Thank you in advance...
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title></title>
</head>
<body>
google
<script type="text/javascript">
//<![CDATA[
function HandleClick(ev)
CreateImg();
function CreateImg()
//some junk request
var img = new Image(1,1);
img.onload = function(){};
img.src = "http://www.google.com/images/logos/somelogo.png?" + new Date().getTime();
var isSafari = navigator.userAgent.toString().toLowerCase().indexOf("safari") > -1;
window.onload = function(){
if (isSafari)
document.body.addEventListener("click", HandleClick, false);
else
if (document.addEventListener)
document.body.addEventListener('click', HandleClick, false);
else if (document.attachEvent)
document.body.attachEvent('onclick', HandleClick);
/>]>
</script>
</body>
</html>

quote:
Originally posted by:
myIP
Are you using Flash’s IDE? I can’t seem to get it
to run in Flex but in Flash it runs ok.
No, I'm using Flex 3 with FlashDevelop. I have a pure AS3
file which is the one I posted and I compile it. The resulting swf
runs fine and displays the box as expected. Only the events aren't
working as expected.
Changing the clickhandler to the version you suggested yields
nothing. No trace. But if I change the condition to:
event.eventPhase == EventPhase.AT_TARGET
I get the click trace again. My conclusion is that for some
reason the event is only registered at the stage and not in the
child components(sprite and shape).
Edit: I'm not using any mxml file, just a pure AS3 file to
compile.

Similar Messages

  • File Download not working for anchor tags

    Hello,
    I've encountered a bug with the 4.1.31 version of Tomcat. Apparently, when
    I use an anchor tag for a file, and I click on the link, it does not show the
    file download message "Do you want to open or save this file?" with the open
    and save options. Instead, it displays the file in the browser. I know you
    could normally save this information from the browser to a file, but I need it
    to show the download message because it's easier for users to save their
    file. I'm using Internet Explorer version 6, SP2. I've also tried setting
    the "Confirm open after download" check box for file types to no avail. It
    use to work in Tomcat 4.1.18.
    Any help would be appreciated.

    Can anyone pls. help me ? I tried all options from disbling firewall to uninstalling Bonjour.. But nothing works. Had I known that Apple makes such worst software I would never have bought iPhone !!!! Apple really *****!!!!!!!

  • Click event not working in Firefox but works everywhere else

    I have a bindElementAction of 'click' which fires in every browser but Firefox. I have no idea why that is. Any ideas? Here is the event:
    Symbol.bindElementAction(compId,symbolName,"${button}","click",function(sym,e) {
        console.log('clicking the button');
    I get a console.log message in Chrome, Safari, and IE but nothing in Firefox.

    I have the same problem with my infiniti G37. Soo frustrating!

  • My left click does not work on my track pad on my macbook pro 13 inch, is there a fix

    my left click does not work on my track pad on my macbook pro 13 inch, is there a fix

    I recommend you to run Apple Hardware Test > http://support.apple.com/kb/ht1509 It's possible that something is damaged, and Apple Hardware Test will help you finding it. Make sure you tick the option to run an extended test, and connect your Mac to the charger.
    If your Mac came with DVDs, you have to insert the Mac OS X DVD to run Apple Hardware Test. As you haven't got the SuperDrive, you will have to buy an external optical drive

  • Right click is not working in Web dynpro explorer

    Hi All,
    I have SAP net weaver developer studio 2.0.9.
    when i right click on web dynpro components, to create a component, the context  menu is not coming, right click is not working.
    though right click works fine in diagram view and outline view.
    Please suggest what might have happened? and how to get back the settings.
    Cheers,
    Srini.

    Hello Srinivas,
    Try closing and opening NWDS. If you still see the same problem, simple solution for this is, Just Change Workspace to new folder.
    Changing workspace - Window -> Workbench -> workspace -> give new path.
    Close nwds and open it again. It should solve the problem.
    Thanks,
    Sridhar

  • My right click is not working. the context menu does not come up and i can no longer drag files/folders. I have checked the mouse and track pad in system preferences and the correct boxes are all checked (with a support member). Please can you help

    My right click is not working and producing the context menu or ability to drag files and folders. I just spoke with a phone support person and we checked that all the mouse/trackpad options for right click were correct and checked.
    Please can you help with this.
    It has only just happened in the last few days.
    Many thanks

    You might want to update your profile so that we can see what model iMac you have and what version of OSX you're running.
    For this question, it might help to know if you're dealing with a trackpad, Magic Mouse, or something else?
    (Until your issue's resolved, you can Control-Left Click to get the right click functionality).

  • Right click problem: I did not know about the Yahoo sidebar issue, I have removed all toolbars from my browser from 'view' menu. There is nothing in my 'extensions' to disable. Right click is not working. What to do?

    Right clicking is not working on any of the websites. I read up that it's a Yahoo sidebar issue. But, in my extentions, Yahoo sidebar is not there. I had removed all toolbars, but from 'view' menu. Now how do I get my right click to work?
    == This happened ==
    Every time Firefox opened
    == I've noticed it on 1 Aug 2010

    This is a user-supported board. You are not addressing Apple here. Nor is it a good idea to post your private information to a public forum. You should edit your post immediately.
    Unfortunately no one here can access your support history. You must respond to the emails directly.

  • Onclick and doubleclick event not working in CC

    hi..  onclick and doubleclick event not working in CC..  how to get these events to work?
    Please advise anyone. Thanks alot!

    Is your event target a ListBox?
    In that case there are serious issues to deal with:
    http://indiscripts.com/blog/public/ScriptUIEvents.pdf
    @+
    Marc

  • In "Show more Bookmarks" if I right click does not work (I want to open in a new tab)

    This is using Mac Firefox current version. I use lots of tabs and don't have space for all of them so there is a >> at the right end for clicking and displaying the rest of them. If I click and display list and highlight one of them, the right click does not work - I want to open in a new tab not use the existing - there are no menu options displayed on these tabs. The tabs across the top work fine for this

    Start Firefox in <u>[[Safe Mode]]</u> to check if one of the extensions is causing the problem (switch to the DEFAULT theme: Firefox (Tools) > Add-ons > Appearance/Themes).
    * Don't make any changes on the Safe mode start window.
    * https://support.mozilla.com/kb/Safe+Mode
    If it does work in Safe-mode then disable all extensions and then try to find which is causing it by enabling one at a time until the problem reappears.
    * Use "Disable all add-ons" on the [[Safe mode]] start window to disable all extensions.
    * Close and restart Firefox after each change via "File > Exit" (Mac: "Firefox > Quit"; Linux: "File > Quit")
    In Firefox 4 you can use one of these to start in <u>[[Safe mode]]</u>:
    * Help > Restart with Add-ons Disabled
    * Hold down the Shift key while double clicking the Firefox desktop shortcut (Windows)
    * https://support.mozilla.com/kb/Troubleshooting+extensions+and+themes

  • The Keyboard clicks are not working despite the Keyboard click in settings are ON. Am using IOS 6.1.3.Pls Help me to rech this problem.

    The Keyboard clicks are not working despite the Keyboard click in settings are ON. Am using IOS 6.1.3.Pls Help me to rech this problem

    Basic troubleshooting from the User's Guide is reset, restart, restore (first from backup then as new).  Try each of these in order until the issue is resolved.

  • Control-clicking does not work in Finder

    Ever since installing the 10.4.5 update, control-clicking does not work in Finder. When I try to do it, Finder automatically restarts itself. This happens in any Finder window and on the desktop itself. Whether I am control-clicking an Application icon or trying to 'Get Info' on a file, Finder restarts itself. I repaired permissions and it did not fix the problem.
    Any idea on how to fix this? Thanks a lot!
    David
    Edit: Nevermind. I fixed it by deleting the JIMZip.plugin file in my Contexual Menu folder. I found the answer in another thread. I apologize for searching after I created this thread.

    David,
    Can you identify any corrupted or incompatible files in either your Macintosh HD/Library/Contextual Menu Items folder, or your Macintosh HD/Users/yourhomefolder/Library/Contextual Menu Items folder?
    If so you may be able to uninstall/reinstall the associated application.
    You may also consider temporary manual removal and isolation of the suspect file to verify CM functionality.
    ;~)

  • Hotspot Click is not working !!

    Hi,
    I have sucessfully implemented hotspot click using OOALV.
    I still have an issue in one of the hotspot click feature.
    I have a OOALV report where i have implemented hotspot click for Contract # as
    when 'KONNR'.
            if w_listdata-konnr <> ''.
              lv_konn = w_listdata-konnr.
              set parameter id 'VRT' field lv_konn.
              CALL TRANSACTION 'ME33K' and skip first screen.      
            endif.
    since ME33K transaction takes input of type 'EVRTN' ,i have taken a
    temporary parameter called lv_konn declared it as type EVRTN.
    But still the hotspot click is not working.
    Can anyone suggest me how to reslove this issue.
    Appreciate all the help.

    Hi Madan,
                  I will send a syntax for that check it once then ur problem is solved ok..
    FORM usercommand USING ucomm LIKE sy-ucomm selfield TYPE slis_selfield.
      CASE selfield-sel_tab_field.
        WHEN 'GT_HEADERDAT-EBELN'.
              code
          endcase.
    CALL FUNCTION 'REUSE_ALV_LIST_DISPLAY'
       EXPORTING
      I_INTERFACE_CHECK              = ' '
      I_BYPASSING_BUFFER             =
      I_BUFFER_ACTIVE                = ' '
        i_callback_program             = sy-cprog
      I_CALLBACK_PF_STATUS_SET       = ' '
        i_callback_user_command        = 'USERCOMMAND'
      I_STRUCTURE_NAME               =
        is_layout                      = wa_layout
        it_fieldcat                    = gt_fieldcat
      IT_EXCLUDING                   =
      IT_SPECIAL_GROUPS              =
      IT_SORT                        =
      IT_FILTER                      =
      IS_SEL_HIDE                    =
      I_DEFAULT                      = 'X'
      I_SAVE                         = ' '
      IS_VARIANT                     =
        it_events                      = gt_events
      IT_EVENT_EXIT                  =
      IS_PRINT                       =
      IS_REPREP_ID                   =
      I_SCREEN_START_COLUMN          = 0
      I_SCREEN_START_LINE            = 0
      I_SCREEN_END_COLUMN            = 0
      I_SCREEN_END_LINE              = 0
    IMPORTING
      E_EXIT_CAUSED_BY_CALLER        =
      ES_EXIT_CAUSED_BY_USER         =
        TABLES
        t_outtab                       = gt_headerdat
       EXCEPTIONS
        program_error                  = 1
        OTHERS                         = 2.
      IF sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
    Award points if helpful.
    Kiran Kumar.G.A
            Have a Nice Day..

  • ODI 11g 11.1.1.7 with Win64 bit OS : Starange problem : Right click does not work for Create new data server in Topology.

    ODI 11g 11.1.1.7 with Win64 bit OS : Strange problem : Right click does not work for Create new data server in Topology.
    On right click nothing happens at all. I have  reinstall the ODI multiple times with right installer. issue persist.
    Please help.

    Hi,
    Did you use the generic installer or the win32 one ? You should use the former with Win64.
    You can also check that your version of Java is supported in the certification matrix.
    Regards,
    JeromeFr

  • Right-click funcionality not working in assessment mode. I NEED HELP!

    Hi - I've recently created a number of assessment recordings. The right-click function works as I'm recording as well as when preview the project and then after I publish it. However, when I give it to a colleague(s) to demo it, for some reason the assessment isn't recognizing her right-click and she gets stuck. We're both running the same IE, flash and windows versions so I am really a at a loss on this one. Has anyone ever encountered the same problem and if so what did you do to fix it?! Thanks a million!

    Check this out.
    http://blogs.adobe.com/captivate/2009/01/adding_rightclick_in_captivate.html
    somewhere towards the middle of the page @Mike says the following. Hope this helps
    quote
    Now when you run the movie in your browser, Right-Click is not  working...
    off course it will not work, as Right-Click uses Flash External  Interface, and this new path
    is not a trusted path by your flash player
    Solution : You need to add this new path to your Flash Player  security
    Scenario 2: You just shared your right-click movie folder over  the network ,
    say the new path for other users is   "\\your-machine-name\My-Right-Click-Movie"
    ( or "\\nework-machine-02\work\captivate-movies\My-Rihgt-Click" )
    and other users are complaining that , Right-Click is not  working...
    Yes once again the reason is same  and new path   "\\your-machine-name\My-Right-Click-Movie"
    ( or "\\nework-machine-02\work\captivate-movies\My-Rihgt-Click" )   in not a trusted path by
    other user's flash player
    Solution : other user need to add this path  "\\your-machine-name\My-Right-Click-Movie"
    into his Flash player security setting.
    How to add a path to flash player security setting?
    Check this URL :
    http://www.macromedia.com/support/documentation/en/flashplayer/help/settings_manager04.htm l
    unquote

  • OS X Lion secondary click is not working, any help

    Since I`ve downloaded Lion, the secondary click does not work, I can´t even select it on the trackpad window

    More details needed.
    Are you using an Apple mouse or a 3rd party mouse? Can you enable it in System Preferences > Mouse? Can you Control + click and get the menu like you would when you use secondary click?

Maybe you are looking for

  • To read data from Adapter engine table

    Hello, We have requirement to generate  a summary of report with number of messages success and failed in XI with failure reason I understand that we have to get the count of message from IE and AE and integrate it. Can anybody help to know in which

  • Modifying Transaction FF68(URGENT)

    Dear All,   I need to add a new field in screen 8000 of Transaction FF68. I made another transaction YFF68 and added that field. When am running SM35(for yff68) , it calls FB01 where there is a field called Account(RF05A-NEWKO) which gets value in th

  • IPod Touch not displaying space correctly.

    My iTunes library says I have 4.35 GB of music. And when I look at how much Music takes up on my iPod, it says 4.44. Any suggestions would help. (I have no audiobooks.) Thanks alot, Grant.

  • Not reaching full charge?

    As with all Apple products the iPhone's instructions clearly say that a plug symbol will appear in the battery area when a "full charge" is reached. It was charged overnight, about 8 hours, and still showed the lightning bolt, not the plug symbol. Wh

  • FM to create salesorder

    Hi, I want to create a sales order through bapi can any one help me wht i sthe BAPI to create the sales order. <b><removed_by_moderator></b>