[Proto-Scripty] Re: what causes this? prototype/javascript/php ?!

2009-07-26 Thread geoffcox75
On Jul 26, 5:26 pm, "Alex McAuley" wrote: > because its being sent as an array.. php cannot directly read javascript > arrays and as such you have to json encode/decode it Thanks Alex - I have not so far used json - can you suggest a good site for help on this? Simple, sample code would be ver

[Proto-Scripty] Re: slider handle position not central for Opera?!

2009-04-04 Thread geoffcox75
> Is there a known problem and solution? I have just realised that this problem is not due to any error in the way I've coded my page as the same happens with this example http://www.aldenta.com/examples/script.aculo.us/slider-standard.html With Opera the handle is not in the centre for the lo

[Proto-Scripty] Re: text from php flashes by!?

2009-07-11 Thread geoffcox75
Alex, It's just that wheb flaglast is true the code new Ajax.Updater( 'updateDiv', 'fv-c1-arrays4-mysql-minus-wm.php', { asynchronous:true, method:'post', parameters: params } ); works fine and updates the mysql databas

[Proto-Scripty] Re: text from php flashes by!?

2009-07-11 Thread geoffcox75
gt; if(flaglast===true) { > do some other stuff > > } else { > > alert("Oops something went wrong"); > > } > > HTH > > Alex > > - Original Message - > From: "geoffcox75" > To: "Prototype & script.aculo.us" >

[Proto-Scripty] Re: text from php flashes by!?

2009-07-11 Thread geoffcox75
ers Geoff > is false and flaglast is true.  The alert holds back the second > update, and so you see the result of the first one.  Something along > those lines. > > FWIW, > -- > T.J. Crowder > tj / crowder software / com > Independent Software Engineer, consulting services

[Proto-Scripty] Re: text from php flashes by!?

2009-07-11 Thread geoffcox75
On Jul 11, 12:47 pm, geoffcox75 wrote: > On Jul 11, 12:36 pm, "T.J. Crowder" wrote: > > > Hi Geoff, > > > My guess is that it's caused by something outside of the code you've > > quoted.  For instance, what's _calling_ that code?  Given whe

[Proto-Scripty] Re: text from php flashes by!?

2009-07-11 Thread geoffcox75
Jul 11, 12:47 pm, geoffcox75 wrote: > On Jul 11, 12:36 pm, "T.J. Crowder" wrote: > > > Hi Geoff, > > > My guess is that it's caused by something outside of the code you've > > quoted.  For instance, what's _calling_ that code?  Given where th

[Proto-Scripty] Re: text from php flashes by!?

2009-07-11 Thread geoffcox75
sorry the error messages have gone - must have been a typo. Geoff On Jul 11, 1:34 pm, geoffcox75 wrote: > Hello, > > the second keeps the php message on the screen but I now get an > error message re prototype 1.6.0.3, > > in Firefox it is this.url.match is not a function

[Proto-Scripty] Re: text from php flashes by!?

2009-07-11 Thread geoffcox75
; In that case, change it to an Ajax.Request rather than an > Ajax.Updater. OK thanks Geoff > > -- T.J. > > On Jul 11, 1:14 pm, geoffcox75 wrote: > > > On Jul 11, 12:47 pm, geoffcox75 wrote: > > > > On Jul 11, 12:36 pm, "T.J. Crowder" wrote: > >

[Proto-Scripty] Re: getting REMOTE_USER from the headers?

2009-07-13 Thread geoffcox75
On Jul 13, 8:22 am, "Alex McAuley" wrote: > Use php to get $_SERVER['REMOTE_ADDR']; > > No need to complicate matters 'just curious to see how to do this... Cheers Geoff > > - Original Message - > From: "geoffcox" > To: "Prototype & script.aculo.us" > Sent: Monday, July 13, 2009 8

[Proto-Scripty] Re: getting REMOTE_USER from the headers?

2009-07-14 Thread geoffcox75
On Jul 13, 9:11 am, "Alex McAuley" wrote: > Its not possible in javascript afaik. > > The remote address must come from the server serving the page. OK ... Thanks Geoff > > HTH > > - Original Message - > From: "geoffcox75" > To: &quo

[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 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
> 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 wrote: &g

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

2009-07-16 Thread geoffcox75
ers 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.se