[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 
Prototype  script.aculo.us group.
To post to this group, send email to prototype-scriptaculous@googlegroups.com
To unsubscribe from this group, send email to 
prototype-scriptaculous+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/prototype-scriptaculous?hl=en
-~--~~~~--~~--~--~---



[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.

--
david



On 15 juil, 22:32, Ilya Furman smashl...@gmail.com wrote:
 Oh, I'm sorry, will repost there, thanks.
--~--~-~--~~~---~--~~
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 to 
prototype-scriptaculous+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/prototype-scriptaculous?hl=en
-~--~~~~--~~--~--~---



[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 ashis@gmail.com wrote:
 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(); });
--~--~-~--~~~---~--~~
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 to 
prototype-scriptaculous+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/prototype-scriptaculous?hl=en
-~--~~~~--~~--~--~---



[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 fool...@gmail.com
To: Prototype  script.aculo.us prototype-scriptaculous@googlegroups.com
Sent: Thursday, July 16, 2009 10:42 AM
Subject: [Proto-Scripty] Re: checked !status in line 1496? 
(prototype-1.6.1.RC3)



 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 
Prototype  script.aculo.us group.
To post to this group, send email to prototype-scriptaculous@googlegroups.com
To unsubscribe from this group, send email to 
prototype-scriptaculous+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/prototype-scriptaculous?hl=en
-~--~~~~--~~--~--~---



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

2009-07-16 Thread ColinFine



On Jul 15, 9:41 am, keemor kee...@gmail.com wrote:
 Thanks for this tip, I didnt know that

 What about this fragment:
  xhrRequestFake: function(e){
                //now this is a li which I want to use to read id
 from
                 itemManager.json = [{'key':'no'},{'key':'way!'}];
                 itemManager.createHTML();

 }

 Is it a good practice to call method like this itemManager.createHTML
 (); instead of  this.createHTML(); if I want to preserve 'this' as a
 context of element from the event?


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 (your 'itemManager.createHTML()'). Prototype
provides another way in Function.bind.

So if you use ItemManager.createHTML(), inside 'createHTML', 'this'
will refer to ItemManager.  But as far as I can see, you are not using
'this' inside 'createHTML' anyway, so the question is irrelevant.

--~--~-~--~~~---~--~~
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 to 
prototype-scriptaculous+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/prototype-scriptaculous?hl=en
-~--~~~~--~~--~--~---



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

2009-07-16 Thread Romek Szwarc
2009/7/16 ColinFine colin.f...@pace.com



 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 (your 'itemManager.createHTML()'). Prototype
 provides another way in Function.bind.

 So if you use ItemManager.createHTML(), inside 'createHTML', 'this'
 will refer to ItemManager.  But as far as I can see, you are not using
 'this' inside 'createHTML' anyway, so the question is irrelevant.


Let's look at the method checkAll in Contact object:

var Contact = {
initialize: function(json,id_contact){

$('check-all').observe('click',this.checkAll.bindAsEventListener(this));
},
checkAll: function(e) {
e.stop();
this.contactChecked = [];

$$('#contacts-ul .contact-checkbox').each(function(c){
c.checked = true;
Contact.contactChecked.push(parseInt(c.value));



Here 'this' is a window object so I could use bind(this) and then use
this.contactChecked,
but I can skip bind and use Contact.contactChecked which I often do.

I would like to know how you deal with such situation, because I would use
bind as rarely as possible, that's all.


 });
}


-- 
keemor

--~--~-~--~~~---~--~~
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 to 
prototype-scriptaculous+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/prototype-scriptaculous?hl=en
-~--~~~~--~~--~--~---



[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

Geoff

--~--~-~--~~~---~--~~
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 to 
prototype-scriptaculous+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/prototype-scriptaculous?hl=en
-~--~~~~--~~--~--~---



[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 dag...@gmail.com wrote:
 hi

 I had a similar problem when I moved to apache2 on ubuntu from win 2000
 server.
  try to add the line

 AddDefaultCharset Off

 to the site virtual directory
 thats because in the new linux apache2 versions, the conf file is seperate
 to many files and in one of them which its name is 'cahrset' if I remember
 correct it sets a default charset for all sites in that apache2 server.

 hope it helped

 Yuval

 On Wed, Jul 15, 2009 at 8:09 PM, husky victor.at.rog...@gmail.com wrote:

  I am using WebLogic in my java web app and in my code, I'm already
  setting the following:

  response.setContentType(text/html; charset=UTF-8);

  Also, I noticed that the correct UTF-8 is being returned (in the
  response headers) when I am requesting all the other JSP pages because
  I added the following to the top of every JSP:

  %@ page language=java contentType=text/html; charset=UTF-8
  pageEncoding=UTF-8%

  This problem of getting the wrong encoding type (ISO-8559-1) only
  seems to happen for the Ajax.request() call, and only when on a unix
  server.

  Any ideas?

  On Jul 15, 12:23 pm, Douglas douglas.gont...@gmail.com wrote:
   Prototype has _nothing_ to do with the response code.
   Your backend is sending the wrong encoding. Problably, you have not
   set the correct send headers.

   Are you using a PHP backend? If yes, maybe your local php.ini have
   default_charset set to utf-8 and the unix one has not, by default, php
   uses iso-8859-1.

   Try adding this line to you response:
   header('content-type:text/plain; charset=utf-8'); // of course, the
   content-type you are expecting
   or use [1]utf8_encode(CONTENT) before send the response.

   [1]http://www.php.net/utf8-encode

   ~ Cheers

    On Wed, Jul 15, 2009 at 1:00 PM, huskyvictor.at.rog...@gmail.com
  wrote:

hihi all,

i am using Ajax.request() function to call and return results on a web
page and i noticed that depending on where the server is deployed, the
encoding of the response changes.

if i am running the code locally on my windows machine, the Ajax
response encoding is UTF-8.  but when deployed to a unix server, the
Ajax response encoding is ISO-8859-1.

the side-effect is that the response contains unreadable characters
because it's in the wrong encoding (should be UTF-8, but it's
ISO-8859-1)

does anyone know why this happens and how to fix this?

thanks in advance!
-h

   --
   Believe nothing, no matter where you read it, or who said it, no
   matter if I have said it, unless it agrees with your own reason and
   your own common sense.
--~--~-~--~~~---~--~~
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 to 
prototype-scriptaculous+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/prototype-scriptaculous?hl=en
-~--~~~~--~~--~--~---



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

2009-07-16 Thread ColinFine



On Jul 16, 1:22 am, bambell...@hotmail.com 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* better approach is to use an event, and Prototype provides
one specially for you:

document.observe('dom:loaded', function () {
  // Any code that depends on the DOM being completely loaded
})
--~--~-~--~~~---~--~~
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 to 
prototype-scriptaculous+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/prototype-scriptaculous?hl=en
-~--~~~~--~~--~--~---



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

2009-07-16 Thread ColinFine



On Jul 15, 11:24 pm, Ron Newman ron.new...@gmail.com 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 prototype-scriptaculous@googlegroups.com
To unsubscribe from this group, send email to 
prototype-scriptaculous+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/prototype-scriptaculous?hl=en
-~--~~~~--~~--~--~---



[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).


html xml:lang=en lang=en xmlns=http://www.w3.org/1999/xhtml;
  head
titleMy testing page/title
  /head
  body
div
  !-- all stuff goes here. --
/div

script src=prototype.js type=text/javascript/script
script type=text/javascript src=script.js/script
  /body
/html


On Thu, Jul 16, 2009 at 1:54 PM, ColinFinecolin.f...@pace.com wrote:



 On Jul 16, 1:22 am, bambell...@hotmail.com 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* better approach is to use an event, and Prototype provides
 one specially for you:

 document.observe('dom:loaded', function () {
  // Any code that depends on the DOM being completely loaded
 })
 




-- 
Believe nothing, no matter where you read it, or who said it, no
matter if I have said it, unless it agrees with your own reason and
your own common sense.

--~--~-~--~~~---~--~~
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 to 
prototype-scriptaculous+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/prototype-scriptaculous?hl=en
-~--~~~~--~~--~--~---



[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
--~--~-~--~~~---~--~~
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 to 
prototype-scriptaculous+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/prototype-scriptaculous?hl=en
-~--~~~~--~~--~--~---



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

2009-07-16 Thread geoffcox75



On Jul 16, 7:51 pm, mr_justin gro...@jperkins.otherinbox.com 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_given

many thanks! off to try this.

Cheers

Geoff
--~--~-~--~~~---~--~~
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 to 
prototype-scriptaculous+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/prototype-scriptaculous?hl=en
-~--~~~~--~~--~--~---



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

2009-07-16 Thread geoffcox75

On Jul 16, 7:51 pm, mr_justin gro...@jperkins.otherinbox.com 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_given

I have tried the second approach which works fine. Is it possible to
get the added variable at the top of the email?

I have

params= $('name_form_fv_questionnaire').serialize(true);
params.code_given = code_given;

and cannot swop to have

params.code_given = code_given;
params= $('name_form_fv_questionnaire').serialize(true);

as the params is not defined - can I change to this somehow?

Cheers

Geoff
--~--~-~--~~~---~--~~
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 to 
prototype-scriptaculous+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/prototype-scriptaculous?hl=en
-~--~~~~--~~--~--~---



[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 david.brill...@gmail.com wrote:


 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 ashis@gmail.com wrote:
  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(); });
 


--~--~-~--~~~---~--~~
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 to 
prototype-scriptaculous+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/prototype-scriptaculous?hl=en
-~--~~~~--~~--~--~---



[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
to Position.within, that try to check if pointer position is withing
dropable element.
This is a deprecated prototype function (because one day it should
move to scriptaculous ?).
This function check if Position.includeScrollOffsets is set and
include the scroll amout in position calculation. So normally you'll
just have to set this property to true to have a good calculation of
Position.within. But it did not seems to work.
Strange :((

but I think you could start looking by this part of code.
--
david


On 14 juil, 04:11, Fares Farhan fares.far...@gmail.com wrote:
 I've search round and round, from original protoculous trac to github
 wiki, but seems to be no one has came up with solution for this issue.

 I created a draggables and dropable which is a relatively positioned
 div wrapped inside fixed positioned div. The code is working fine
 in Firefox, but behave strangely in webkit, when the page is scrolled
 down, the droppable is no longer recognize the draggable. Apparently
 the topOffset of the draggable is not calculated, but since I'm a
 newbie with this protoculous, I've no idea where should the patch
 applied.

 ps : I also don;t know how should I attach the file, so I just paste
 it below.. sorry for them mess caused..

 !DOCTYPE html PUBLIC -//W3C//DTD XHTML 1.0 Transitional//EN 
 http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd;

 html xmlns=http://www.w3.org/1999/xhtml;
 head
     title/title
     script type=text/javascript src=js/prototype.js/script
     script type=text/javascript src=js/scriptaculous.js/script
     script type=text/javascript
         document.observe(dom:loaded, function() {
             new Draggable('draggable1', {revert:true});
             new Draggable('draggable2', {revert:true});
             Droppables.add('fixedDroppable', {accept: 'draggable',
 hoverclass:'onReadyDrop', onDrop: function() { alert(dropped); } });
         });
     /script

     style type=text/css

     .onReadyDrop{
       background-color:green;
     }

     #droppableWrapper
     {
         position:fixed;
         bottom:0px;
         right:0px;
         width:100px;
         height:100px;
         background-color:Gray;
     }
     #fixedDroppable
     {
         margin:5px;
         width:90px;
         height:90px;
         background-color:gainsboro;
     }

     #absoluteDroppable
     {
         position:absolute;
         bottom:0px;
         right:0px;
         width:100px;
         height:100px;
         background-color:Green;
     }

     .draggable
     {
         width:100px;
         height:100px;
         background-color:Aqua;
     }
     /style
 /head
 body
 div id=absoluteDroppablebNOT/b a Droppable/div
 div id=droppableWrapperdiv id=fixedDroppableDroppable/div/
 div
 1br /
 2br /
 3br /
 4br /
 5br /
 1br /
 2br /
 3br /
 4br /
 5br /
 div id=draggable1 class=draggable/div
 1br /
 2br /
 3br /
 4br /
 5br /
 1br /
 2br /
 3br /
 4br /
 5br /
 1br /
 2br /
 3br /
 4br /
 5br /
 1br /
 2br /
 3br /
 4br /
 5br /
 1br /
 2br /
 3br /
 4br /
 5br /
 1br /
 2br /
 3br /
 4br /
 5br /
 1br /
 2br /
 3br /
 4br /
 5br /
 1br /
 2br /
 3br /
 4br /
 5br /
 1br /
 2br /
 3br /
 4br /
 5br /
 1br /
 2br /
 3br /
 4br /
 5br /
 div id=draggable2 class=draggable/div
 /body
 /html
--~--~-~--~~~---~--~~
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 to 
prototype-scriptaculous+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/prototype-scriptaculous?hl=en
-~--~~~~--~~--~--~---



[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 waldron.r...@gmail.com wrote:
 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 david.brill...@gmail.com wrote:

  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 ashis@gmail.com wrote:
   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(); });
--~--~-~--~~~---~--~~
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 to 
prototype-scriptaculous+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/prototype-scriptaculous?hl=en
-~--~~~~--~~--~--~---



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

2009-07-16 Thread geoffcox75



On Jul 16, 10:31 pm, Matt Foster mattfoste...@gmail.com 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 parameters by just
 doing...

 params = code_given=+escape(code_given) + $('form').serialize(true);

this actually gives the code_given value in the email followed by
object object but does not give the values from the form?!

Cheers

Geoff


  params.code_given = code_given;
  params= $('name_form_fv_questionnaire').serialize(true);

 This doesn't work because you're assigning a property of the params
 object, then re-assigning the variable all together to the result of
 Form.serialize which is a string.

 --

 http://positionabsolute.net

 On Jul 16, 3:30 pm, geoffcox75 g...@freeuk.com wrote:

  On Jul 16, 7:51 pm, mr_justin gro...@jperkins.otherinbox.com 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_given

  I have tried the second approach which works fine. Is it possible to
  get the added variable at the top of the email?

  I have

  params= $('name_form_fv_questionnaire').serialize(true);
  params.code_given = code_given;

  and cannot swop to have

  params.code_given = code_given;
  params= $('name_form_fv_questionnaire').serialize(true);

  as the params is not defined - can I change to this somehow?

  Cheers

  Geoff
--~--~-~--~~~---~--~~
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 to 
prototype-scriptaculous+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/prototype-scriptaculous?hl=en
-~--~~~~--~~--~--~---