[Proto-Scripty] Re: adding variable to params / serialize etc?

2009-07-16 Thread geoffcox75
On Jul 16, 10:31 pm, Matt Foster wrote: > > I have tried the second approach which works fine. Is it possible to > > get the added variable at the top of the email? > > Top of the email? This is probably how your cgi script is rendering > the post variables, but you could rearrange the paramete

[Proto-Scripty] Re: adding variable to params / serialize etc?

2009-07-16 Thread geoffcox75
On Jul 16, 10:31 pm, Matt Foster wrote: > > I have tried the second approach which works fine. Is it possible to > > get the added variable at the top of the email? > > Top of the email? This is probably how your cgi script is rendering > the post variables, but you could rearrange the paramete

[Proto-Scripty] Re: Observing elements not working...

2009-07-16 Thread lun.ashis
Thx guys... Actually problem was with the duplicate parent element. I fix the problem and it's working now. Since RedBox clones the element. Anyway thx for your help, i came to know new things from u guys. Cheers On Jul 17, 3:46 am, Rick Waldron wrote: > are you adding the observer after the

[Proto-Scripty] Re: need help on drag and drop to fixed positioned element issue in webkit based browser

2009-07-16 Thread david
Hi Fares, I try in FF 3.5, and when you have scrolled the window, and you drop on the fixed droppable, nothing is done, you should drop on the non- droppable element to active drops. I think this is not what to exected either. btw, Normally, on Dropables. isAffected function, you'll have a call

[Proto-Scripty] Re: Use Sortable for reordering two-column design

2009-07-16 Thread david
Hi, you could try to strart with this code. http://www.w3.org/1999/xhtml";> document.observe("dom:loaded", function() { Sortable.create('maListe1',{containment: ['maListe1','maListe2']}); Sortable.create('maListe2',{containment: ['maListe1','

[Proto-Scripty] Re: Observing elements not working...

2009-07-16 Thread Rick Waldron
are you adding the observer after the dom is loaded? document.observe('dom:loaded', function () [ $('btn-link-cancel').observe('click',function(){ RedBox.close(); }); }); On Thu, Jul 16, 2009 at 7:30 AM, david wrote: > > Hi lun.ashis, > > One thing, because code seems to be good, is that w

[Proto-Scripty] Re: Objects that return zero length

2009-07-16 Thread Matt Foster
Guiness is one of my favorites, mix it together with Newcastle for a delicious blend, The Black Castle! On Jul 15, 6:24 pm, Ron Newman wrote: > Guinness or Stout? > > > > On Wed, Jul 15, 2009 at 4:58 PM, Matt Foster wrote: > > > Hmm, well you'd have to do a little extra filtering but no reaso

[Proto-Scripty] Re: adding variable to params / serialize etc?

