Custom Javascript code not working in Safari

Hello.
I'm trying to get some javascript to work properly in Safari. The script works fine in Windows IE for and Firefox on both platforms, but Safari it just doesn't work.
If you look here:
http://robsimonsen.com/film.html
and click on the Tides mp3, you will see that the track loads in an iframe right next to it. No javascript is used in the live version. Unfortunately, for some reason, it doesn't work in any other browser- just Safari. So in trying to figure out how to make it work the same in all browsers, some custom javascript code was created to accomplish the same thing:
http://robsimonsen.com/film4.html
but it doesn't work in Safari- just every other browser.
Can anyone help me figure out what's going on?
Dual 1Ghz G4 MDD   Mac OS X (10.3.9)  

document.all is audi 5000. use document.getElementById() instead. this seemed to work:
document.getElementById('plotz').src ="mp3s/Tides.mp3"
and changing iframe...name=plotz to ...id=plotz
ibook g4     OSX.4.x

Similar Messages

  • Javascript is not working in Safari on my iPad, version 6.1.3. Anyone know why?

    I have an iPad with os version 6.1.3.  Javascript on websites is not working in Safari. Does anyone know why? How can I correct this situation?

    It is jquery libraries that are not functioning properly and some of the html.  I have Javascript turned on.  The website was working in Safari.  I tested it in Safari and I viewed it many times using Safari and it worked.  I went on to it on 5/8/13 and the javascript/jquery portion and parts of the html are not working.  It had been tested about 4 or 5 months ago in several diffierent versions of IE, Chrome, Mozilla and Safari. 
    Thanks for responding to my question

  • Customized Button code not working on selection screen.

    Hello Experts,
    I have a button on the selection screen next to Execute button on the Application Tool Bar.
    I have written some validations on the button.It was defined on the PF-Status and its funtion text i have given as 'Show'.
    But the problem is that the code is not working.When I execute the button,the screen just remains their.
    The sy-comm always returns the value of 'UCOM' for whatever even takes place on the screen.The execution of the program does not stops their in debugger.
    Can anyone help me with some sample code and also provide the value of sy-ucomm which i should use for the customized button.
    Good points will be rewarded.

    Here is the short program which will show how to do it. You are simply checking for the USER-COMMAND value CHK and changing it to ONLI which is the F8 button, then the START-OF-SELECTION will be fired and you can output the list.
    REPORT zyou_0001.
    TABLES:  sscrfields.
    SELECTION-SCREEN PUSHBUTTON 2(10)  pbut1 USER-COMMAND chk.
    AT SELECTION-SCREEN OUTPUT.
      pbut1 = 'Test This'.
    AT SELECTION-SCREEN.
      IF sscrfields-ucomm = 'CHK'.
        sscrfields-ucomm = 'ONLI'.
      ENDIF.
    START-OF-SELECTION.
      DO 10 TIMES.
        WRITE:/ sy-index.
      ENDDO.
    Regards,.
    Mohammed

  • ABAP Query Execution via Custom Transaction Code - Not working

    We have created an ABAP Query in our DEV client and we then created a transaction code to run that query. We have done this because the customer does not want anyone to have access to SQ01, SQ02 in production. This works great in DEV but we can not get it to work in production.
    The ABAP Query was exported to our Prod client successfully.  I say exported because you do not do direct transports with queries.
    We then transported the new transaction code to run the query to production and it was successful.
    However, when we run the transaction is production we get a sys dump stating it can not find the query.
    We believe the problem is the TRDIR table is missing an entry for the program in production (it has an entry in DEV).
    I would have thought that the export on the query would have brought in this entry -but obviously not.
    Any suggestions on how we can get this entry into the production client?  Did we miss a step on the export that would do this?  We want to only bring over this entry - not the entire TRDIR table for obvious reasons (size (1.5 million entries, programs not ready for production, etc.).
    Please help!
    Thanks.
    Scott

    Hi,
    The above solution will work if you assign the transaction in one server, If you want this will not work in quality/production boxes when transported the query..the program name will not be the same in all the servers...
    For this. Do the below:
    In SE93, Create a Paramter Transaction
    -> Transaction = Start_report
    -> In default values, give the below details:
         D_SREPOVARI-REPORTTYPE = AQ
         D_SREPOVARI-EXTDREPORT = Name of the Query
         D_SREPOVARI-REPORT = User Group
    Save the transaction..Now if the program is generated with different names in the quality/proudction, this will still work..
    Regards
    Vijay Hebbal

  • Javascript codes not working as they should in version 7

    I have a website that is working fine with version 3.6.9, now it is not working as it should be with version 7. My files containing javascript codes, the links in the codes are broken when am registering some controls using the <%@ Register .... /> tag.
    for example:
    i have the following code:
    <%@ Register Src="~/Controls/TempMenu.ascx" TagName="TempMenu" TagPrefix="uc1" %>
    now, whenever I click on any button in the page, instead of redirecting me to an existing page within the same folder, it will go to the "controls" folder and search for the page there...
    Please help.

    A good place to ask advice about web development is at the mozillaZine Web Development/Standards Evangelism forum.<br />
    The helpers at that forum are more knowledgeable about web development issues.<br />
    You need to register at the mozillaZine forum site in order to post at that forum.<br />
    See http://forums.mozillazine.org/viewforum.php?f=25

  • Cross-frame scripting is not working in Safari 3.0.4. Minimal example code.

    Hello,
    I've found that cross-frame scripting is not working in Safari 3.0.4, as it worked
    ok on Safari 3.0.1, and in other browsers I tried: Firefox, Mozilla, IE.
    document.domain property is set to "ds2ps.net", correctly to the best of my knowledge
    in the frameset and in both frames. Both frames and frameset are loaded
    from subdomains of the same domain "ds2ps.net"
    Please have a look at this mimimal example:
    http://frameset.ds2ps.net/frames-test/frameset.html
    Press buttons to get alert with value of a variable defined in the frameset
    and in the first frame.
    This gives "undefined" in Safari 3.0.4, and give following message in Safari
    JavaScript console:
    Unsafe JavaScript attempt to access frame with URL http://frameset.ds2ps.net/frames-test/frameset.html from frame with URL http://frame2.ds2ps.net/frames-test/frame2.html. Domains, protocols and ports must match.
    Works ok in all other browsers and in earlier versions of Safari.
    Apperently, I'm doing something incorrectly.
    I would appreciate if Apple Safari developers have a look at this problem and suggest solution.
    My company is developing web application which depends on cross-frame scripting,
    and we would like to continue supporting Safari browser.
    Thank you,
    John

    Thank you, iBod,
    We've submitted this bug at http://bugs.webkit.org
    Bug 16444: Cross-frame scripting not working in Safari 3.0.4 despite proper document.domain set in all frames
    Thank you for your suggestion!

  • Obfuscated JavaScript not works in safari 5.0.2

    Hi All,
    I'm very new to safari browser and currently makes my web application in safari. It works fine with few bugs in UN-obfuscated JavaScript.
    Obfuscated JavaScript not works in Safari. Kindly let me know the solution or set up. This is quite urgent and seeks for earlier response.
    Thanks in advance.

    For OS X javascript issues, post to the Unix or Developer forums under OS X Technologies. For windoze issues, I have no suggestions, since I don't do that technology.

  • Safari 5.1 customized keyboard shortcut not working

    I've just updated safari on snow leopard and my customized keyboard shortcut: go to next/previous panel (ctrl -> and ctrl <-) don't work anymore even if i set them in my system preferences

    I'm also experiencing issues with custom keyboard shortcuts not working after the update to Safari 5.1. I had no problems with the previous version of Safari.... I wish I had not updated.

  • Af:panelTabbed not working in safari 4 & 5

    Hi,
    af:panelTabbed is not working in safari 4 and 5 .
    On click of each tab it calls a javascript method.
    the javascript method do the functionality of watermark.
    The code i use for watermark is
    function adf$noValueText$intialize(event) {
    var component = event.getSource();
    component.visitChildren(adf$noValueText$replaceEmptyWithText, null, false);
    function adf$noValueText$onFocus(event) {
    adf$noValueText$replaceTextWithEmpty(event.getSource());
    function adf$noValueText$onBlur(event) {
    adf$noValueText$replaceEmptyWithText(event.getSource());
    function adf$noValueText$replaceTextWithEmpty(component) {
    var noValueText = component.getProperty("noValueText");
    if (typeof noValueText != 'undefined') {
    var domNode = document.getElementById(component.getClientId() + "::content");
    if (domNode.value == component.getProperty("noValueText")) {
    domNode.value = "";
    function adf$noValueText$replaceEmptyWithText(component) {
    var noValueText = component.getProperty("noValueText");
    if (typeof noValueText != 'undefined') {
    var domNode = document.getElementById(component.getClientId() + "::content");
    if (domNode.value == "") {
    domNode.value = component.getProperty("noValueText");
    function refresh() {
    location.reload();
    Can somebody tell me whether this javascript is correct and the reason why af:paneltabbed not working in safari 4 & 5 browser.
    Pls reply asap.
    Thanks in advance

    <af:panelTabbed id="pt2" >
    <af:showDetailItem text="Team Members"
    id="sdi2" immediate="true">
    <af:clientListener method="refresh" type="disclosure"/>
    <af:outputFormatted value="TEAM MEMBERS" id="of49" />
    <af:subform id="s2">
    <af:panelLabelAndMessage label="FIRST_AND_LAST" id="plam1"/>
    <af:inputText id="it1FnLastValid" value="#{ForgotUsernameBean.initials}" required="true"
    maximumLength="2" autoSubmit="true" requiredMessageDetail="ENTER_FIRST_AND_LAST">
    <af:clientAttribute name="noValueText" value="Ex.AA"/>
    <af:clientListener method="adf$noValueText$onFocus" type="focus"/>
    <af:clientListener method="adf$noValueText$onBlur" type="blur"/>
    </af:inputText>
    <af:panelLabelAndMessage styleClass="label-msg" label="BIRTH_DATE(DD/YY)" id="plam2"/>
    <af:inputText value="#{ForgotUsernameBean.dateOfBirth}"
    requiredMessageDetail="ENTER_BIRTH_DATE"
    required="true"
    maximumLength="5"
    autoSubmit="true" id="it1">
    <af:clientAttribute name="noValueText"
    value="DD/YY"/>
    <af:clientListener method="adf$noValueText$onFocus"
    type="focus"/>
    <af:clientListener method="adf$noValueText$onBlur"
    type="blur"/>
    </af:inputText>
    <af:panelLabelAndMessage styleClass="label-msg"
    label="RESTAURANT_NUMBER"
    id="RTM3"/>
    <af:inputText label="" id="it3ValidnRestNo"
    styleClass="errorTextForgotUN"
    value="#{ForgotUsernameBean.restaurantNumber}"
    required="true"
    maximumLength="4"
    autoSubmit="true"
    requiredMessageDetail="RESTAURANT_NUMBER'">
    <af:clientAttribute name="noValueText" value="****"/>
    <af:clientListener method="adf$noValueText$onFocus" type="focus"/>
    <af:clientListener method="adf$noValueText$onBlur" type="blur"/>
    </af:inputText>
    <af:panelLabelAndMessage styleClass="label-msg" label="POS_ID" id="plam3"/>
    <af:inputText label="" id="it4InpPosIdValidn"
    value="#{ForgotUsernameBean.posId}"
    required="true"
    maximumLength="4"
    autoSubmit="true"
    requiredMessageDetail="POS ID">
    <af:validateLength minimum="3" maximum="4"
    messageDetailNotInRange="POSID NOTINRANGE"/>
    <af:validateRegExp pattern="[0-9]*"
    messageDetailNoMatch="POSID INVALID"/>
    <af:clientAttribute name="noValueText"
    value="****"/>
    <af:clientListener method="adf$noValueText$onFocus"
    type="focus"/>
    <af:clientListener method="adf$noValueText$onBlur"
    type="blur"/>
    </af:inputText>
    <af:commandButton styleClass="pollsVote backBt"
    text="#{resources['COMMON.ENTER']}"
    action="#{ForgotUsernameBean.validateUserDetailsTM}"
    partialTriggers="it4InpPosIdValidn it3ValidnRestNo it1FnLastValid it1"
    disabled="#{ForgotUsernameBean.posId==null||ForgotUsernameBean.restaurantNumber==null||ForgotUsernameBean.dateOfBirth==null||ForgotUsernameBean.initials==null}"
    id="teambutton1"/>
    </af:subform>
    </af:showDetailItem>
    <af:showDetailItem text="RESTAURANT MANAGERS" id="sdi3" immediate="true">
    <af:outputFormatted value="RESTAURANT MANAGERS" id="magH"/>
    <af:subform id="s1">
    <af:panelLabelAndMessage styleClass="label-msg" label="RESTAURANT NUMBER"id="m3"/>
    <af:inputText label="" id="it5"
    styleClass="errorTextForgotUN"
    value="#{ForgotUsernameBean.rmRestaurantNumber}"
    required="true"
    maximumLength="4"
    autoSubmit="true"
    requiredMessageDetail="RESTAURANT NUMBER">
    <af:clientAttribute name="noValueText"
    value="****"/>
    <af:clientListener method="adf$noValueText$onFocus"
    type="focus"/>
    <af:clientListener method="adf$noValueText$onBlur"
    type="blur"/>
    </af:inputText>
    <af:panelLabelAndMessage styleClass="label-msg" label="BIRTH DATE(MM/DD/YYYY)" id="m9"/>
    <af:inputText value="#{ForgotUsernameBean.rmdateOfBirth}"
    required="true"
    autoSubmit="true"
    requiredMessageDetail="BIRTH DATE" id="it6" maximumLength="10">
    <af:clientAttribute name="noValueText"
    value="MM/DD/YYYY"/>
    <af:clientListener method="adf$noValueText$onFocus"
    type="focus"/>
    <af:clientListener method="adf$noValueText$onBlur"
    type="blur"/>
    </af:inputText>
    <af:panelLabelAndMessage styleClass="label-msg"
    label="EMPLOYEE_ID"
    id="m26"/>
    <af:inputText label="" id="it7"
    value="#{ForgotUsernameBean.last4DigitEmpId}"
    required="true"
    autoSubmit="true"
    maximumLength="4"
    requiredMessageDetail="EMPLOYEE_ID">
    <af:clientAttribute name="noValueText"
    value="****"/>
    <af:clientListener method="adf$noValueText$onFocus"
    type="focus"/>
    <af:clientListener method="adf$noValueText$onBlur"
    type="blur"/>
    </af:inputText>
    <af:commandButton styleClass="pgrl_loginbutton login_button floatL"
    text="#{resources['COMMON.ENTER']}"
    partialTriggers="it5 it6 it7"
    disabled="#{ForgotUsernameBean.rmdateOfBirth==null||ForgotUsernameBean.last4DigitEmpId==null||ForgotUsernameBean.rmRestaurantNumber==null}"
    action="#{ForgotUsernameBean.validateUserDetailsRM}"
    id="m40"/>
    </af:subform>
    </af:showDetailItem>
    </af:panelTabbed>
    this is the code i used for paneltabbed.
    refresh method is called after each showdetailitem <af:clientListener method="refresh" type="disclosure"/>
    when i remove this clientlistener which calls refresh method,panel tab is working fine in safari.
    But the problem is watermark functionality works only if a refresh is given
    So now im stuck up.. :(
    Can somebody pls provide me a soln for this issue.... ??

  • Why is Javascript sometimes not working?

    Hello -
    I am a web programmer, and also design websites. One of my clients tells me that the javascript slide show on three of her pages is not working in Safari. She wants it fixed, but I have no idea why it isn't working.
    1) It works fine in Internet Explorer, Firefox, and Flock.
    2) I have other javascripts on the same page, and they're working fine in Safari.
    3) I went back to the ReadMe file for the script, "Ultimate Fade-in slideshow", and they indicated that it should work in Safari.
    Since I didn't write the script myself, I am not even going to attempt to figure out how to change it to make it work ( it's a VERY long script ).
    However, I'm wondering if anyone has experienced a similar problem, namely 1) and 2) above ( not necessarily the same script, but the same type of problem ). If so, then I'll attempt to find a work-around.
    If you want to see what's wrong, look at http://www.simpleislandweddings.com . In Safari, you'll notice a big empty box. But notice that the copyright date (2008) is filled in in the footer. This is entered with javascript.
    prof611

    http://www.simpleislandweddings.com/include/slideshow.js
    Click the link and it will open (like the text file it is) and you'll see it is very old and not supported by "modern" browsers.
    Check http://www.dynamicdrive.com (the authors of the code) for more answers.

  • Javascript does not work in any browsers

    Hello all,
    Have had this problem for about five months now, not sure when it started. Essentially Javascript actions don't seem to work in browsers. This is most evident on a site such as Reddit (www.reddit.com), where, even logged in, the UP/DOWN voting arrows simply don't work.
    I've tried Safari, Chrome, Opera, and Firefox and the problem persists, telling me it is a system issue. I've since upgraded to Lion and it persists.
    I know I can just wipe the system and start from scratch but I'm simply too busy to deal with the days of lost productivity. Can anyone give me some leads on where to look?
    Thanks!

    The javascript detection script AC posted properly detects the browser version and operating system on all browsers.
    That's not the point, though...  some sites may be coded specifically for, say, Internet Explorer, which means they'll only work properly on Windows.  This is extremely poor design, but it happens.
    Are you having trouble with ALL JavaScript, or just on certain sites?  If you're not sure, try visiting one of my photo galleries:
    http://www.reedcorner.net/thomas/photos/nature/
    When you click on one of the photos, it uses JavaScript to display a pop-up image showing the image at a larger size.  That code should work in Safari...  I just double-checked and it does work in Safari 5.1 under Lion.  If it works for you, you're seeing a problem with certain sites, not with your machine as a whole.

  • Javascript is not working in JSP

    Hi everybody,
    My javascript is not working in JSP.I m not able to fix this problem.Please tell where the problem in code.
    thx in advance.
    <%@page import="javax.servlet.http.*" %>
    <%@page import="java.sql.*" %>
    <html>
    <head>
    <script type="text/javascript" >
    funtion checkentries()
    if(document.LForm.uname.value==null || document.LForm.upassword.value==null)
    alert("Please fill all entries")
    else
    document.LForm.submit()
    </script>
    </head>
    <body>
    <table width=100% height=100% valign="center" align="center" border=0>
    <tr height=10% ><td>
    <%@ include file="Header.jsp" %>
    <hr>
    </td></tr>
    <tr height=1% width=100%>
    <td align=right>Register
    <hr>
    </td>
    </tr>
    <tr height=77% width=100% ><td>
    <table>
    <tr><td width=65%>
    </td>
    <td bgcolor="black" width="1" ></td>
    <td align="right" valign="top" >
    <form method="POST" action="/EIS/Home.do" name="LForm">
    User Name: <input type="text" align=right name="uname"><br>
    Password: &nbsp&nbsp&nbsp<input type="password" name="upassword"><br>
    <input type="submit" name="submit" value="Submit" onclick="checkentries()">
    </td>
    </tr>
    </table>
    </td></tr>
    <tr height=10% ><td>
    <hr>
    <%@ include file="Footer.jsp" %>
    </td></tr>
    </table>
    </body>
    </html>

    in this part:
    if(document.LForm.uname.value==null || document.LForm.upassword.value==null)should be:
    if(document.LForm.uname.value=="" || document.LForm.upassword.value=="")or
    if(document.LForm.uname.value.length==0 || document.LForm.upassword.value.length==0)

  • Google Voice Widget Not Working in Safari 5.1 which is Adobe flash wmode transparent based

    Google Voice Widget Not Working in Safari 5.1 which is Adobe flash with wmode transparent set. For that matter all flash text fields in Safari 5.1 are not working accross the web when wmode is set to transparent. This is a Safari bug! Other browsers work fine.
    Well after much research Adobe flash text field with wmode transparent set is not working in Safari 5.1 when any flash object has the wmode set to "transparent", or "opaque". The problem is many site must layer flash objects with html so the wmode transparent must be used.
    Affecting sites like BEST BUY, WALMART, CVS, STAPLES, Chechout their flash based weekly ads and find one that you need to update the quantity in the flash pop-up and the text field with keyboard strokes will not work. Flash text fields were all working fine until several month ago when Safari rolled out 5.1 working for Google Voice Flash based widget which uses the wmode transparent. HELP!
    John Hooper
    Techno Online Problem Solver
    http://www.johnrhooper.com

    All 3 examples seem to render just fine in IE and FF.
    See comparison photo:
    http://www.cidigitalmedia.com/web_devel/background.jpg
    If not working for you, try clearing your cache to remove any old, non working versions.
    Test on some other machine besides yours.
    Code looks fine and seems to work.
    Best wishes,
    Adninjastrator

  • Uploading files to website not working with Safari in Windows 7

    Safari version: 5.1.7
    OS: Windows 7
    Hi,
    I am a website owner, and I have a feature on my site where users can upload large (up to 50MB) music files to my server. The feature works in Firefox on OSX & Windows platforms and it also works in Safari on OSX. The uploading feature is not working with Safari for Windows. Do you have any idea why and how to fix this? It can't be an issue with my server as it works in other browsers fine and works fine in Safari for OS X.
    If you have any information on how to solve this or things for me to try to rectify this for use with Windows operating system it would be much appreciated.
    Thanks.

    GREAT NEWS!!!!
    I have solved this issue myself with some help from my a user on Microsoft Forums. The issue stems from the mime type of each Browser Chrome, IE, & Safari for Windows defaults as audio/wav. When the mime type is changed to audio/x-wav everything works. Firefox defaults to audio/x-wav and when changed to audio/wav it DOES NOT work.
    Once I input some code in my .php upload page to change the mimetype if audio/wav is detected everything works GREAT!!!
    So Here is what you need to do: Find your upload page and input this code:
    echo "<p>MIME Type: ".$_FILES["file"]["type"]."</p>";   
    right before your "If/then" statement of file type. For me it was near line 30 in my upload.php page, but I'm sure this is different for everyone.
    This will detect and DISPLAY the default mime type of your browser on the error page when your upload doesn't work. Once you know what mime type works for your file type then you can change your "if/then" statement for mime type upload to change your mime type to the correct one.
    I don't want to give the code here, because I'm sure it's specific to your file types and your site construction, but this should lead you on the right track.
    ***This is the solution if you ARE NOT ABLE to upload any certain file in a certain Browser. It has to do with mime type construction***
    I hope this helps others like it helped me!!!!!

  • Need help with adjusting Javascript code to work in Adobe Edge (Countdown)

    Hello
    Im a newbie when it comes to working with Javascript and Adobe Edge and need a bit of help with adjusting some javascript code to work with Adobe Edge. A friend of mine helped me with making this javascript code: Edit fiddle - JSFiddle
    Its a simple countdown which counts down to a certain time at a certain date. What I aim to do is to add this code as a trigger on a text-element called "countdown" (within a symbol called "count").
    I have tried to do this as the code is, but it does not work. Anyone have any suggestions?
    Thanks!
    Mvh,
    Øyvind Hermans

    Hello again
    I have stumbled upon a problem with these animations; They crash the browser after viewing them a little while, usually less than 30 seconds in.
    Is this problem also occuring when you watch the animations?
    Is the countdown-code to much for the browsers to handle?
    Thanks in advance for your answers.
    Sincerely,
    Øyvind Hermans

Maybe you are looking for

  • Exception handling for all the insert statements in the proc

    CREATE PROCEDURE TEST ( @IncrStartDate DATE ,@IncrEndDate DATE ,@SourceRowCount INT OUTPUT ,@TargetRowCount INT OUTPUT ,@ErrorNumber INT OUTPUT ,@ErrorMessage VARCHAR(4000) OUTPUT ,@InsertCase INT --INSERT CASE INPUT WITH EXEC AS CALLER AS BEGIN --Ma

  • Duplicate contacts after upgrading?

    I started from      a Mac Power Book running Snow Leopard  - too old to upgrade to Mountain Lion and afirst generation iPad      Not at all sure how either of those worked wo\ith iCloud I switched to a MacMini on Mountain Lion and also from an iPhine

  • Smart Sharpen preview problem

    CS4, Mac Pro 2.6 quad, 10.4.11, 5gb RAM, 7300GT video card. Working with smart sharpen filter, the preview does not update but the file window does. However, achieving the desired results using the file window does not translate to the image after th

  • Ipod-nano-6th generation- booting trouble :(

    using ipod nano - 6th generation the problem is , when i switch on the ipod it show a message that "use itunes to restore" and gets rebooted automatically. tried and got tierd of following all the possible ways found in apple support and in youtube ,

  • How to use left outer join on more than one table (source)

    Hi all, In our project we are converting the Unix shell & SQL scripts into OWB mappings. We are facing problem converting left outer join in OWB. here is one of the example. i have just pasted the FROM and where condition. FROM ym_scr t1, branch_finm