similar to: A strange error with javascript and safari

Displaying 20 results from an estimated 10000 matches similar to: "A strange error with javascript and safari"

2006 Jun 29
1
Javascript Detect - Safari Version
Does anyone know how to accurately check for Safari version number? navigator.appVersion doesn''t work fine - it''s giving me funny results. I want to be able to tell a Safari 1.0 from a Safari 1.3 for my application.
2006 Aug 08
2
Javascript - multiple select selectboxes
I am trying to populate a multiple select box using javascript, but am having problems with the name. When I change the name to "codes[]" I can''t get the javascript to find the form element, but without the [] on the end, rails wont read all of the selected values. Here is an example of the javascript working, but when you submit the array is not passed across for the codes.
2011 Mar 31
6
Parse selectbox value with javascript
Hey guys, i''ve the following question: how can i parse the value of a selectbox within a div-tag (with the id "ma") via AJAX and use the parsed value for reading out some data from my database. the parsing request should be started by selecting another selectbox. My mainquestion is: how can i parse a selectbox (if possible with rjs) an get the value in ruby (not just in
2007 Jan 21
0
Safari doesn't pass the headers.
When I try to update content through ajax It doesn''t work on Safari. I''ve opened a ticket http://dev.rubyonrails.org/ticket/7087 for full reference. The test case is the next: /app/controllers/problem_controller.rb class ProblemController < ApplicationController def index render :action => ''index'' end def myrequest render(:update) {|page|
2006 Feb 25
1
Safari File upload problem
Hello! I found your post to the rubyonrails.org about Safari File upload problem Did you able to solve this issue? > Has anyone else had problems uploading files with safari? > > Excerpt from my .rhtml: > > <form action="/photo/create?item_id=<%= @item.id %>" > method="post" enctype="multipart/form-data"> >
2007 Feb 17
0
Template is missing 'show.rjs.rhtml' error in safari only?
I was able to solve this but want to understand why this fix works. Solution: Remove the format.js line from the respond_to block the error i get when navigating to: /music;accept Template is missing Missing template script/../config/../app/views/music;accept.rjs.rhtml Accept is an aspect of the music controller eg in routes.rb map.resources :music, :collection => {:accept =>
2007 Jul 16
0
Ajax works in FF but not safari!
The following code works perfectly in FF, but does not work in safari. I''m on Edge Rails with the latest javascripts. Any clue what''s going on? CONTROLLER: def create @program = @school.programs.new(params[:program]) if @program.save render :update do |page| page[:program_list].replace_html(:partial => ''program'', :collection =>
2008 Jul 11
1
prototype.js breaks treemenus from pear HTML_TreeMenu in safari
hi all i see a very strange behavior in safari when using prototype.js and the pear HTML_TreeMenu to reproduce get prototype.js (http://www.prototypejs.org/assets/ 2008/1/25/prototype-1.6.0.2.js) and treemenu.js (http://cvs.php.net/ viewvc.cgi/pear/HTML_TreeMenu/TreeMenu.js?revision=1.22). and test the following html with safari on mac or windows (http:// www.apple.com/safari/download/)
2008 Jun 03
3
Safari and Inheritance.
The following code doesn''t work in Safari, though its working well on FF/IE. We just recently started migrating and we are find issues with Safari 3.X var SipIxView = Class.create({ initialize: function() { } }); var CdrView = Class.create(SipIxView,{ view: function() { } }); I get the following error in Safari. var cdrView = new CdrView(); TypeError:
2006 Jun 23
3
Ajax errors in safari
I am implementing some AJAX features into a web forum, and one feature works fine in Firefox and in IE, but it is choking in Safari. Safari will send the request fine and the data will be stored in the DB, but it is not responding correctly to the RJS that is being sent back. Anybody notice issues with Safari parsing the javascript sent back to the browser? -- Timothy Johnson
2006 May 12
0
RJS, Safari, Error - DOM exception 7
I''m having nasty cross-browser headache. Not new to Rails, but quite new to AJAX/RJS. My app works perfectly in Firefox, but generates the error in the subject line in Safari. Pretty simple circumstance, completely reproducible in all cases: Any ideas? Relevant code attached. Layout: ------- <?xml version="1.0" encoding="utf-8"?> <!DOCTYPE html PUBLIC
2006 Jun 06
1
Getting value of form using Ajax (and problems with Safari)
I have got two forms, the first is a textarea plus a link that activates some javascript to change the form, the second activates some javascript on the onchange event which changes it into a textarea form. This works in Firefox, but not in Safari. Also, I need the value which is selected. I''ve found an example that gives the parameter to the javascript, like this: <input
2009 Mar 31
2
Safari 4 invalid auth token
Getting an odd error in Safari 4: Here''s the auth token that''s output to my javascript: 4HB8yAW4gU2xEavWOc+kiMoj4XIyCBUK/t704aOQ+co= Here''s what''s listed in the parameters: "authenticity_token"=>"4HB8yAW4gU2xEavWOc kiMoj4XIyCBUK/t704aOQ co=" notice: the +''s are being replaced by spaces. This a specific safari issue? I
2006 Jan 23
0
form_remote_tag and Safari (HELP!)
<%= form_remote_tag :url => { :action => ''list_setups'' }, :loading => "Element.update(''setupslist_display'',''''); Element.show(''setupslist_progress'')", :loaded => "Element.hide(''setupslist_progress'')", :update => ''setupslist_display'',
2006 Jun 06
0
Get value from form using rjs, and problem with Safari
Hi, I have got two forms, the first is a textarea plus a link that activates some javascript to change the form, the second activates some javascript on the onchange event which changes it into a textarea form. This works in Firefox, but not in Safari. Also, I need the value which is selected. I''ve found an example that gives the parameter to the javascript, like this: <input
2006 May 08
2
prototype getHeight safari
Hi I have a weird bug with getHeight or getDimensions().hegiht (prototype) only on safari if I have a html file like this <div id="test"></div> and a embedded css <style> #test { width:100px; height:100px; float:left; } </style> In Safari $(''test'').getHeight returns 100, fine but if the css declaration #test.. is in a css file
2012 Mar 08
0
Safari Version 5.1.3 (7534.53.10) Browser problem --- removing cookie on OS X Lion 10.7.3 (11D50b) when still valid
Hi All, Hope this note helps the newbies to Rails As I''m new to Rails, I''d like to share how I tracked down Safari''s dropping of my cookie. My Applebug no: 11003492 registered 7 March/2012 My development platform: MacPro running rails 3.1.1 on OS X Lion 10.7.3 (11D50b) Problem: Firefox worked as programmed but switching to Safari my current_user_token kept in the
2005 Aug 29
0
script.aculo.us Updates, new Safari
Hey all, 1) script.aculo.us Updates: The last week has seen many updates to the script.aculo.us SVN trunk, see for yourself (and do some testing with the code, please!) A biggest update are the self-running Javascript unit tests, contributed by Jon Tirsen-- also many bug fixes and improvements have made it in. 2) Safari 2.0.1 Today saw the release of a new version of Safari, so, please
2008 Dec 24
5
Odd js behavior in Chrome & Safari
View file has a js function "confirm_result()" in <head> section: <script type="text/javascript"> function confirm_action() { result = confirm("Please select OK or Cancel") if (result == true) document.write("You selected OK.") else document.write("You selected Cancel.") } </script>
2006 Jul 29
0
RJS templates, Safari 1.3
Hello, I''m having a problem getting RJS templates working with Safari 1.3 (latest version available to OS X 10.3 and earlier). I''m using Rails 1.1.4, running on either linux or OS X.. same results. My RJS pages work fine using Safari 2.0, IE and Firefox.. just not Safari 1.3. The twist is that the following RJS sites work fine in Safari 1.3: http://depot.iamjp.com/demo