Hello shiny people!! :)
can somebody understand as to why this code doesn't work on IE and
Opera, while working fine in other browsers?
function commentUpdate(){
// finally prepare data and make a new AJAX call...
var updatedata = document.getElementById('updatedata').value;
var
try URIencoding it ..
Also if its post why are you sending it as key/value pairs . try the
following to see if its whats messing it up
var myAjax = new Ajax.Updater(target, url+'?'+pars, {method: 'post',
parameters: foo: 'BAR'}); // notice i am sending your key value pairs in the
URL
Thanks Colin, but, there is a space, if you check the source code
page, It didn't fit to well into the post.
As you can see, it works as a HTMLDOM style, almost the same code..
border: this.olc_divborder+'px' +this.olc_bordercol+ 'solid'
there is one space on each side.
The way I read it from
Yes, but...
If you pick one format for the first element in the hash, you have to
follow it through all the way. So if you use camelCase notation for
the first rule name, you can't use the quoted name for the second, and
vice-versa.
When in doubt, quote them all (names and values) and use
Hi,
I try find Xml representation of Prototype library.
Is something like this exist?
Best regards,
confi
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
Prototype script.aculo.us group.
To post to
Thank you both for your responses. It's nice to get help. I agree with
you on the alert being annoying, so I will put a error message out on
the screen instead of an alert, time permitting (I'm under the gun)
The defer did not work I got a javascript error saying this.focus is
not a function.
On Jun 2, 1:37 pm, IMBI-Indie-Portal imbil...@tpg.com.au wrote:
Thanks Colin, but, there is a space, if you check the source code
page, It didn't fit to well into the post.
As you can see, it works as a HTMLDOM style, almost the same code..
border: this.olc_divborder+'px'
@Alex
I encodeURIComponent them now, thanks for suggestion
notice that when you are sending the key values with the url, they get
caught as $_GET, no matter if you use {method: 'post'} (!)
@T.J.
all your assumptions are right ;)
anyway, if you add some alerts to see what's going on like this:
hello
THE PROBLEM
I have an WCF operation exposed using an endpoint configured to use
webHttpBinding. My problem is, while response code it seems to
suggest that operation was indeed completed successfully and returned
array of one
You have a syntax error
Internet explorer chokes on commas in JSON notation (i learnt the hard way
on this)
For example
var foo= {
method_1: funciton() {
alert('Method 1 Baa');
}, // this is wrong as it needs no trailing comma
}
var foo= {
method_1: funciton() {
Hi Alex,
Thanks for being so patient. I deleted the previous message because I
saw your link to the patch after I submitted it. Wow, this is just a
mistery to me, but I added the patch, added revert to the sortable
decleration, checked the return value which is true for what I am
checking and
Hello Alex,
no I didnt have a trailing comma after the closing bracket, because
there is no closing bracket there!
syntax:
Ajax.Updater(container, url[, options])
quoting my line of code:
var myAjax = new Ajax.Updater
(target,
url,
{ /* opening bracket for options...
Did you read the las paragraph of my reply ?...
Check if paramters expects an object or a variable, i think u will find it
expects an Object
parameters : {
foo: 'BAR'
}
- Original Message -
From: partypeopl...@gmail.com
To: Prototype script.aculo.us
i'll investigate in the morning for you
- Original Message -
From: terry-5- nathaliesteinf...@gmx.net
To: Prototype script.aculo.us prototype-scriptaculous@googlegroups.com
Sent: Tuesday, June 02, 2009 5:48 PM
Subject: [Proto-Scripty] Re: Revert sortable on return value true? Possible?
Thanks Alex.
--~--~-~--~~~---~--~~
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-scriptaculous@googlegroups.com
To unsubscribe from this group, send email
I have got a working example, but now I need to add something, and I
am not sure how to do it.
I have a function:
script type=text/javascript language=JavaScript
function getAdjForm() {
var params = Form.serialize($('createAdjForm'));
new Ajax.Updater(
adjForm,
Hello All,
I am having an issue with lightwindow in IE 8.0.
http://proofs.icongraphics.com/usbe/services.asp
If you go to this link in IE 8 and then click on the link in the body
that says MORE, you will see what is going on. It is supposed to
open up a window like any other lightwindow, light
The defer did not work I got a javascript error saying this.focus is
not a function. However, the setTimeout did work
Doh! My bad. Should be:
else {
var self = this;
(function(){
self.focus();
}).defer();
alert(invalid number);
return false;
}
-- T.J.
On Jun
ok, I tried your suggestion but this doesn't work at all
have you ever tried the syntax you are suggesting? Because I think
it's wrong...
Caught also in FF's error console as:
Error: missing } after property list
Source File:
ok, I tried your suggestion but this doesn't work at all
have you ever tried the syntax you are suggesting? Because I think
it's wrong...
Caught also in FF's error console as:
Error: missing } after property list
Source File:
Line: 52, Column: 94
Source Code:
var myAjax =
@alex:
You can pass a string, that's still supported.
@OP:
Again, try step #3 from here:
http://proto-scripty.wikidot.com/faq#xyzprob
...and then if it still doesn't work, post the complete code.
--
T.J. Crowder
tj / crowder software / com
Independent Software Engineer, consulting services
Hi,
Guys, you're talking past each other.
@Alex:
This is perfectly valid:
var x = one=1two=2three=3;
new Ajax.Updater(target, url, {parameters: x});
@OP:
This is perfectly valid (and preferred):
new Ajax.Updater(target, url, {
parameters: {
'one':1,
'two':2,
I noticed you're missing a comma...
var myAjax = new Ajax.Updater(target, url, {method: 'post',
parameters: { params: pars } onComplete:function(){
Between { params: pars } onComplete (should be right before onComplete)
That may be unrelated, but an observation worth noting.
On Tue, Jun
I'm a little confused about context and how to access things correctly
when my ajax request onSuccess function runs.
My code currently looks something like this:
var MyObject = Class.create({
initialize: function() {
this.items = [];
},
loadItemsFromUrl: function(url) {
new
Sure.
On Jun 2, 2009, at 9:46 AM, anthony wrote:
I have got a working example, but now I need to add something, and I
am not sure how to do it.
I have a function:
script type=text/javascript language=JavaScript
function getAdjForm() {
var params =
@T.J.
I didn't say it's not valid, but Alex was suggesting to omit the comma
before onComplete, which is not valid.
I tried step #3, but in a very smaller scale and it works. I can't add
all the code needed to replicate, this would take pages!
@Rick
That's what I was trying to say to Alex too
26 matches
Mail list logo