[Proto-Scripty] PrototypeJs equivalent

2010-06-08 Thread Craig Gardner
I'm coming from a jQuery background, so bear with me. Is there a chart that will show me any methods that are similar in jQuery? More specifically, I'm looking for a similar method to the jQuery's .prepend() Thanks, Craig Gardner -- You received this message because you are su

[Proto-Scripty] Re: Working outside loop, but not inside

2009-06-04 Thread craig
I've implemented what Rick (Thank You!) suggested, and it seems to have solved the recognition problem. The only minor problem I'm still having is that instead of a sliding effect, the div just abruptly appears without sliding. It's as if it knows the div needs to be displayed onclick, but not t

[Proto-Scripty] Re: Working outside loop, but not inside

2009-06-03 Thread craig
That's right, yes. I tried that at one point: $count=$count+2; while ($count<=$num_teams) { echo "Player ".$count . "{click to reserve a player spot} Random Text that doesn't matter"; $count++; } However, it still wasn't working, so I decided to mess around with i

[Proto-Scripty] Re: Working outside loop, but not inside

2009-06-03 Thread craig
That's right, yes. I tried that at one point: $count=$count+2; while ($count<=$num_teams) { echo "Player ".$count . "{click to reserve a player spot} Random Text that doesn't matter"; $count++; } However, it still wasn't working, so I decided to mess around with i

[Proto-Scripty] Working outside loop, but not inside

