[Proto-Scripty] Re: Popup window

2008-11-19 Thread Cristisor
This is exactly what I need. Thank you! On Nov 17, 1:04 pm, Mona Remlawi [EMAIL PROTECTED] wrote: take a look at [http://prototype-window.xilinus.com/] prototype based window class that does confirm windows and others. .. On Mon, Nov 17, 2008 at 11:48 AM, Cristisor [EMAIL PROTECTED] wrote:

[Proto-Scripty] The Hop Effect

2008-11-19 Thread Adam Rochford
Prototype JavaScript framework, version 1.6.0.3 scriptaculous.js v1.8.1 I am currently running a script that has a menu that scrolls down as you scroll down. You can see it here http://www.law.indiana.edu/lawlibrary/research/guides/european/index_hop.shtml . But you can also a notice that when

[Proto-Scripty] Re: Passing variables after an onComplete

2008-11-19 Thread James Hoddinott
2008/11/18 Matt Foster [EMAIL PROTECTED]: No, its all POST methods being used here. new Ajax.Updater('respanel','data/fetchrespanel.php',{method:'get'}); Ah, that looks to be an error between whats on my server and what I pasted into my email; I must have altered it afterwards

[Proto-Scripty] InPlaceEditor Is there a way to control the sending?

2008-11-19 Thread disappearedng
Hi everyone, I have played around the InPlaceEditor for a while now and I notice that upon completion of the text field, the InPlaceEditor immediately makes a call the url supplied by the user. I think this is kind of inefficient. Is there a way such that upon complete, I can write a function

[Proto-Scripty] Draggable element with position:fixed is fighting with the scroll bar

2008-11-19 Thread bidllc
Hi, I have an draggable element with a css position attribute that has a value of 'fixed.' I'm calling Position.cumulativeOffset($ ('taskbar')); via the onEnd option so the element is in the right place when I go to drag it again. Everything is working well, except when the page scrolls in any

[Proto-Scripty] Nulling or stopping Dynamic Variables

2008-11-19 Thread Jeztah
Mornign Guys/Girls I am having some trouble nulling out or stopping some dynamic variables i have created ... I have built a dynamic window system which does alot of things, one is checking a database to ensure the most up to date information is in input boxes ... Now to check this i create a

[Proto-Scripty] Re: Is there a way to produce something similar to Google Calendar's Grid

2008-11-19 Thread T.J. Crowder
Hi, Is there a way to produce a grid whereby clicking the anywhere on the grid will result in an action that I would like to perform specifically to that point? ... something that can behave like this (maybe a white button) ... Yes, that's not a problem, you can use divs or spans, since

[Proto-Scripty] Re: Draggable element with position:fixed is fighting with the scroll bar

2008-11-19 Thread bidllc
Seems that setting ghosting:false (which I think is the deafualt anyway) solved the problem. On Nov 18, 8:09 pm, bidllc [EMAIL PROTECTED] wrote: Hi, I have an draggable element with a css position attribute that has a value of 'fixed.'  I'm calling Position.cumulativeOffset($ ('taskbar'));

[Proto-Scripty] Re: Nulling or stopping Dynamic Variables

2008-11-19 Thread Alex Mcauley
As an added bonus totally unforseen by me, when removing the element that the object was initialized in - it seems to remove the object too ... i.e the Object was created in an ajax callback in an element .. once i applied $('div').remove(); to the element that created it then it seems to

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

2008-11-19 Thread Hector Virgen
I believe Element#insert() expects an object as its parameter, like this: $('tableid').down('tbody').insert({top: tr}); http://prototypejs.org/api/element/insert -Hector On Wed, Nov 19, 2008 at 8:27 AM, jason maina [EMAIL PROTECTED] wrote: Hi, As per the subject i'm building DOM elements

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

2008-11-19 Thread George
For what it's worth, I thought the syntax was insert({top : 'tr'}) Give that a whirl All the best George On Nov 19, 4:27 pm, jason maina [EMAIL PROTECTED] wrote: 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

[Proto-Scripty] Re: cross browser $$ selector problems

2008-11-19 Thread Jay
sorry, I meant to make the prototype library src link more generic before sending - just point it to your favorite 1.6.0.3 link On Nov 19, 11:34 am, Jay [EMAIL PROTECTED] wrote: Hi All, I seem to be painted into a corner with use of $$ with respect to case sensitivity of the id attribute of

[Proto-Scripty] cross browser $$ selector problems

2008-11-19 Thread Jay
Hi All, I seem to be painted into a corner with use of $$ with respect to case sensitivity of the id attribute of html elements. I get completely opposite results between Firefox, Safari, and IE. All three work differently. With an id such as aBc, Firefox can only find it with $$ ('#aBc') and

[Proto-Scripty] Re: Strange Fade/Appear behavior in IE

2008-11-19 Thread lagoa89
Hi Glenn, I had the same problem with scriptaculous fade in IE; your suggestion of setting the style to include overflow:hidden worked very well. Thank you! David On Oct 3, 8:00 pm, Glenn Wang [EMAIL PROTECTED] wrote: Thanks for your response. I tried as you mentioned, but couldn't get the

[Proto-Scripty] Re: Focused field

2008-11-19 Thread EMoreth
You can play with something like this: html head SCRIPT LANGUAGE=javascript var CurrentObj; /SCRIPT /head body onfocusin=CurrentObj=event.srcElement;alert(CurrentObj.name) form input type = text name = txt input type = text name = txt1 select name = seloption1/option/select /body /html It is

[Proto-Scripty] Re: menu bar

2008-11-19 Thread K.C.Leung
I think all the menu should be base on ul -- li -- ul -- li, li . Then you can design your style by yourself to make it look like menu On Nov 19, 10:50 pm, jason maina [EMAIL PROTECTED] wrote: Hi guys/galz, Would like to make a menu like the one for facebook, any ideas?? Regards Jason

[Proto-Scripty] Re: Creating New Dom elements with Prototype don't display in IE, hmm?

2008-11-19 Thread Outpost
That worked like a charm. Added a tbody and IE fell right in line. Thanks for the feed back. Cheers, MK On Nov 18, 5:16 pm, Jonathan Rosenberg [EMAIL PROTECTED] wrote: Not much info to go on, but ... are you using tables?  If so, did you include tbody, tfoot theadelements? -- Jonathan

[Proto-Scripty] Re: InPlaceEditor Is there a way to control the sending?

2008-11-19 Thread EMoreth
You can do it if you want to. But one of the great things of inPlaceEditor is to update database on live and to have the updated feedback. If tou change this yuu will have to create a way to tell the users wich fields were updated and wich were not. (And depending on how many fields he had

[Proto-Scripty] Re: Passing variables after an onComplete

2008-11-19 Thread EMoreth
I don't know if i really understood the problem here... But onComplete gets a XMLHttpRequest object. that has your server response on XMLHttpRequest.responseText. in your case: val.responseText. Passing val as a parameter is a fully new Object as a value of parameter. This is not allowed...

[Proto-Scripty] Re: Portal Interface

2008-11-19 Thread disccomp
Bugs Fixed, now works as expected in the tested browsers, watch window added to the sample page. Tested Browsers: FireFox 1.5.0.10, 2.0.0.6, 3.04 Safari 3.04, 3.2 IE 7.0.5730.11, 8.0.6001.18241 --~--~-~--~~~---~--~~ You received this message because you are

[Proto-Scripty] Re: How to override / hack Element.update function?

2008-11-19 Thread EMoreth
I had this kind of problem some time ago.. I had a table that was generated by javascript showing values that were added to the database from all users. So when the administrator needed to get the full table it took years to load. This kind of thing is generally only text data, with no script

[Proto-Scripty] Re: cross browser $$ selector problems

2008-11-19 Thread T.J. Crowder
Hi Jay, Thanks for this. We can ignore the results for when the case of the ID you're requesting is different from the case of the ID on the table, since case is significant in IDs[1] -- not that I'm surprised to see that IE is, um, different there. So to my mind, that leaves us with this

[Proto-Scripty] Re: cross browser $$ selector problems

2008-11-19 Thread T.J. Crowder
Sorry for the double-post: What version of Safari are you using and on what platform? I've replicated the results in my post with Safari 3.1.2 for Windows on Windows XP. -- T.J. On Nov 19, 7:41 pm, T.J. Crowder [EMAIL PROTECTED] wrote: Hi Jay, Thanks for this.  We can ignore the results

[Proto-Scripty] Re: Focused field

2008-11-19 Thread Hector Virgen
A prototype way might go something like this (untested): var focused; Event.observe(document, 'dom:loaded', function() { $$('input, select, textarea').invoke('observe', 'focus', function(event) { focused = event.element(); }); }); -Hector On Wed, Nov 19, 2008 at 7:50 AM,

[Proto-Scripty] Re: menu bar

2008-11-19 Thread Brian Williams
the UL tag will also degrade somewhat gracefully 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 . Then you can design your style by yourself to make it look like menu On Nov

[Proto-Scripty] Scriptacuous: autocomplete How do I update my database in PHP after the string is found

2008-11-19 Thread alohaaaron
Hi, I'm trying to update my database with the string that is selected by the user but am not sure how to do so? Thank you. Here is my call in html. td name='search' id='search' value='' /td div id='autocomplete_choices' class='autocomplete'/div input type=hidden id=artist_id name=artist_id

[Proto-Scripty] Re: cross browser $$ selector problems

2008-11-19 Thread Jay
Yes, you have captured the essence of the issue - unexpectedly inconsistent results across browsers, with no apparent workaround except to make all id's and all class names lower case. On my tests using Windows XP Pro SP3, the browser versions were Firefox 3.0.4, IE 6.0.2900, and Safari 3.2. On

[Proto-Scripty] Re: cross browser $$ selector problems

2008-11-19 Thread Jay
I was trying to scale down the example to the essence of the issue. Of course, $('Contents') should be interchangeable with $$('#Contents'), except that is the bug - it doesn't work on Safari or IE. In the real world, I might want the selector to be more like $$('table#tblTMRoster tbody tr

[Proto-Scripty] select only text (i.e. textnodes, probably) using $$

2008-11-19 Thread lskatz
Hi, I want to automatically set up abbreviation tags everywhere in my document, and it works great, except I am altering the innerHTML to do so and sometimes some crazy results happen. For instance, an input's value should be untouched because the value should not be value=abbr title='united

[Proto-Scripty] Re: select only text (i.e. textnodes, probably) using $$

2008-11-19 Thread Gabriel Gilini
You could check if the firstChild of the element in question is a textNode. i.e.: var c = el.firstChild; if(c.nodeType == 3){ //text node el.update(...); } Gabriel Gilini www.usosim.com.br [EMAIL PROTECTED] [EMAIL PROTECTED] On Wed, Nov 19, 2008 at 9:22 PM, lskatz [EMAIL PROTECTED] wrote:

[Proto-Scripty] Re: Scriptacuous: autocomplete How do I update my database in PHP after the string is found

2008-11-19 Thread alohaaaron
Thanks. Updating into the database is working now! But when I select one result from the list of results using the arrow keys the incorrect selection is updated in the database. If I don't use the arrow keys and just select the first result then the correct result is in the database. How do I

[Proto-Scripty] Re: select only text (i.e. textnodes, probably) using $$

2008-11-19 Thread Jay
I notice you have an uppercase letter in your $$ selector. I don't know, but this could cause you some problems if you are not using Firefox. Please see the discussion called 'cross browser $$ selector problems'. You should not need to do this, but just for a test, try making all id's and class

[Proto-Scripty] Re: Focused field

2008-11-19 Thread kangax
On Nov 19, 3:39 pm, Hector Virgen [EMAIL PROTECTED] wrote: A prototype way might go something like this (untested): var focused; Event.observe(document, 'dom:loaded', function() {     $$('input, select, textarea').invoke('observe', 'focus', function(event)     {         focused =

[Proto-Scripty] Re: cross browser $$ selector problems

2008-11-19 Thread kangax
On Nov 19, 5:46 pm, Jay [EMAIL PROTECTED] wrote: I was trying to scale down the example to the essence of the issue. Of course, $('Contents') should be interchangeable with $$('#Contents'), except that is the bug - it doesn't work on Safari or IE. In the real world, I might want the selector

[Proto-Scripty] Re: Focused field

2008-11-19 Thread Hector Virgen
That's true, and yes that CSS selector should include buttons. If you're building your DOM dynamically, you may want to create a form element factory. Then this can automatically add the focus observer each time you create a form element. var focused; function onElementFocus(event) {

[Proto-Scripty] So Beyond Novice, I Know

2008-11-19 Thread Bobby.D
I realize how novice this question is...but I need to return a javascript line of code instead of returning text. I need dsJobs.loadData() to execute upon completion, however, even after a week off (My appendix and I got in a big fight) I still can't figure this out. Help, please

[Proto-Scripty] Re: menu bar

2008-11-19 Thread jason maina
How do i have it fixed at a certain point on the interface irrespective of scrolling jumpy repositioning while scrolling? Thank you for the ideas though. Regards Jason On 11/19/08, Brian Williams [EMAIL PROTECTED] wrote: the UL tag will also degrade somewhat gracefully for hand held browsers

[Proto-Scripty] Re: menu bar

2008-11-19 Thread Brian Williams
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 AM, jason maina [EMAIL PROTECTED] wrote: How do i have it fixed at a certain point on the interface irrespective of