[Proto-Scripty] Problem with Ajax.Updater...

2009-06-02 Thread partypeopl...@gmail.com
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

[Proto-Scripty] Re: Problem with Ajax.Updater...

2009-06-02 Thread Alex McAuley
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

[Proto-Scripty] Re: OverLIB Clone - IE not appending to Style Tag - setStyle() sometimes not working

2009-06-02 Thread IMBI-Indie-Portal
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

[Proto-Scripty] Re: OverLIB Clone - IE not appending to Style Tag - setStyle() sometimes not working

2009-06-02 Thread Walter Lee Davis
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

[Proto-Scripty] Prototype Xml representation

2009-06-02 Thread confiteor
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

[Proto-Scripty] Re: Cant get focus to work with change event when tabbing out of input

2009-06-02 Thread molo
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.

[Proto-Scripty] Re: OverLIB Clone - IE not appending to Style Tag - setStyle() sometimes not working

2009-06-02 Thread ColinFine
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'

[Proto-Scripty] Re: Problem with Ajax.Updater...

2009-06-02 Thread partypeopl...@gmail.com
@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:

[Proto-Scripty] JSON-WCF calls - empty resultset clientside

2009-06-02 Thread devvvy
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

[Proto-Scripty] Re: Problem with Ajax.Updater...

2009-06-02 Thread Alex McAuley
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() {

[Proto-Scripty] Re: Revert sortable on return value true? Possible?

2009-06-02 Thread terry-5-
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

[Proto-Scripty] Re: Problem with Ajax.Updater...

2009-06-02 Thread partypeopl...@gmail.com
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...

[Proto-Scripty] Re: Problem with Ajax.Updater...

2009-06-02 Thread Alex McAuley
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

[Proto-Scripty] Re: Revert sortable on return value true? Possible?

2009-06-02 Thread Alex McAuley
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?

[Proto-Scripty] Re: Revert sortable on return value true? Possible?

2009-06-02 Thread terry-5-
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

[Proto-Scripty] Ajax.Updater related question

2009-06-02 Thread anthony
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,

[Proto-Scripty] IE 8 Prototype Issue

2009-06-02 Thread CMRstar430
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

[Proto-Scripty] Re: Cant get focus to work with change event when tabbing out of input

2009-06-02 Thread T.J. Crowder
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

[Proto-Scripty] Re: Problem with Ajax.Updater...

2009-06-02 Thread partypeopl...@gmail.com
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:

[Proto-Scripty] Re: Problem with Ajax.Updater...

2009-06-02 Thread partypeopl...@gmail.com
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 =

[Proto-Scripty] Re: Problem with Ajax.Updater...

2009-06-02 Thread T.J. Crowder
@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

[Proto-Scripty] Re: Problem with Ajax.Updater...

2009-06-02 Thread T.J. Crowder
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,

[Proto-Scripty] Re: Problem with Ajax.Updater...

2009-06-02 Thread Rick Waldron
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

[Proto-Scripty] How do I access 'this' from within Ajax.Request onSuccess?

2009-06-02 Thread Col
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

[Proto-Scripty] Re: Ajax.Updater related question

2009-06-02 Thread Walter Lee Davis
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 =

[Proto-Scripty] Re: Problem with Ajax.Updater...

2009-06-02 Thread partypeopl...@gmail.com
@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