[Proto-Scripty] Re: Dynamic script file loading

2008-10-17 Thread jason maina
quot;' + name + '" loaded'); >> if (name == 'dynamic') >> { >> coolness(); >> }} >> >> * * * * >> >> Complete code on Pastie: >> HTML+static script:http://pastie.org/293753 >> dynamic.

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

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

2008-10-27 Thread jason maina
Hi all, Im having this page with tabs in another page but added through php. Thing is when I click on a tab and the page was like halfway it scrolls to the top I know it is connected to the hashes in the href bit but dont know how to tweak it to stop from this behaviour. Tried remedying with repla

[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

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

2008-10-30 Thread jason maina
ps: shouldn't it be called aFunction? :) > > 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 al

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

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

[Proto-Scripty] menu bar

2008-11-19 Thread jason maina
Hi guys/galz, Would like to make a menu like the one for facebook, any ideas?? Regards Jason --~--~-~--~~~---~--~~ 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] $('tableid').down('tbody').insert(tr, 'top') working but...

2008-11-19 Thread jason maina
Hi, As per the subject i'm building DOM elements on the fly and its working nice but when i try to insert a new row with controls to add new entry the row goes to the bottom of the table, could i be missing anything?? code: http://pastie.org/318817 Kind regards Jason --~--~-~--~~---

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

2008-11-19 Thread jason maina
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 : 'tr'}) > > Give that a whirl > > All the b

[Proto-Scripty] Re: menu bar

2008-11-19 Thread jason maina
for hand held browsers > > > > 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" ..... >> Th

[Proto-Scripty] Re: menu bar

2008-11-20 Thread jason maina
gards Jason On Thu, Nov 20, 2008 at 8:53 AM, Brian Williams <[EMAIL PROTECTED]>wrote: > I really recommend that you do some serious research on basic CSS... this > may sound cocky, but that's a CSS101 question. > > position:fixed > > > > On Thu, Nov 20, 2008 at 12:12

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

2008-11-20 Thread jason maina
meone please show me 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: > &

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

[Proto-Scripty] Re: Help needed

2008-11-20 Thread jason maina
on > you can't generate a new TR element 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 >&

[Proto-Scripty] Re: Help needed

2008-11-21 Thread jason maina
e :: http://projectpath/myfile.js:: flirtFert :: 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

[Proto-Scripty] Re: Help needed

2008-11-21 Thread jason maina
element is null tr -> row 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').

[Proto-Scripty] Re: Help needed

2008-11-21 Thread jason maina
sumption that your trId value doesn't correlate > to an ID 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

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

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

[Proto-Scripty] Re: Nested JSON problem

