[Rails-spinoffs] Re: Getting name of object instance from within object

2008-04-01 Thread Jonas Rosenqvist
On 28 Mar, 13:43, T.J. Crowder [EMAIL PROTECTED] wrote: When you make the elements, you will still have to give them something they can use to find out who created them -- e.g., a reference to the instance that created them, or just the name of the constructor function [by giving them the

[Rails-spinoffs] Re: Getting name of object instance from within object

2008-04-01 Thread RobG
On Mar 28, 9:43 pm, T.J. Crowder [EMAIL PROTECTED] wrote: Hi, A function or property refering directly to the name/objectindex of the obejct/class instance would be much more practical. That infers that you are going to execute logic based on the name of the constructor. One of the

[Rails-spinoffs] Help me

2008-04-01 Thread nevil gandhi
Hello every budy, i m nevil,i m new in ajax and try to understand the prototype.js so plz help me that how i use prototype.js and also tell me how i apply ajax request throught prototype.js ,i refere the materials on line but i cant get anything so plz reply me,

[Rails-spinoffs] Пояса для похудения, саун а-белты, массажные пояса

2008-04-01 Thread ShopBody.ru
Неопреновый пояс для похудения из высококачественного материала тонизирует тело и заставляет досадные жировые складки исчезать с невероятной скоростью. Принцип воздействия саунта-белта схож с давно известными неопреновыми поясами для похудения. Но для того, чтобы неопреновый пояс помогал худеть, в

[Rails-spinoffs] hi

2008-04-01 Thread vinay
im new to aculo and using in a project . i want kw how to generate dynamically input box or check box. pls help me. Thanks Binay --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Ruby on Rails: Spinoffs group. To

[Rails-spinoffs] Re: Getting name of object instance from within object

2008-04-01 Thread T.J. Crowder
It doesn't seem sensible to set the constructor's name property every time it is called. It makes more sense to set it once on the constructor's prototype. :-) You're quite right. :-) It was a quick exmaple for the OP. Strictly speaking you don't need the getCtorName function ... But

[Rails-spinoffs] Re: hi

2008-04-01 Thread Ken Snyder
vinay, use new Element() var input = new Element('input', {type: 'text', value: 'default'}); input.observe('blur', myOnBlurFunction); $('mydiv').appendChild(input); var box = new Element('input', {type: 'checkbox', value: '1'}); $('mydiv').appendChild(box); - Ken Snyder On Tue, Apr 1, 2008

[Rails-spinoffs] Ajax.Request SSL question

2008-04-01 Thread Jarkand
Hi there, I have just a one question to prototype's Ajax.Request calls and hope that someone could answer it. Ajax.Requests via a http to a https is not possible, even if it's the same domain. Is that right? For example: your login form is here - http://www.mydomain.com the call points to:

[Rails-spinoffs] Re: Ajax.Request SSL question

2008-04-01 Thread Tobie Langel
Hi, That's indeed a violation of SOP (http://en.wikipedia.org/wiki/ Same_origin_policy). The easiest work-around would be to use https://www.mydomain.com for your login form. Best, Tobie On Apr 1, 4:48 pm, Jarkand [EMAIL PROTECTED] wrote: Hi there, I have just a one question to

[Rails-spinoffs] Re: Ajax.Request SSL question

2008-04-01 Thread Jarkand
Hi and thanks for the info! Well, and that's actually the uncool thing about it. Having a page with a log in link that opens a floating window incl. the log in form makes SSL calls not possible. However, thanks for the quick reply. Michael --~--~-~--~~~---~--~~

[Rails-spinoffs] Prototype: new Element() in XML DOM

2008-04-01 Thread Jan Bölsche
Hi! I am trying to make Prototype work in a mixed XHTML/SVG DOM (see Code below). The page renders perfectly in Firefox 2.0.0.13 except for the 2nd link-Element that was added dynamically using Prototype's Element class. Although the element seems to be okay when being investigated with Firebug,

[Rails-spinoffs] Re: Ajax.Request SSL question

2008-04-01 Thread T.J. Crowder
Having a page with a log in link that opens a floating window incl. the log in form makes SSL calls not possible. I think Tobie's point was that if the page itself is served via https, it solves the problem. So rather than having an http-served page with a login link, you'd have an

[Rails-spinoffs] Is Multiple Inheritance with Classes?

2008-04-01 Thread [EMAIL PROTECTED]
Hi, See the following code sinppet, I know we can mixin modules, but if i use modules, I wont be able to override the methods in modules. Can we inherit from more than one class? html head script src=prototype_1_6.js /script script var Person = Class.create({

[Rails-spinoffs] prototype.js $('element').getHeight() returning incorrect values

2008-04-01 Thread bcamp1973
i'm trying to use the following function to expand the element that's clicked on (in an unordered list) and collapse it's sibling elements. this function is then called within another that shows/hides the contents of the elements. In this case sOpenObject would be the li you clicked on,

[Rails-spinoffs] Re: YUI and AJAX.Updater

2008-04-01 Thread kangax
Brian, How is this relevant to prototype.js? - kangax On Mar 30, 11:04 pm, Brian Williams [EMAIL PROTECTED] wrote: Hey, I've begun using some of the YUI elements in my admin section of my site and it is all AJAX based I'm wondering if anyone has done any work with the YUI RTE and loading it

[Rails-spinoffs] Re: YUI and AJAX.Updater

2008-04-01 Thread kangax
Oops, my bad : / Ajax.Updater currently does not evaluate scripts in global scope - that could be the reason why library is not being loaded. Take a look at this patch http://dev.rubyonrails.org/ticket/11423 Best, kangax On Mar 30, 11:04 pm, Brian Williams [EMAIL PROTECTED] wrote: Hey, I've

[Rails-spinoffs] Re: YUI and AJAX.Updater

2008-04-01 Thread Brian Williams
Not a problem, I should have mentioned that I was using AJAX.updater. Thanks for the info, I'll check it out. On Tue, Apr 1, 2008 at 3:22 PM, kangax [EMAIL PROTECTED] wrote: Oops, my bad : / Ajax.Updater currently does not evaluate scripts in global scope - that could be the reason why

[Rails-spinoffs] Element.show/hide and Ajax Updater

2008-04-01 Thread kodiacat
A while back I was on with a problem having to do with a hiding and show questions in a table based form based on whether a user selected yes or no radio buttons. If they selected yes to any of the 6 questions then they would be shown additional questions that they would be required to answer.