RE: [Rails-spinoffs] tab panes

2006-03-21 Thread Maninder, Singh
Here you go - http://script.spinelz.org/tabbox.html   Enjoy! Mandy. ___ Rails-spinoffs mailing list Rails-spinoffs@lists.rubyonrails.org http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs

[Rails-spinoffs] tab panes

2006-03-21 Thread Marco M. Jaeger
    Hello everybody,   I was wondering whether anybody knows of a prototype/scriptaculous based tab panes script – something similar to this: http://www.dhtmlgoodies.com/scripts/tab-view/tab-view.html   Thank you in advance for your input   _

Re: [Rails-spinoffs] Javascript Code inside an Ajax response

2006-03-21 Thread Deco Rior
Sounds to me like one of your other scripts had an error in it causing the follow-on text to fail. It happens! Deco On Mar 21, 2006, at 8:22 PM, Guillermo Movia wrote: Thanks to all for your help. At last, i could make it work, banning all other scripts of java of the response. Maybe somethi

Re: [Rails-spinoffs] Javascript Code inside an Ajax response

2006-03-21 Thread Guillermo Movia
Thanks to all for your help. At last, i could make it work, banning all other scripts of java of the response. Maybe something was wrong there. Guillermo 2006/3/21, Guillermo Movia <[EMAIL PROTECTED]>: > I don't know where is the error. If i just make a file with the script > taht generate the ph

Re: [Rails-spinoffs] IE flakiness?

2006-03-21 Thread Curtis Edmond
Thanks for the suggestions. I just tried them and they didn't work. I still get the flaky behavior. On 3/21/06, Jerod Venema <[EMAIL PROTECTED]> wrote: Hey Curtis,A couple things to try1) Add a wrapper div around the div you already have, and blindup/blinddown that item2) If you still end up w

Re: [Rails-spinoffs] Javascript Code inside an Ajax response

2006-03-21 Thread Guillermo Movia
I don't know where is the error. If i just make a file with the script taht generate the php and save it like html, it's work. But with the same script generate by the php, doesnt work. How could i make that ultima2 function runs automatically when the Ajax.response ends? Maybe the problem was th

[Rails-spinoffs] Question for Gurus: Sortable Lists

2006-03-21 Thread Bennett, Ticean
I’ve been stuck on this particular problem for quite some time now.  If I don’t explain it well enough I’d be happy to explain more.   I have a group of draggables and a droppable object.  I’ve created a function for the Droppable.onDrop event so when I drop one of these items I check (vi

Re: [Rails-spinoffs] Javascript Code inside an Ajax response

2006-03-21 Thread Guillermo Movia
I could make another simple script works with evalScript. Something is wrong with the amount of Javascript i had. I will continue searching for the error. Thanks a lot to all. Guillermo 2006/3/21, Guillermo Movia <[EMAIL PROTECTED]>: > I think that is better is i explain my project: > > I have a

Re: [Rails-spinoffs] Javascript Code inside an Ajax response

2006-03-21 Thread Guillermo Movia
I think that is better is i explain my project: I have a php script that return a table with news. To actualize this news, i need the lastID that i bring in the previous call and a number (this variable ultimaNoticia). The lastID was easy for me, because it came like a part of the tr tag, but this

Re: [Rails-spinoffs] Javascript Code inside an Ajax response

2006-03-21 Thread Deco Rior
why are you not using function ultima2(){ } no semicolon at the end On Mar 21, 2006, at 3:08 PM, Todd Ross wrote: On 3/21/06, Guillermo Movia <[EMAIL PROTECTED]> wrote: ultima2 = function() { var ultimaNoticia = 677; $('lastStory').innerHTML = ultimaNoticia; }; Try window.ultima2 = functi

Re: [Rails-spinoffs] Javascript Code inside an Ajax response

2006-03-21 Thread Deco Rior
Sorry I misread... Even though I understand what Greg says it should work. Personally, I never use onclick. Instead I use Event.observe Have you tried this: onclick="alert('test')"; to see if this works first? On Mar 21, 2006, at 2:55 PM, Guillermo Movia wrote: No, ultima2() doesn't call

Re: [Rails-spinoffs] Javascript Code inside an Ajax response

2006-03-21 Thread Todd Ross
On 3/21/06, Guillermo Movia <[EMAIL PROTECTED]> wrote: > ultima2 = function() { > var ultimaNoticia = 677; > $('lastStory').innerHTML = ultimaNoticia; > }; Try window.ultima2 = function() { ... } Todd ___ Rails-spinoffs mailing list Rails-spinoffs@li

RE: [Rails-spinoffs] Javascript Code inside an Ajax response

2006-03-21 Thread Gregory Hill
> No, ultima2() doesn't call the Ajax.Updater, it comes in the response, > but nothing else. The button also came in the response. > Which is the way to use this function? Is ultima2 used by other elements as well? If not, just do an inline function: onclick="function () { ... }" Greg _

Re: [Rails-spinoffs] Javascript Code inside an Ajax response

2006-03-21 Thread Guillermo Movia
No, ultima2() doesn't call the Ajax.Updater, it comes in the response, but nothing else. The button also came in the response. Which is the way to use this function? Guillermo 2006/3/21, Deco Rior <[EMAIL PROTECTED]>: > It looks like it is not recognizing the calling function "utlima2" > > Also t

Re: [Rails-spinoffs] Javascript Code inside an Ajax response

2006-03-21 Thread Guillermo Movia
Thanks, Greg, yes the script has the script tag before: for (var i = 0; i < 677; i++) { if (document.newsStoriesForm['storyIDs' + i]) { t.newsFeeds[0]["storyIDs"][i] = document.newsStoriesForm['storyIDs' + i].value; t.newsFeeds[0]["stories"][i] = document.newsStoriesForm['stories' +i].value; } }

Re: [Rails-spinoffs] Javascript Code inside an Ajax response

2006-03-21 Thread Deco Rior
It looks like it is not recognizing the calling function "utlima2" Also the utima2 never calls the Ajax.Updater?? Deco The pr On Mar 21, 2006, at 2:40 PM, Gregory Hill wrote: Does your response have tags around the script? evalScripts looks for that and runs any code inside

RE: [Rails-spinoffs] Javascript Code inside an Ajax response

Does your response have tags around the script? evalScripts looks for that and runs any code inside