[Proto-Scripty] Re: Issues with IE8, mousedown, mouseup -
Hi, Have you consider using mouseup instead of mousedown? This is indeed how standard ihm buttons works. It doesn't explain or justify IE8's behavior, but if it works, you can hit two birds with one stone. Eric On Jun 24, 1:55 am, max radin max.tomlin...@gmail.com wrote: Hi- I have a search widget class written in prototype that's been running fine for a couple of years now in FF and IE6+7. The user enters search parms, clicks a button and an ajax interaction (using jboss seam) retrieves data from a host server class (Java). The results are populated into a div and rendered using Element.show. The search widget is flexible enough to be used in multiple pages. The button event fired is onmousedown. The problem I am having with IE8 is that the mouseup event is being invoke and reloading the form (which contains the search widget). If I keep the button pressed down, the results display fine. Once I let the button go (mouseup) my form is reloaded. I've tried intercepting the mouseup event but it only nullifies the mousedown. I'm using the latest prototype.js (1.7x and have tried multiple versions). Any ideas? many thanks Max -- You received this message because you are subscribed to the Google Groups Prototype script.aculo.us group. To post to this group, send email to prototype-scriptacul...@googlegroups.com. To unsubscribe from this group, send email to prototype-scriptaculous+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/prototype-scriptaculous?hl=en.
[Proto-Scripty] Ajax JSON Request with Flickr URL response don't work in Firefox
Hi every body I have a weird issue I been working with the Flickr API, in Flickr for make a connection with the server is through url format in my case something like this http://api.flickr.com/services/rest/?method=flickr.photosets.getListapi_key=10cb3dccaa050efebdc01540c1d4d227user_id=51390...@n07format=json If your run into any browser you are going to get a flickr function and is ok, but Im trying to obtain with Ajax Im doing something like new Ajax.Request('http://api.flickr.com/services/rest/? method=flickr.photosets.getListapi_key=10cb3dccaa050efebdc01540c1d4d227user_id=51390...@n07format=json', { method:'get', onSuccess: function(transport){ debugger; var response = transport.responseText || no response text; alert(Success! \n\n + response); }, onFailure: function(){ alert('Something went wrong...') } }); And is working good in IE the response have what you can see in the url of flickr but in Firefox I dont know why Im getting in the responseText a blank string . does any have any clue what am I doing wrong? Thanks Nahum -- You received this message because you are subscribed to the Google Groups Prototype script.aculo.us group. To post to this group, send email to prototype-scriptacul...@googlegroups.com. To unsubscribe from this group, send email to prototype-scriptaculous+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/prototype-scriptaculous?hl=en.
Re: [Proto-Scripty] Ajax JSON Request with Flickr URL response don't work in Firefox
Hi Nahum, as far as I know Firefox does not allow for cross-domain AJAX requests. What you could to is to request a php file on your server and that php file does the call to the Flickr API. David Am 24.06.2010 19:47, schrieb ncubica: Hi every body I have a weird issue I been working with the Flickr API, in Flickr for make a connection with the server is through url format in my case something like this http://api.flickr.com/services/rest/?method=flickr.photosets.getListapi_key=10cb3dccaa050efebdc01540c1d4d227user_id=51390...@n07format=json If your run into any browser you are going to get a flickr function and is ok, but Im trying to obtain with Ajax Im doing something like new Ajax.Request('http://api.flickr.com/services/rest/? method=flickr.photosets.getListapi_key=10cb3dccaa050efebdc01540c1d4d227user_id=51390...@n07format=json', { method:'get', onSuccess: function(transport){ debugger; var response = transport.responseText || no response text; alert(Success! \n\n + response); }, onFailure: function(){ alert('Something went wrong...') } }); And is working good in IE the response have what you can see in the url of flickr but in Firefox I dont know why Im getting in the responseText a blank string . does any have any clue what am I doing wrong? Thanks Nahum -- You received this message because you are subscribed to the Google Groups Prototype script.aculo.us group. To post to this group, send email to prototype-scriptacul...@googlegroups.com. To unsubscribe from this group, send email to prototype-scriptaculous+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/prototype-scriptaculous?hl=en.
[Proto-Scripty] Re: Ajax JSON Request with Flickr URL response don't work in Firefox
Yes thanks David, I just had read about this, and found this one for Prototype http://www.dandean.com/jsonp-for-prototypejs/ and the js file is in http://www.dandean.com/jsonp-for-prototypejs/src/jsonp.js this let you make cross domain calls, (at least is what he is saying) Im going to try in a few seconds. Jquery have JSONP include it into there core options, do you know if exist any intent to have it in prototype core'???. this is the example in jquery. $.getJSON('ajax/test.json', function(data) { $('.result').html('p' + data.foo + '/p' + 'p' + data.baz[1] + '/p'); }); thanks long live to prototype =) On Jun 24, 12:53 pm, David Behler d.beh...@gmail.com wrote: Hi Nahum, as far as I know Firefox does not allow for cross-domain AJAX requests. What you could to is to request a php file on your server and that php file does the call to the Flickr API. David Am 24.06.2010 19:47, schrieb ncubica: Hi every body I have a weird issue I been working with the Flickr API, in Flickr for make a connection with the server is through url format in my case something like this http://api.flickr.com/services/rest/?method=flickr.photosets.getList;... If your run into any browser you are going to get a flickr function and is ok, but Im trying to obtain with Ajax Im doing something like new Ajax.Request('http://api.flickr.com/services/rest/? method=flickr.photosets.getListapi_key=10cb3dccaa050efebdc01540c1d4d227us er_id=51390...@n07format=json', { method:'get', onSuccess: function(transport){ debugger; var response = transport.responseText || no response text; alert(Success! \n\n + response); }, onFailure: function(){ alert('Something went wrong...') } }); And is working good in IE the response have what you can see in the url of flickr but in Firefox I dont know why Im getting in the responseText a blank string . does any have any clue what am I doing wrong? Thanks Nahum -- You received this message because you are subscribed to the Google Groups Prototype script.aculo.us group. To post to this group, send email to prototype-scriptacul...@googlegroups.com. To unsubscribe from this group, send email to prototype-scriptaculous+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/prototype-scriptaculous?hl=en.
[Proto-Scripty] Re: Ajax JSON Request with Flickr URL response don't work in Firefox
and the JSONP works at least for flickr... thanks for the support =) On Jun 24, 12:53 pm, David Behler d.beh...@gmail.com wrote: Hi Nahum, as far as I know Firefox does not allow for cross-domain AJAX requests. What you could to is to request a php file on your server and that php file does the call to the Flickr API. David Am 24.06.2010 19:47, schrieb ncubica: Hi every body I have a weird issue I been working with the Flickr API, in Flickr for make a connection with the server is through url format in my case something like this http://api.flickr.com/services/rest/?method=flickr.photosets.getList;... If your run into any browser you are going to get a flickr function and is ok, but Im trying to obtain with Ajax Im doing something like new Ajax.Request('http://api.flickr.com/services/rest/? method=flickr.photosets.getListapi_key=10cb3dccaa050efebdc01540c1d4d227us er_id=51390...@n07format=json', { method:'get', onSuccess: function(transport){ debugger; var response = transport.responseText || no response text; alert(Success! \n\n + response); }, onFailure: function(){ alert('Something went wrong...') } }); And is working good in IE the response have what you can see in the url of flickr but in Firefox I dont know why Im getting in the responseText a blank string . does any have any clue what am I doing wrong? Thanks Nahum -- You received this message because you are subscribed to the Google Groups Prototype script.aculo.us group. To post to this group, send email to prototype-scriptacul...@googlegroups.com. To unsubscribe from this group, send email to prototype-scriptaculous+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/prototype-scriptaculous?hl=en.
[Proto-Scripty] Sortable : dropOnEmpty and only options problem
Hi all, i'll try to be as clear as possible... i'm creating a kind of schedule application, with all days of the week divided into half days (AM and PM). Users will be able to drag and drop activities (from a list of activities) to the schedule. Some activities take half a day, others take a full day. So for each day in the schedule, you can have zero, one or two activities. I've created 8 sortable objects : - 1 for the list of activities (called activities_1) - 1 for each day (called day_x, with x as the number of the day : 1 to 7) When i drop a half-day activity in a day_x, i want to limit the next possible drop to day_x to a half-day activity, so i use the only option with the class half-day. When i drop a full-day activity in a day_x, i want to forbid any drop to day_x, so i use the dropOnEmpty option set to false. I set these options by creating a new sortable object day_x each time an update is made (using onUpdate event : the previous sortable object day_x is supposed to be destroyed with the new sortable.create). My problem : dropping a full-day activity to day_x is still possible if an hald-day as already been dropped. It seems that the only option doesn't work when dropOnEmpty is set to true if the droppable zone is not empty. Any idea ? Thanks !!! -- You received this message because you are subscribed to the Google Groups Prototype script.aculo.us group. To post to this group, send email to prototype-scriptacul...@googlegroups.com. To unsubscribe from this group, send email to prototype-scriptaculous+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/prototype-scriptaculous?hl=en.