similar to: evalScript usage for script with src attribute

Displaying 20 results from an estimated 2000 matches similar to: "evalScript usage for script with src attribute"

2006 Oct 04
0
onSuccess and onComplete Prototype callbacks
Hi everyone, The onSuccess callback gets fired when HTTP status code is 200, and onComplete gets fired AFTER onSuccess/onFailure when the browser has finished handling the request, i.e. when the DOM is ready, right? So my question is where to put code that MUST ONLY be executed if HTTP status code is 200 AND Ajax.Request was called with option ''evalScripts: true''. The code in
2007 Nov 07
2
Ajax.Request -post
Hello SpinDoctors, I am fairly new to prototype js framework. I love it. Have various Ajax -get calls... which work wonderful... Suddenly, realised that in one case I have to use ''post'' to overcome the limitation on URL length... Have changed the parameters to suit to ''post'' request, but nothing happens... need your help... function getOptionalGroups(key){
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 20
1
[Prototype] onSuccess Event and Ajax.Updater bug in IE
Hi all, Is there a known bug with Ajax.Updater not working in IE6? I''m having trouble with a Autocompleter control that calls a function that contains an Ajax.Updater as an AfterUpdateElement callback. It works fine in firefox, but I don''t think Ajax.Updater gets called under IE. http://pastebin.com/563889 1. function updater(input, item) { 2. var
2006 Feb 21
1
RE: [Prototype] onSuccess Event and, Ajax.Updater bug in IE
Joe, After removing all occurrences of charset=utf-8 from my headers I am still getting the same bug in IE. Currently, it''s Content-Type: text/html Any other suggestion? Nathan. > Message: 2 > Date: Mon, 20 Feb 2006 09:13:57 -0500 > From: "Joe Hudson" <joe-x8g0hQFNjJhWk0Htik3J/w@public.gmane.org> > Subject: RE: [Rails-spinoffs] [Prototype] onSuccess Event
2008 Jan 04
6
Ajax.Request: onFailure vs. onException
Hello All, I''m trying to capture the exception message that my server application is providing in response to my Ajax.Request. However, I''m confused as to when onFailure is fired vs. onException. The onException handler has access to the javascript exception object and I''d understood that it was only called when the dispatch fails. Not sure what exactly that means
2009 Jun 14
3
Basic AJAX Response (Mootools)
Hi, I''ve done AJAX calls to Rails'' Controllers before yet never required to generate a response back to the view. In this respect, I have tried to keep it moronically simple and just add a node to see that it works, yet the response doesn''t come through / isn''t interpreted as it should. Long story short, code : // Have to use Mootools to integrate a
2005 Oct 03
0
Prototype Ajax.Request (onLoading and onSuccess) question
Hi, I am working on a page that updates a calendar via Ajax.Request when the previous (''? <http://luther.edu/new/?cur_month=2005-09>'') or next (''? <http://luther.edu/new/?cur_month=2005-11>'') month links are clicked . http://luther.edu/new/ It seems to work fine if I don''t call anything onLoading. http://luther.edu/new/noonloading.php
2008 Feb 05
2
Catching Ajax Failures (not 500s)
I am trying to catch failed Ajax requests, but I''m talking about requests that receive no response from the server (server is down), not responses that result in a 500. The latter can be handled with the onException or onFailure callback, but I am not able to handle the former. To reproduce/test: 1) Start your server 2) Create a page that does this:
2007 Sep 27
4
transportXML returns null?
Hi, I want to load an XHTML file into DOM. I issue Ajax.Request and on success do: var response=transport.responseXML Response is null. On the other hand: var response=transport.responseText; // has the data. Why is response=transport.responseXML returns null? Here is the code: function display() { url = "http://" + location.hostname + port + "/fusion/
2006 Feb 15
0
Insertion.Top does not work in IE 6
Hi all, I have recently joined this mailing list and I''m not sure if this had already been answered. I have a function that gets called from the <body> onload event and fills the drop-down (<select> tag) with the data from the database. The function is as follows: function initForm(frm) { switch (frm) { case "style": Element.hide(''newcat'',
2008 Jun 17
4
Formating Date Field
First.jsp ------------------ <jsp:usebean id="db" class="db.dbClass" scope=session/> <html> <body> <form action="MyAction.jsp" method="post"> <% ResultSet rs=db.executeQuery("select no,name from mytable"); while(rs.next()) {%> <input type=checkbox value=<%=rs.getString(1)%> onclick=callJs(<
2008 Mar 25
2
responseXML not working on XML file
When creating an Ajax.Request(''/path.xml'') i don''t get responseXML. I''m confused what I am doing wrong. If i change the response variable and dump responseText, it shows the file, it just doesn''t recognize it as xml. function xml(url){ new Ajax.Request(url, { method: ''post'', parameters:''resultSet=simcall'',
2006 Mar 22
2
problem with Ajax.Updater evalscript and firefox
Hello there people, im having a problem with the Ajax.Updater evalscripts, i fill and div with a form that i get with the Ajax.Updater, that form had a javascript validation, i put evalScripts true but when i get the form i had an unexpected close in the firefox, i had a long time looking the answer but nothing yet, somebody with the same problem? or the answer? greets -- // // Ing. Francisco
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){
2006 May 25
1
prototype Ajax.Request
Hi, I''m using like this var pars = ''table=''+this.config[''table'']+''&op=update&id=''+id; new Ajax.Request( this.config[''url''], { method: ''get'', parameters: pars,
2007 Nov 13
0
Ajax.Updater evalScripts:true
Hello, i habe a problem to include <script> code in div container. function ajaxUriDivJava(url, z) { try{$(z).innerHTML="<centrer><img src=''http:// static.mymir.org/wait30trans.gif''></centrer>";}catch(e){} var pars = ''''; var myAjax = new Ajax.Updater( {success: z}, url, { method:
2008 May 21
6
this.initialize has no properties error in Prototype Code
Hi All, I''m a super newbie with Prototype and am trying to implement my first solution using it. This is my code: var span = ''totalViews'' + video_id; var params = ''video_id='' + video_id; Ajax.Response(''trackVideo.php'', { method: ''post'', parameters: params, onSuccess: function(transport) {
2005 Oct 19
1
js not executed after ajax.updater -- evalScript:true not a solution
Hi. I have a <div> on a page that I replace with a new one using Ajax.Updater. Inside this newly placed div, I am using classes and behavior.js to launch various Ajax things and scriptaculous effects. None of them, however, get triggered after the update. They also fire no javascript errors or anything of the kind. I''ve seen the option evalScripts with Ajax stuff-- but
2007 Feb 19
0
Ajax.Update nested within Ajax.Request
Hi everyone, I have a script below that submits a form using Ajax.Request which is working fine. onComplete or onSuccess though, I''d like it to refresh the div form (formCapture), but so far I can''t get it to work. The script runs to into the onComplete stage, but the div isn''t refreshed. Can anyone help with this? Regards, Robert Hofmeyr function subForm() { new