2009-07-16 Thread Matt Foster
> I have tried the second approach which works fine. Is it possible to > get the added variable at the top of the email? Top of the email? This is probably how your cgi script is rendering the post variables, but you could rearrange the parameters by just doing... params = "code_given="+escape(c

[Proto-Scripty] Re: adding variable to params / serialize etc?

2009-07-16 Thread geoffcox75
On Jul 16, 7:51 pm, mr_justin wrote: > > I have also a javascript variable called code_given - can I add this > > to params? If yes, how?! > > params = $('name_form').serialize() + '&code_given=' + escape > (code_given) > // or > params = $('name_form').serialize(true) > params.code_given = code_

[Proto-Scripty] Re: adding variable to params / serialize etc?

2009-07-16 Thread geoffcox75
On Jul 16, 7:51 pm, mr_justin wrote: > > I have also a javascript variable called code_given - can I add this > > to params? If yes, how?! > > params = $('name_form').serialize() + '&code_given=' + escape > (code_given) > // or > params = $('name_form').serialize(true) > params.code_given = cod

[Proto-Scripty] Re: adding variable to params / serialize etc?

2009-07-16 Thread mr_justin
> I have also a javascript variable called code_given - can I add this > to params? If yes, how?! params = $('name_form').serialize() + '&code_given=' + escape (code_given) // or params = $('name_form').serialize(true) params.code_given = code_given --~--~-~--~~~---~--

[Proto-Scripty] Re: Slider doesn't work anymore?

2009-07-16 Thread Douglas
Or, you can load the js files after you html > body is loaded/parsed. It's a good practice (IMO). http://www.w3.org/1999/xhtml";> My testing page On Thu, Jul 16, 2009 at 1:54 PM, ColinFine wrote: > > > > On Jul 16, 1:22 am, "bambell...@hotmail.com"

[Proto-Scripty] Re: Objects that return zero length

2009-07-16 Thread ColinFine
On Jul 15, 11:24 pm, Ron Newman wrote: > Guinness or Stout? > Guinness is a stout, --~--~-~--~~~---~--~~ 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 prototyp

[Proto-Scripty] Re: Slider doesn't work anymore?

2009-07-16 Thread ColinFine
On Jul 16, 1:22 am, "bambell...@hotmail.com" wrote: > I've made a quick search on Google and realised it's because the > sliders are being created before the HTML elements are initialised (as > script.js loads in the header). > I used a setTimeout and it now works fine! Thanks anyways! A *much

[Proto-Scripty] Re: Ajax response encoding type changing depending on windows (UTF-8) vs unix (ISO-8859-1)

2009-07-16 Thread husky
unfortunately it didn't work. i set: AddDefaultCharset utf-8 to the Apache conf file (under the virtualhost section) and restarted Apache, but it is still returning ISO-8859-1 encoding when calling Ajax. any other ideas? -h On Jul 15, 2:25 pm, yuval dagan wrote: > hi > > I had a similar pro

[Proto-Scripty] adding variable to params / serialize etc?

2009-07-16 Thread geoffcox
Hello, I am using serialize to get the values from a form, using, function sendQuestionnaire() { params= $('name_form').serialize(true); new Ajax.Request('/../../cgi-bin/formmail-nms.cgi', I have also a javascript variable called code_given - can I add this to params? If yes, how?! Thanks Geo

[Proto-Scripty] Re: Is this proper use of bind?

2009-07-16 Thread Romek Szwarc
2009/7/16 ColinFine > > > I'm not quite sure what you are asking. > Inside a function 'this' always refers to the global object (the > window) unless you have taken steps to make it refer to something > else. A common way to make it refer to something else is by calling > the function as a method

[Proto-Scripty] Re: Is this proper use of bind?

2009-07-16 Thread ColinFine
On Jul 15, 9:41 am, keemor wrote: > Thanks for this tip, I didnt know that > > What about this fragment: >  xhrRequestFake: function(e){ >                //now "this" is a which I want to use to read id > from >                 itemManager.json = [{'key':'no'},{'key':'way!'}]; >              

[Proto-Scripty] Re: checked !status in line 1496? (prototype-1.6.1.RC3)

2009-07-16 Thread Alex McAuley
as it states... Return !status (NOT STATUS) || (OR) status greater than or equal to 200 (TRUE|FALSE) && status LESS THAN 300 as i said again it returns a true false - Original Message - From: "foolged" To: "Prototype & script.aculo.us" Sent: Thursday, July 16, 2009 10:42 AM Sub

[Proto-Scripty] Re: Observing elements not working...

2009-07-16 Thread david
Hi lun.ashis, One thing, because code seems to be good, is that webkit can't attach an event on an hidden element. But I don't know if it's still true for version 4. If it could help. -- david On 16 juil, 10:40, "lun.ashis" wrote: > Hi guys > > I am facing problem with Safari 3.0.4 that elemen

[Proto-Scripty] Re: readAttribute for event attributes (onclick etc) fails

2009-07-16 Thread david
Hi Ilya, don't be sorry, discovering bug, submit patch and test case take much time, and I AM SORRY to ask you to repost :)) Those double google groups is not an evidence. After posting on the prototype core group you should have to open a ticket in LightHouse, so perhaps go directly there. --

[Proto-Scripty] Re: checked !status in line 1496? (prototype-1.6.1.RC3)

2009-07-16 Thread foolged
Hi All You do not understand my question. I asked, not what is returned. I asked what is checked! status? IMHO rightly so. return (status> = 200 & & status <300); --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Prot

[Proto-Scripty] Observing elements not working...

2009-07-16 Thread lun.ashis
Hi guys I am facing problem with Safari 3.0.4 that element observed is useless, it does nothing. But it works for other browsers and also with the other upper version of safari. my code is $('btn-link-cancel').observe('click',function(){ RedBox.close(); }); --~--~-~--~~---