similar to: prototype-1.6.0.2 Newbie Why is AJAX.request fired 3 times?

Displaying 20 results from an estimated 2000 matches similar to: "prototype-1.6.0.2 Newbie Why is AJAX.request fired 3 times?"

2007 Jul 19
0
ASP.NET AJAX Web Services and Prototype Version 1.5.1.1
I wanted to use a web service published with ASP.NET AJAX from Prototype Version 1.5.1.1 It''s easier to call an ASP.NET AJAX web service by using an ASP.NET AJAX page with a proxy class, but I have an application which still has many Classic ASP pages and using Prototype seemed like a better idea than hand coding the the interactions, or figuring out how to include all the right ASP.NET
2008 Aug 10
1
Prototype, JSON and headers
Hi everyone. I love JSON and using Prototype has help me reduce the code to handle AJAX responses. But one thing keeps me confused and sometimes even frustrated. I don''t really understand what is going on with the headers, so if someone could take some time to explain what is going on, I (and probably a lot more people) would be very thankful. The thing is this. On my local server (Mac OS
2007 Jun 07
0
Prototype 1.5.1 Content-Type Header
Hi All, Iam trying to call a SOAP service using prototype. The service throws a error when the request header ''Content- Type = application/x-www-form-urlencoded'' Hence i want to overide that functionality. I used the following code for that. function makeWSCall(){ var opt = { method: ''post'',
2005 Dec 23
3
RE: Scriptaculous and Prototype based Rich TextEditor
What I have so far. In my main HTML: <script type="text/javascript" src="/javascripts/tiny_mce/tiny_mce_src.js"></script> <script type="text/javascript"> tinyMCE.init({ mode: "textareas", theme: ''advanced'', theme_advanced_toolbar_location: ''top'' }); ... </script> My Ajax form
2008 Feb 09
1
problem using evalJSON with Ajax
Hi, all I am trying to use evalJSON with Ajax, but somehow it doesn''t work. for instance, I have a php file has the following output: "name": "Violet", "occupation": "character" and I have a html file with the following javascript: new Ajax.Request(''/some_url'', { method:''get'', onSuccess:
2007 Sep 28
1
evalJSON problem
Hey there, I have a FCKeditor(a WYSIWYG online html editor) and i want to bring it to a page by Ajax and JSON by a php request-catcher. I have sth like this in my ajax request: new Ajax.Request(''myactions.php'', { method:''get'', parameters: {action:''bringeditor'', id:<?php echo $uid; ?>}, onSuccess: function(transport){
2007 Sep 21
1
Weird data from evalJSON
I am trying to have prototype perform a request and return to me a javascript object representing the json string returned by the request. I want to iterate over the contents to print each object in the json string. The value of transport.reponseText in onSuccess is what I would expect. But once I try to perform evalJSON() on this text it gives me a bunch of extra function()s when i try to
2008 Feb 10
3
Ajax.Request evalJSON document.write hangs
I''m not the best when it comes to javascript so this is probably a simple mistake. I''m using the following code to read an external json file and print out its values. The problem is when I try to write the value to the browser it causes the browser to load like it hasn''t finished the javascript code. Its writing the value to the screen so I think its hanging after that
2005 Dec 05
1
Scriptaculous conflict with TinyMCE
I''m using TinyMCE[1], a popular javascript WYSIWYG html editor. The editor fails to work when I load Scriptaculous before it -- well depending on the browser. I can make my application load the javascript in a different order, but just in case it''s an issue in scriptaculous I thought I''d report. I have a few pages up -- I''d like to find out if anyone else
2006 Mar 02
3
Left Joins with Rails?
Everyone, I have two tables (assuming their most logical types): apartments id address bedrooms bathrooms googlemaps_id googlemaps id url the models: class Apartment < ActiveRecord::Base has_one :googlemap end class Googlemap < ActiveRecord::Base belongs_to :listing end I would like to find_all by searching the attributes in apartment, and also return the google map
2007 Jun 04
2
Re: Ajax.Request question with JSON return
Do I need something like this: eval(''('' + this.header(''X-JSON'') + '')'') (taken from Cody Swann, http://ajaxian.com/archives/prototype-extension-dynamic-script-pattern-support ). I''m guessing my problem is simpler, and I''m leaving something small out related to the header though. Thanks for any help -Mark 1. evalJSON:
2006 Oct 18
1
New to Mocha
Hi all I am new to Mocha. I am trying to use it for my pet rails project. I seem to be getting loads of errors when I add mocha as a plugin. It seems to be conflicting with TinyMCE plugin http://johnwulff.com/ articles/2006/05/31/tinymce-with-ruby-on-rails I am getting the following errors ActionView::TemplateError: undefined method `using_tiny_mce?'' for
2007 May 01
3
How to get TinyMCE editor value( text content)
Hi everybody ! I included one tinymce editor in my rails application. But I cant get the textarea content from the tiny editor. I dont know how to include the submit button . And also I wrote a javascript for getting the textarea content when the user press the enter button. Its also not working. Why it is. tinyMCE.init({ mode : "textareas", }); <textarea name="msg"
2006 May 22
0
Accept header
Hello, I''d want set an Accept header different from the default one: ''text/javascript, text/html, application/xml, text/xml, */*''. Then I set in options: { ... requestHeaders: [''Accept'', ''text/xml;q=1,application/xml,text/javascript,text/html''], ... } In this way the internal requestHeaders array in Ajax.Request will have
2008 Jan 21
4
Can't change paramName with InPlaceCollectionEditor
Hi all, I use prototype v1.5 and script.aculo.us controls v1.7.0 I did this simple code : --------------------------------------------------------------------------------------------------- new Ajax.Request("myPageSel.asp", { method: "get", parameters: {r:$el.id}, onSuccess: function(xhr) { new Ajax.InPlaceCollectionEditor($el.id, ''myPageMaj.asp'', {
2012 Sep 16
2
flash plugin
How do I get a flash plugin to work with firefox? I thought that I installed it correctly, but I have yet to see any flash videos through firefox. I keep being told that I need an additional plugin. When I folow directions, I'm told I already have it? At least once, I was told I needed to upgrade. In case it helps, here is the output of yum provides '*flash*' | grep -e lash -e dobe
2006 Jan 23
1
autocomplete=off not working on Firefox
I noticed that the latest control.js disables auto complete: this.element.setAttribute(''autocomplete'',''off''); So I removed my inline "autocomplete=''off''" from my input fields. But Firefox still auto completes. Using the Firefox DOM Inspector I do see that it''s applied by Ajax.Autocompleter as expected. The Inspector
2009 Jul 15
1
Read PNG file and display with more than 256 colors RGDAL
Hello list I am trying to use a Googlemaps tile (png file, 640 X 640 px tile) as a background to a plot and have been using the rgdal library to read in the PNG file (modified from code in the RGoogleMaps package). This works OK. My problem is is that the SGDF2PCT function in rgdal seems to be limited to 256 colors and this is introducing (I think) some degradation to the image which appears on
2007 Apr 16
2
Discussion on wysiwyg-for-script-aculo-us-inplaceeditor-using-tinymce
Hi Valentine, I am currently trying out your inPlaceEditor and I am happy with so far as it helps with the CMS I am developing in Rails at the moment. However, when you click cancel and go into in-place editing right after again, the textfield does not switch into WYSIWYG mode anymore. That behaviour is correct, because you do not disconnect the editor instance form the DOM tree on cancel.
2011 Feb 24
1
Rails 3 testing help with TinyMCE gem and plugin
Hiya, I''ve taken over maintenance of the tiny_mce gem (https://github.com/kete/tiny_mce/) and am preparing a release that will have the latest TinyMCE and take advantage of some TinyMCE jQuery integration. I''m in the process of getting things working again with Rails 2.3.x (jQuery integration stuff broke things) and I could use hand with testing with Rails 3.x. I don''t