[Proto-Scripty] Re:Livepipe

2008-09-12 Thread jason maina
HI all, Wondering whether I have to have ruby to use livepipe??? --~--~-~--~~~---~--~~ 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

[Proto-Scripty] Re: Using Prototype/Scriptaculous in a popup window

2008-09-20 Thread jason maina
In the parent page/window you could have an invisible div then use ajax.request to update the div with desired data and seem to popup by setting visibility=true On 9/20/08, Bobby.D [EMAIL PROTECTED] wrote: Ok, I was just checking about the popup, I thought perhaps using the function to open

[Proto-Scripty] Form.serialize issue

2008-09-21 Thread jason maina
Hi all, Im trying to use form.serialize to harvest fields their values but it return null. pars=Form.serialize('formid') form has 1table with textboxes a select element. What could i be doing wrong? Thank you in advance jason -- Sent from Gmail for mobile | mobile.google.com

[Proto-Scripty] Re: Form.serialize issue

2008-09-21 Thread jason maina
Problem solved name attribute was missing in controls. Thanx all the same ;-) On 9/21/08, jason maina [EMAIL PROTECTED] wrote: Hi all, Im trying to use form.serialize to harvest fields their values but it return null. pars=Form.serialize('formid') form has 1table with textboxes a select

[Proto-Scripty] Re: Javascript disabled security

2008-09-21 Thread jason maina
In relation to cross browser hacking. On 9/22/08, Justin Perkins [EMAIL PROTECTED] wrote: On Sun, Sep 21, 2008 at 4:21 PM, jason maina [EMAIL PROTECTED] wrote: what are the security concerns at this point? What do you mean? How does disabling JavaScript impact the secureness of a webpage

[Proto-Scripty] xml vs json

2008-09-28 Thread jason maina
Hi all, I know this might not be the right forum to post this question but i need advice anyway. The application im developing has 2 things giving me a real headache, there is a default chemicals list without values which will be used for first time entry. User can either add to the list new

[Proto-Scripty] Re: Does Prototype have a future?

2008-09-29 Thread jason maina
I have no idea why we strive so hard looking for reasons why jQuery is better than Prototype whereas the truth is, when you came across the framework and it worked for you, you didn't bother looking for another as Prototype had already solved many of your problems. Popularity notwithstanding

[Proto-Scripty] Re: xml vs json

2008-09-29 Thread jason maina
Well have been doing some reading and what I gather is that parsing xml through prototype is dead slow and more over many other users of JS alone share tha same sentiment thus its better to use JSON formatted data over XML. Negating the core question another pops up. Is it possible to have data

[Proto-Scripty] Re: Update dropdown based on another dropdown

