quot;' + name + '" loaded');
>> if (name == 'dynamic')
>> {
>> coolness();
>> }}
>>
>> * * * *
>>
>> Complete code on Pastie:
>> HTML+static script:http://pastie.org/293753
>> dynamic.
[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
? 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
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
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
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
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
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
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
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
--~--~-~--~~---
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
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
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
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:
>
&
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
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
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
>&
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
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').
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
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
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
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
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
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
Code":"4","groupName":"Annuals","flowerSet":{"flowers":[{"flowerCode":"1","flowerName":"Ammi
Majus"},{"flowerCode":"4","flowerName":"Bupleurum"},{"flowerCode":&q
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
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
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
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
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,
>
>
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
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
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
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
> 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
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
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
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,
> >
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
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
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
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
--~--~---
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'
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
--~--~-~--~~~---~--~~
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
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
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
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
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
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
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
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
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
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
>
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 <
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
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
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
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
--~--~-~--~~~---~--~---
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
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
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
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
>
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
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
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
67 matches
Mail list logo