Displaying 20 results from an estimated 3000 matches similar to: "Very strange javascript error"
2008 Jan 19
1
Set Return Type XML in Prototype
Please help i can''t return xml data using prototype.
If i use data from direct xml file then it works fine but when i use
ajax request with header content xml it''s not working
My code just work on IE but in FF it does not working. My code sample
are given below
If any one already done this kinds of job Please help me as soon as
possible.
var xmlDoc;
function Claulate()
{
var
2009 Jul 24
6
Routes from raw js (using XMLHttpRequest)
I am making an ajax call from js to call a method (assocboxchange) in
my controller (AssociatesController), using XMLHttpRequest. I know
the XMLHttpRequest works fine because I use it in other places with
success. My problem is my URL I am using for this request doesn;t
access the method in my controller which I (think) I am specifying. I
am having it post to /channels/assocboxchange/" with
2008 Aug 25
1
prototype.js Ajax is slow
So I was doing some experimenting with prototype and ajax and discovered
something interesting. When I use the first ajax call the response from
the server take 53ms. When I use the second on using the prototype
functions the request from the server is over 200ms. My question is
why, and can it be fixed?
<p><a href="#" onclick="serverSideAlert();">Call
2005 Oct 18
3
Ajax.Request / XmlHttpRequest details
Does anyone know a good reference for the various statuses that
XmlHttpRequest''s readyState property can have? I mean, I know what
the states are, but I''m unclear on the circumstances under which each
occurs...
In a simple test I wrote, I''m seeing the loaded, interactive and
complete states (i.e. my Ajax.Request instance calls its onLoaded,
onInteractive and
2006 Apr 15
1
Begin with Autocompleter
Hi list:
I''m a young developer that need a little help with scriptaculous "Autocompleter". I work with PRADO framework (http://www.xisc.com) and PHP as a script language. Now this is a little function in JavaScript for make a AJAX call and show the results without reload the entire page. See below:
1 function makeRequest(url,element) {
2 var http_request = false;
3 if
2006 May 16
1
Ajax.Responders and onComplete
Hi all. I''m writing some kind of filter that i want passby my all AJAX request, and I stuck. I create object and pass him to Ajax Responders
like this:
var myGlobalHandlers = {
onCreate: function(){
Element.show(''loading'');
},
onComplete: function(request) {
alert(request.responseText);
}
};
2010 Sep 02
1
XmlHttpObject
Hello!
Is there a reason why applications using xmlhttprequest don't work?
Simple Delphi code.
Uses comobj;
procedure TForm1.Button1Click(Sender: TObject);
var xmlhttp: variant;
begin
xmlhttp:=createoleobject('MSXML2.XMLHTTP.3.0');
xmlhttp.open('GET', edit1.text, true);
xmlhttp.send();
while (xmlhttp.readystate<>4) do application.processmessages;
2006 Apr 12
11
innerHTML and scripts not running
Hello,
I''m having an issue with getting embedded javascript code to actually
run when loaded via an Ajax.Request() call and the callback function
inserts the generated HTML and js code to my current page. It seems
that the javascript code is not properly parsing.
For example, I''m using the following function showinfo() to return
some html code.
function showInfo(go_url){
2013 Jun 05
0
[PATCH] Change javascript feed fetch from GET to POST
This change should disable caching of the news feed
---
index.html | 2 +-
news.html | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/index.html b/index.html
index 41d81d8..b4efb6b 100644
--- a/index.html
+++ b/index.html
@@ -23,7 +23,7 @@
} else {
xhttp=new XMLHttpRequest();
}
- xhttp.open("GET",dname,false);
+
2006 Jan 10
2
Make link_to_remote call redirect current view, not read redirected content
Hello everyone !
I have a link_to_remote which creates a Party from a ContactRequest.
The action on the server creates the party, marks the contact request
as processed, and then returns a redirect. According to my knowledge
of HTTP, that is the correct thing to do.
Unfortunately, Prototype is being too clever for me at this time...
It follows the redirect, without notifying me. Anybody has
2008 Jun 26
7
Strange readyStates in prototype Ajax
Hi,
I''ve never posted here before so please forgive me if I''m not
observing proper decorum, yadda yadda yadda :-)
I''ve ran into a very, very strange bug with Prototype I wanted to
share and see if anyone else has seen this. In a few of my projects
involving Ext JS, I''m using the TreePanel control, which uses AJAX to
load child nodes asynchronously. Because I
2005 Dec 21
5
ajax - multiple updates on single xmlhttprequest
Hello,
I was wondering whether anybody would share a working example of a multiple
html update on a single xmlhttprequest.
Thank you in advance for your help.
_________________________________________________________________
On the road to retirement? Check out MSN Life Events for advice on how to
get there! http://lifeevents.msn.com/category.aspx?cid=Retirement
2006 Mar 17
2
Favicon.ico doesn''t show in IE 6
Hello All,
I put favicon.ico under "public" folder. Also, I put a copy into
"public/images". And I put these 2 lines in my layout file:
<link rel="icon" href="images/favicon.ico" type="image/ico" />
<link rel="shortcut icon" href="images/favicon.ico" type="image/ico"
/>
It works fine in
2005 Dec 17
0
No javascript fallback
AJAX is good for a lot of things, but javascript is not always
available.
I think the new RJS templates are very good:
http://www.codyfauser.com/articles/2005/11/20/rails-rjs-templates
And they could be used to create a simple, automatic no javascript
fallback. An example:
You have a controller called PostsController. There is an action "new".
The view displays a form. The form
2006 Jan 14
14
Javascript/AJAX Debugging
Hello !
I''m trying to implement something similar to the "multiple updates" section
of the Web2.0 chapter of the Agile book.
I implemented my version, and nothing is happening. No javascript errors,
my logs look fine, page is rendered fine... just no Effect.Highlight. Here
is the code:
views/causes/cause_home/index.rhtml
===============
<%= form_remote_tag(:complete =>
2006 May 26
0
Expanding javascript before sending it
Hi,
I had a simple javascript function directly in the rhtml with a rails
helper in it.
Before the page was sent to the client the rails help was of course expanded.
Moving it into a separated .js file, the rails code is, once again of
course, no more expanded.
function save(id) {
var el = document.getElementById(''s''+id);
el.src = "<%=
2006 Jan 28
0
calling javascript via "eval(request.resopnseText") help needed.
I have a link_to_remote method:
<%= link_to_remote image_tag("clock_run.gif", :border=>''0''),
:update => @task.id,
:complete=>"eval(request.responseText);",
:url => {:controller => ''time_entries'',
:action => ''punch_in'',
:id => @task} %>
The controller
2005 Mar 18
0
2 possible bugs in function validObject (PR#7735)
Hi,
> R.version.string
[1] "R version 2.0.1, 2004-11-15"
I have found two possible bugs in function validObject. Details below.
Cheers,
Scott
==================================
Scott D. Chasalow
Principal Statistician
Statistical Genetics and Biomarkers
Bristol-Myers Squibb Company
Email: scott.chasalow <AT> bms.com
==================================
------ BEGIN R
2006 Jun 18
2
using javascript to get an attribute using an ID
Hi everyone,
I''m trying to use ajax to update the selected value of a select element.
Here''s what I have so far:
function RailsModel(model_name)
{
this.model_name = model_name;
}
RailsModel.prototype.getAttributeById = function(attribute, id)
{
Ajax.Request(''/models/get_attribute_by_id/'' + this.model_name + ''/'' +
attribute +
2005 Dec 24
2
Ajax Help: Multiple Updates - ?
Hi!
Wondering if anyone can tell me what''s wrong with my code?
I''m trying to use the onChange event of a select list to update multiple
divs...
Agile Web Development with Rails (p. 403) suggests using ":complete =>
eval(request.responseText) instead of :update"
I''ve attempted the following test code:
# in the view
<select name="plist",