2008-09-29 Thread jason maina
This is the function I ended up using got it from a website but forgot which site it was still looking for it so I at least have it mentioned in the code as the original source. JS code: function getStuff(getCode){ $('codeData').options.length = 0; var getValue = $(getCode).value;

[Proto-Scripty] Re: Update dropdown based on another dropdown

2008-09-29 Thread jason maina
Sorry on the on missing out some detail: $('flowerData').options.add(opt); should be reading: $('codeData').options.add(opt); On Mon, Sep 29, 2008 at 7:17 PM, jason maina [EMAIL PROTECTED] wrote: This is the function I ended up using got it from a website but forgot which site

[Proto-Scripty] Re: JSON for Novice

2008-09-30 Thread jason maina
onSuccess:function(response). response in this case *receives* the XHR object after which you can query the various methods/functions in it that are returned from the Ajax.Request eg response.responseText, response.responseJSON etc By the way response is just a variable name Hope this helped

[Proto-Scripty] Re: Trying to return value from onSuccess

2008-10-02 Thread jason maina
declare the recieving variable outside the onSuccess function. I think that will work On 10/2/08, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Hello all, I seem to be going in circles with something I would have to assume would be simple. Im trying to return a value from the onSuccess

[Proto-Scripty] Re: using onSuccess(transport, json) and header(Content-type: application/x-json)

2008-10-06 Thread jason maina
Try this: //php $myArray=array('status'=1); $jsonData=json_encode($myArray); return $jsonData; Dont forget the header. //javascript/prototype jsonResponse=eval('('+response.responseText+')'); Access data as array: var myVal=jsonResponse[0].status; Hope that helps On 10/7/08, liketofindoutwhy

[Proto-Scripty] Re: using onSuccess(transport, json) and header(Content-type: application/x-json)

2008-10-06 Thread jason maina
Something I forgot json in your case will recieve the header while transport the XHR object. So will have to evaluate transport not json On 10/7/08, liketofindoutwhy [EMAIL PROTECTED] wrote: For some reason, no matter what I use new Ajax.Request(url, { method:

[Proto-Scripty] Re: Problem using tinyMCE in combination with protoype scriptacolous

2008-10-11 Thread jason maina
Cant understand what you mean or what you want to achieve. Expound more on problem or supply sample code then you might get some help. Have just synchronized it to prototype...to hell back before I got what I wanted On 10/8/08, es8ch [EMAIL PROTECTED] wrote: Hello, i get an error message in

[Proto-Scripty] Datagrid using json

2008-10-14 Thread jason maina
Hi, Have been searching for a datagrid 'control' for prototype+scriptaculous so far nothing positive. Any ideas in this direction rather how would one make such a UI? Thanks in advance, - Jason -- Sent from Gmail for mobile | mobile.google.com

[Proto-Scripty] Re: Datagrid using json

2008-10-15 Thread jason maina
/blog/2007/09/javascript-gridbase.php GridBuild is a concrete class that extends GridBase and allows for easy data injection either through XML or a json object/matrix. http://positionabsolute.net/blog/2007/09/javascript-gridbuild.php On Oct 14, 2:49 pm, jason maina [EMAIL PROTECTED] wrote

[Proto-Scripty] Dynamic script file loading

2008-10-15 Thread jason maina
Hi, Is it possible to load script files only when they are needed. In the application im currently making there are too many script(js) files loaded on the parent page yet in the entire life-cycle of the application usage some tabs will not even be clicked hence the idea to only load script files

[Proto-Scripty] Re: Datagrid using json

2008-10-15 Thread jason maina
/samples.html The framework itself is quite heavy, though. Regards, Max On Oct 15, 1:51 am, jason maina [EMAIL PROTECTED] wrote: @TJ: Been there and didnt see anything close to a datagrid unless the naming was 'flashy', will check again. @Matt will be checking the link will give a feedback

[Proto-Scripty] Re: Dynamic script file loading

2008-10-16 Thread jason maina
I mean an amateurish question, please dont get me wrong on it 2008/10/16 jason maina [EMAIL PROTECTED] @Crowder: This kind of amateurish, how will the script announce itself? Kind of don't understand the concept 2008/10/16 T.J. Crowder [EMAIL PROTECTED] When the script element

[Proto-Scripty] Re: Dynamic script file loading

2008-10-17 Thread jason maina
if there are subtlties and wrinkles that aren't dreamt of in my philosophy -- or at least not handled in this code. :-) -- T.J. Crowder tj / crowder software / com On Oct 16, 10:54 am, jason maina [EMAIL PROTECTED] wrote: @Crowder: This kind of amateurish, how will the script announce itself? Kind

[Proto-Scripty] Help needed

2008-10-20 Thread jason maina
[code] function monitorMgr(){ var myLi=$$('ul.flMgr li'); myLi.each(function(liItem){ Event.observe(liItem, 'click', anFunction, false); }); } function anFunction(evt){ alert($(evt).id); } [/code] response: undefined expected result: the clicked li's id considerations: 2 ul elements sharing id

[Proto-Scripty] Re: Help needed

2008-10-21 Thread jason maina
, right? You mean they're sharing the same class or some such? You can't have two elements on a page with the same ID; IDs are required to be unique across the DOM. FWIW, -- T.J. Crowder tj / crowder software / com On Oct 20, 12:40 pm, jason maina [EMAIL PROTECTED] wrote: [code

[Proto-Scripty] Re: Stopping page from moving back to top

2008-10-27 Thread jason maina
That one is not working also producing error... On Mon, Oct 27, 2008 at 7:42 PM, Brian Williams [EMAIL PROTECTED]wrote: try javascript:void(); in place of javascript:return false; On Mon, Oct 27, 2008 at 12:22 PM, jason maina [EMAIL PROTECTED]wrote: Hi all, Im having this page

[Proto-Scripty] Re: Stopping page from moving back to top

2008-10-30 Thread jason maina
? :) Cheers, Gabriel Gilini www.usosim.com.br [EMAIL PROTECTED] [EMAIL PROTECTED] On Mon, Oct 27, 2008 at 2:47 PM, jason maina [EMAIL PROTECTED]wrote: That one is not working also producing error... On Mon, Oct 27, 2008 at 7:42 PM, Brian Williams [EMAIL PROTECTED]wrote: try

[Proto-Scripty] Re:Select Object

2008-11-10 Thread jason maina
Hi all, Straight to the point: Im currently using DOM to create a select object I dont like the way because when i look at the code i can already see issues with maintenance despite the heavy commenting (im too used to prototype short-cuts :-)) so im wondering how do i do the same using

[Proto-Scripty] Re: Select Object

2008-11-11 Thread jason maina
Eureka!! Finally I did it using Element methods. [?] was fun going through the process On Mon, Nov 10, 2008 at 7:27 PM, jason maina [EMAIL PROTECTED] wrote: Hi all, Straight to the point: Im currently using DOM to create a select object I dont like the way because when i look at the code i

[Proto-Scripty] Re: menu bar

2008-11-19 Thread jason maina
On Wed, Nov 19, 2008 at 10:24 AM, K.C.Leung [EMAIL PROTECTED] wrote: I think all the menu should be base on ul -- li -- ul -- li, li . Then you can design your style by yourself to make it look like menu On Nov 19, 10:50 pm, jason maina [EMAIL PROTECTED] wrote: Hi guys/galz

[Proto-Scripty] Re: $('tableid').down('tbody').insert(tr, 'top') working but...

2008-11-20 Thread jason maina
the way Regards Jason On Wed, Nov 19, 2008 at 7:37 PM, jason maina [EMAIL PROTECTED] wrote: Thanx it works like a charm bet thats what i was missing thanx again On Wed, Nov 19, 2008 at 7:33 PM, George [EMAIL PROTECTED]wrote: For what it's worth, I thought the syntax was insert({top

[Proto-Scripty] Re: So Beyond Novice, I Know

2008-11-20 Thread jason maina
Hi Bobby, I need dsJobs.loadData() to execute upon completion If you are using Ajax.Updater; var req = new Ajax.Updater('controlID', 'page/on/server', {method:'post/get', postBody:'post Data Here', evalScripts:true}); im not so sure how it goes with Ajax.Request Hope that helps somehow

[Proto-Scripty] Re: Help needed

2008-11-20 Thread jason maina
Hi, Is it possible to replace a whole row with new data/controls without interfereing with the other part of the table. I have different sections in the table in question so i just want to change an indexed row. Trying to get the same effect as inplace editor but affecting a whole row instead of

[Proto-Scripty] Re: Help needed

2008-11-20 Thread jason maina
and replaceChild on the tbody object... On Nov 20, 11:46 am, jason maina [EMAIL PROTECTED] wrote: Hi, Is it possible to replace a whole row with new data/controls without interfereing with the other part of the table. I have different sections in the table in question so i just want

[Proto-Scripty] Re: Help needed

2008-11-21 Thread jason maina
:: on line 1108 data: no] flirtFert code: http://pastie.org/320439 What could I be missing? Regards Jason On Fri, Nov 21, 2008 at 1:33 AM, kangax [EMAIL PROTECTED] wrote: On Nov 20, 2:37 pm, jason maina [EMAIL PROTECTED] wrote: $('tableID').down('tbody').replaceChild(rowID, newTr); Not working

[Proto-Scripty] Re: Help needed

2008-11-21 Thread jason maina
with controls trID - row to be editied Any way out? Jason On Fri, Nov 21, 2008 at 7:40 PM, kangax [EMAIL PROTECTED] wrote: On Nov 21, 4:28 am, jason maina [EMAIL PROTECTED] wrote: [code] $('tableID').down('tbody').replaceChild(trID, tr) error: uncaught exception:[Exception... Could

[Proto-Scripty] Re: Help needed

2008-11-21 Thread jason maina
of any element in the document. On Nov 21, 12:06 pm, jason maina [EMAIL PROTECTED] wrote: Thanks kangax, Element#insert is not appropriate because im not adding to the table im replacing a whole row which is indexed with controls to facilitate editing of the data that was in that position

[Proto-Scripty] Re: .getHeight() is not a function

2008-11-27 Thread jason maina
My 2cents contribution: What is output for alert(prev)? This will only help in identifing if the element actually can be identified or even exists... Regards jason On 11/27/08, Diodeus [EMAIL PROTECTED] wrote: Nope, that doesn't work either. On Nov 27, 11:40 am, Ken Snyder [EMAIL

[Proto-Scripty] Re: Help needed

2008-11-28 Thread jason maina
Finally it works after creating another function to update div but with a delay that was the result now its ok On Fri, Nov 28, 2008 at 1:49 PM, jason maina [EMAIL PROTECTED] wrote: Hi guys/gals, I have made a select control used by 3 different pages but create from the master page

[Proto-Scripty] Help needed

2008-11-28 Thread jason maina
Hi guys/gals, I have made a select control used by 3 different pages but create from the master page by calling the relevant function then update a div with the control. On FF it works pretty fine without any issues. On IE it only shows on the first page that calls the control then on subsequent

[Proto-Scripty] Re: Nested JSON problem

2008-12-17 Thread jason maina
a property name which then becomes the array. a) {rsJson: [{}, {}, ...]} b) {rsJson: {myArray: [...]}} On Wed, Dec 17, 2008 at 9:53 AM, jason maina jason.ma...@gmail.comwrote: Hi all, Below is JSON encoded(php) data. After evaluating and sanitizing it im not capable of extracting its