2008-12-17 Thread jason maina
f putting a square bracket right inside a curly... >> You can either a) remove the outer curlies and just make rsJson be an array, >> or b) add a property name which then becomes the array. >> >> a) >> {rsJson: [{}, {}, ...]} >> >> b) >> {rsJson: {m

[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"}]}, {"groupCode":"2","groupName

[Proto-Scripty] Re: Nested JSON problem

2008-12-18 Thread jason maina
Code":"4","groupName":"Annuals","flowerSet":{"flowers":[{"flowerCode":"1","flowerName":"Ammi Majus"},{"flowerCode":"4","flowerName":"Bupleurum"},{"flowerCode":&q

[Proto-Scripty] Re: Nested JSON problem

2008-12-18 Thread jason maina
To get to your data do something like 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

[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 wrote: > > 2008/12/18 jason maina : >> Hi George, >> >> Thanks for the input. >> Well, the data is converted to json by php from a nested array after >> extractin

[Proto-Scripty] Re: Effect.SlideDown - Works in IE, not in FF

2008-12-20 Thread jason maina
Hi elAdi, I hope this helps: if($('slidedown_share').style.display == 'none'){ ... instead of if(slidedown_share.style.display == 'none'){ Something else, document.getElementById('element_id') === $('element_id') regards Jason On 12/18/08, elAdi wrote: > > Hi, > > This should be fairly simpl

[Proto-Scripty] function not defined

2008-12-21 Thread jason maina
Hi, Got a page where other pages are loaded in divs depending on tab clicked. All has been well till I decided to try having every page house its set of functions. Im using ajax.Updater with evalScripts:true, when I click on say a button which should execute an in-house function I get an error sta

[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 wrote: > > Hi all, > >

[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 wrote: > > I found out from another thread in this g

[Proto-Scripty] New year wishes

2008-12-31 Thread jason maina
Hi, This is not your ordinary question, was wondering how do i move prototype & scripaculous into the new year. Intentions: Make 2009 as deadly as the apps we've been making if not better. Any ideas will be greatly appreciated. New year regards, Jason -- Sent from Gmail for mobile | mobile.goog

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

[Proto-Scripty] asynchronous file upload

2009-01-14 Thread jason maina
Hi all, Cutting to the chase, how do I do an asynchronous file upload, been googling all day with nothing really positive, may be been looking in all the wrong places. Assistance will be Kind regards Jason --~--~-~--~~~---~--~~ You received this message because y

[Proto-Scripty] Re: asynchronous file upload

2009-01-15 Thread jason maina
> i'll be happy 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" wrote: > > Hi all, > > > > Cutting to the chase, how do I do an asynchronous file

[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 wrote: > > 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 what framework/backen

[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 prototype-scriptaculous@google

[Proto-Scripty] Re: Livepipe

2008-09-12 Thread jason maina
Sorry I entered the wrong email address. On Fri, Sep 12, 2008 at 4:07 PM, Diodeus <[EMAIL PROTECTED]> wrote: > > Dunno. This group has nothing to do with Ruby. > > On Sep 12, 7:19 am, "jason maina" <[EMAIL PROTECTED]> wrote: > > HI all, > >

[Proto-Scripty] Update dropdown based on another dropdown

2008-09-19 Thread jason maina
Hi all, How do i update dropdown with dbase data based on another dropdown without having to reload page using Ajax? Server side: php Thanx in advance -- Sent from Gmail for mobile | mobile.google.com --~--~-~--~~~---~--~~ You received this message because you a

[Proto-Scripty] Re: Using Ajax.Request not call function OnSuccess

2008-09-19 Thread jason maina
yourpadre, I stand to be corrected here, but most prototype methods/functions start with lower case eg onCreate, onFailure etc Do refer to prototype documentation for actual method/function names. Regards jason On 9/19/08, yourpadre <[EMAIL PROTECTED]> wrote: > > Hi List > > I try this > 1.- Th

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

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

[Proto-Scripty] Javascript disabled & security

2008-09-21 Thread jason maina
Lets assume javascript has been disabled on my machine & try running a page which uses prototype to get server side pages, i assume it will fail, what are the security concerns at this point? -- Sent from Gmail for mobile | mobile.google.com --~--~-~--~~~---~--~~

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

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

2008-09-27 Thread jason maina
Though a newbie to prototype working with is not a problem once i understood the concept the methods of intrest at this point. One point to note, prototype examples available are mostly rubyonrails based jQuery on the other hand is php biased. Watched a friend of mine work with Yui & before he got

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

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

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

[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; new

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

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

[Proto-Scripty] Re: xml vs json

2008-09-30 Thread jason maina
One question I forgot was how. Please point me to documentation & if possible an example to manupilation of the object. Thanks in advance On 9/30/08, Eric <[EMAIL PROTECTED]> wrote: > > Jason, > > I agree with you that XML in prototype is kind of a pain since (among > others): > - getAttribute/se

[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, { > me

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

[Proto-Scripty] InPlaceEditor problem

2008-10-12 Thread jason maina
Hi, Im trying to use inplaceeditor on data in a table placed inside div with innerHTML. Currently interested in last cell. When I click on data it disappear when trace with firebug its showing the form but with faded colours & no error, form doesnt show on interface. What could be the problem? Tha

[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-14 Thread jason maina
gt; T.J. Crowder > tj / crowder software / com > > On Oct 14, 8:49 pm, "jason maina" <[EMAIL PROTECTED]> wrote: >> Hi, >> Have been searching for a datagrid 'control' for >> prototype+scriptaculous so far nothing positive. >> Any ideas in t

[Proto-Scripty] Re: Datagrid using json

2008-10-15 Thread jason maina
for handling highlights. > http://positionabsolute.net/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 &g

[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
js.com/deploy/dev/examples/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 >

[Proto-Scripty] Re: Dynamic script file loading

2008-10-16 Thread jason maina
script > > finishes? > > -Hector > > > > 2008/10/15 buda <[EMAIL PROTECTED]> > > > > > > > > > > > > > tere is a beautifull script ENSURE - try it > > > > > On 15 окт, 14:16, "jason maina" <[EMAIL PROTECT

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

[Proto-Scripty] Re: Datagrid using json

2008-10-16 Thread jason maina
with them, > but they look pretty mature. > > > On Oct 15, 12:56 pm, "jason maina" <[EMAIL PROTECTED]> wrote: > > @spectrus: > > Already have sampled ExtJS has a very cool UI but very heavy on a > > site/application, sole reason I'm still stuck w