2009-06-03 Thread craig
Hey, I've got some php that's pulling entries from a table, and displaying entries as well as giving a toggle effect to some. I put in some static html to confirm that the effect is working inside the file, but inside the php code the effect doesn't work... here's a snippet: while ($count<=$num_

[Proto-Scripty] Re: Screwy CSS confusing Prototype

2009-05-27 Thread craig
OK, nevermind I've got it. As you were saying, and as I didn't know, everything in needs to be inside a . Thanks for your help! Craig --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Prototype &a

[Proto-Scripty] Re: Screwy CSS confusing Prototype

2009-05-27 Thread craig
I've resorted to downloading dreamweaver in the hopes that its rudimentary html editor will help me, can you copy and paste with your inserted 's. I don't mean to be super-noob here, but I'm at my wits end lol Thanks --~--~-~--~~~---~--~~ You received this message

[Proto-Scripty] Re: Screwy CSS confusing Prototype

2009-05-27 Thread craig
I suppose I should be more specific. My question is whether there are certain HTML tags that could cause this to not work. I realize that there's nothing in the slide div, in the actual code there is, I just didn't paste it here. --~--~-~--~~~---~--~~ You receive

[Proto-Scripty] Screwy CSS confusing Prototype

2009-05-27 Thread craig
I've got: Team 1 {need a team} The problem is that this works if I put it in a simple HTML file, but if I try to paste this exact thing in my site code it doesn't work. I've put the headers for prototype and javascript, so I'm assuming

[Proto-Scripty] Re: Draggable using variable div name

2009-02-23 Thread craig
I've got it working now. The problem was that I had a complex series of ruby code and div closings that weren't in the right order. Thanks for the help guys. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Prototyp

[Proto-Scripty] Draggable using variable div name

2009-02-22 Thread craig
I'm generating div's dynamically based on the number of entries in a table, and I'd like to make them draggables as well but it's not working for me. I think the problem is with using a ruby variable inside the javascript: drag= "drag" (changed by the iterator by adding a char after each c

[Proto-Scripty] Re: Ajax.Autocompleter

2009-02-18 Thread Craig
Also fixed another bug for IE, whenever you click an option instead of using return/tab it would ignore the afterupdateelement function and not focus on the next text box but remain in the current one onClick: function(event) { var element = Event.findElement(event, 'LI'); this.index =

[Proto-Scripty] Re: Using the same onclick with SlideUp and SlideDown

2009-02-17 Thread craig
Thanks guys. I didn't realize toggle would do this for me. --~--~-~--~~~---~--~~ 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@googlegroup

[Proto-Scripty] Re: Ajax.Autocompleter

2009-02-17 Thread Craig
le to close. On 17 Feb, 14:41, Craig wrote: > > "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd";> > http://www.w3.org/1999/xhtml"; xml:lang="en-UK" lang="en- > UK"> > http://www.w3.org/2000/08/w3c-synd/#";> >

[Proto-Scripty] Re: Ajax.Autocompleter

2009-02-17 Thread Craig
27;, {minChars:-1,frequency: 0.5,afterUpdateElement: getCustomerId}); function getCustomerId(text, li) { //$('customer_id').value = li.id; //$('branch').value=''; //$('branch_id').value=''

[Proto-Scripty] Re: Ajax.Autocompleter

2009-02-17 Thread Craig
Have fixed this now by changing the event observer from the element to the update element line 90 controls.js Event.observe(this.update, 'blur', this.onBlur.bindAsEventListener (this)); On 17 Feb, 13:08, Craig wrote: > Firefox probabaly ignores clicks on the scroll bar and

[Proto-Scripty] Re: Ajax.Autocompleter

2009-02-17 Thread Craig
Oh and the border goes around the div and the scroll bar on IE so doubtful that its that. On 17 Feb, 13:08, Craig wrote: > Firefox probabaly ignores clicks on the scroll bar and thus does not > lose focus. Here is the main part of the code > > var auto_cust; > var auto_bran;

[Proto-Scripty] Re: Ajax.Autocompleter

2009-02-17 Thread Craig
erId(text, li) { $('customer_id').value = li.id; $('branch').value=''; $('branch_id').value=''; $('branch').focus(); } function customerCallback(element, entry) { return entry + "&customer=" + $('

[Proto-Scripty] Re: Ajax.Autocompleter

2009-02-17 Thread Craig
; border:1px solid #888; } When clicking on the scroll bar it loses focus and closes the div. I am currently trying to edit the onBlur function to check if focus is still on this.update (the div) so i can set it to remain open. On 17 Feb, 11:00, david wrote: > Hi craig, > > not seem

[Proto-Scripty] Re: Using the same onclick with SlideUp and SlideDown

2009-02-17 Thread craig
I don't want to click while sliding, I want to perform the opposite effect of what has already been clicked. If the div has been slid down, I want to be able to click on the same button to have it slide back up and vice versa. It isn't an issue of getting the sliding to work, it already does, it

[Proto-Scripty] Using the same onclick with SlideUp and SlideDown

2009-02-17 Thread craig
I'm using the SlideUp/SlideDown effects, and I'd like to use the same button for both effects. Context from the demo wiki: I tried (probably stupidly because of my lack of knowledge with html and javascript) to use a logical XOR and logical OR to sort of "conditionalize" the onclick effect, b

[Proto-Scripty] Ajax.Autocompleter

2009-02-17 Thread Craig
Am having one problem i cannot seem to solve. The autocompleter box displays the results which has a set height so a scroll bar displays. In FF but not other browsers when you scroll through the results it works fine but in any other browser it will just lose focus and disappear. Anyone come accr

[Proto-Scripty] Scriptaculous Multi Autocompleter

2009-01-09 Thread Craig
''}) The problem i am having is that it only gets the value of the hidden text field on the initial page load which puts me back to square one. Does anyone have a way of sending up the current value of another text box as well as the orig

[Proto-Scripty] Re: Improving FPS Speeds

2008-12-18 Thread Craig
iated Thanks On Dec 18, 3:26 am, RobG wrote: > On Dec 17, 8:52 pm, Craig wrote: > > > site im developing is not live but similar tohttp://www.aspecto.co.uk/ > > > Is there much use in creating a slider function to run all the sliders > > from would this make much of a differ

[Proto-Scripty] Re: Improving FPS Speeds

2008-12-17 Thread Craig
Who said it isnt my code.. On Dec 17, 2:51 pm, Diodeus wrote: > Posting an example that is not your code and does not display the > problem you are experiencing really doesn't help us debug YOUR > problem. > > On Dec 17, 5:52 am, Craig wrote: > > > site

[Proto-Scripty] Re: Improving FPS Speeds

2008-12-17 Thread Craig
site im developing is not live but similar to http://www.aspecto.co.uk/ Is there much use in creating a slider function to run all the sliders from would this make much of a difference? On Dec 17, 4:35 am, RobG wrote: > On Dec 17, 3:13 am, Craig wrote: > > > I have a very grap

[Proto-Scripty] Improving FPS Speeds

2008-12-16 Thread Craig
appreciated Thanks Craig --~--~-~--~~~---~--~~ 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 unsubsc