[Proto-Scripty] Nested JSON problem

2008-12-17 Thread jason maina
Hi all, Below is JSON encoded(php) data. After evaluating and sanitizing it im not capable of extracting its contents im just not sure what im doing wrong: [php output] rsJson:{[{groupCode:1,groupName:Roses,flowers:[{flowerCode:15,flowerName:Roses}]},

[Proto-Scripty] Re: Nested JSON problem

2008-12-18 Thread jason maina
this: myDataSetVar[0].rsJson[0].groupCode (would give you 1) myDataSetVar[0].rsJson[1].flowerSet[0].flowers[1].flowerName (would give you Standard Carnations) Really hope that helps and I haven't confused things further. All the best George On Dec 18, 9:04 am, jason maina jason.ma

[Proto-Scripty] Re: Nested JSON problem

2008-12-18 Thread jason maina
Is it to mean that it cant support a large 'recordset' ? On 12/18/08, Richard Quadling rquadl...@googlemail.com wrote: 2008/12/18 jason maina jason.ma...@gmail.com: Hi George, Thanks for the input. Well, the data is converted to json by php from a nested array after extracting the data

[Proto-Scripty] Re: binding defined events to new elements

2008-12-22 Thread jason maina
Hi Davide, I would probably observe ul as the event will bubble up the dom the you can get id of child node that triggered the event. One point to consider is to have the ul li's having ids just to make it easier extracting the actual element infocus. On 12/18/08, Davide daw...@gmail.com wrote:

[Proto-Scripty] Re: DOM building with Prototype library

2008-12-23 Thread jason maina
Hi Ashwin, In IE for a checkbox to be checked its value is checked not true. With respect to this i'd suggest you do a browser sniff make IE have a different value from all the others. Happy holidays ;-) Regards Jason On 12/24/08, Ashwin ashwink...@gmail.com wrote: I found out from another

[Proto-Scripty] IE6 select element issue

2009-01-10 Thread jason maina
Hi all, Funny behavior here. The code here http://pastie.org/357242 behaves very different on firefox and IE6 obvious due to non-standardization of IE. What im trying to do is have the select element created on start-up of the application then insert it in the page its needed as the element is

[Proto-Scripty] Re: asynchronous file upload

2009-01-15 Thread jason maina
to share (i'll have to work on more detailed docs though). Maybe it'll be useful, maybe not. -joe t. On Jan 14, 10:58 am, jason maina jason.ma...@gmail.com wrote: Hi all, Cutting to the chase, how do I do an asynchronous file upload, been googling all day with nothing really positive, may

[Proto-Scripty] Re: asynchronous file upload

2009-01-16 Thread jason maina
Im using php/mysql on the back-end On Fri, Jan 16, 2009 at 2:01 PM, Peter De Berdt peter.de.be...@pandora.bewrote: On 16 Jan 2009, at 11:39, Stucture_Ulf wrote: Does anyone have good examples or links to how to work with a progress bar if you select an iframe solution? You didn't say