Re: [Proto-Scripty] Show of hands

2014-01-03 Thread Dave Kibble
a big job to convert to anything else. thanks for your support on this forum though - it's comforting to know there's some out there. If Prototype were open-sourced with the enthusiasts maintaining it I would feel much better about it. cheers Dave On 3 January 2014 14:01, Walter Lee Davis wa

Re: [Proto-Scripty] Ajax CORS error message

2013-01-17 Thread Dave Lazar
, 2013, at 9:20 PM, Dave Lazar wrote: Indeed I did... to no great effect with the results... still spits out that it does not want to process an unsafe 'X-JSON' header... On Wednesday, January 16, 2013 8:46:32 PM UTC-5, Jason wrote: did you also set the headers

[Proto-Scripty] Ajax CORS error message

2013-01-16 Thread Dave Lazar
Hi, I have a CORS route on a service that works fine. Returns JSON as a 200 OK status to incoming requests. Prototype 1.7.0 renders an error from simple calls: new Ajax.Request(http://test.heroku.com/concrete;, {method:'POST', parameters:{fizz: 'buzz'}, onSuccess:

Re: [Proto-Scripty] Ajax CORS error message

2013-01-16 Thread Dave Kibble
is the page served from http://test.heroku.com ? If not, it's a cross-site scripting security issue. -- 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

Re: [Proto-Scripty] Ajax CORS error message

2013-01-16 Thread Dave Lazar
As I mentioned... this a CORS setup, so obviously it is cross-site. That part of the stack works perfect, and the response is indeed dished out to the browser as expected. The only problem I have is Prototype not liking the header... I am looking for the tip that will silence that... Thanks

Re: [Proto-Scripty] Ajax CORS error message

2013-01-16 Thread Dave Lazar
. On Wed, Jan 16, 2013 at 4:21 PM, Dave Lazar hunk...@gmail.comjavascript: wrote: As I mentioned... this a CORS setup, so obviously it is cross-site. That part of the stack works perfect, and the response is indeed dished out to the browser as expected. The only problem I have is Prototype

Re: [Proto-Scripty] Ajax CORS error message

2013-01-16 Thread Dave Lazar
Westbrook | T: 313-799-3770 | jwest...@gmail.com javascript: On Wed, Jan 16, 2013 at 2:43 PM, Dave Lazar hunk...@gmail.comjavascript: wrote: Chrome, Firefox and Safari all show a console error. They also all show the response. Puzzling... On Wednesday, January 16, 2013 5:22:36 PM UTC-5

Re: [Proto-Scripty] Ajax CORS error message

2013-01-16 Thread Dave Lazar
/url',{ 'requestHeaders' : { 'X-Requested-With' : null, 'X-Prototype-Version' : null}}); Jason Westbrook | T: 313-799-3770 | jwest...@gmail.com javascript: On Wed, Jan 16, 2013 at 5:42 PM, Dave Lazar hunk...@gmail.comjavascript: wrote: I built that version of Prototype, with that pull

Re: [Proto-Scripty] highlighting a tablerow

2013-01-01 Thread Dave Kibble
I think there's also something weird about CSS applied to table rows, (I think) cells don't inherit all properties from the row they 'belong' to. Make sure your HTML/CSS works in a stand-alone document first to check. Dave On 1 January 2013 22:53, Phil Petree phil.pet...@gmail.com wrote: I have

Re: [Proto-Scripty] Re: Hi, new to group. Having an issue with visible() method. any suggestions?

2012-10-15 Thread Dave Kibble
if nothing has id='system123' then when k-123 the error wiil throw) You can avoid it with: if ($(open_div)) { if ($(open_div).visible()==true) { Dave -- You received this message because you are subscribed to the Google Groups Prototype script.aculo.us group. To post to this group, send

Re: [Proto-Scripty] stupid checkbox question

2012-04-27 Thread Dave Kibble
onclick=saveChange(1); 1 is a number, '1' is a string function saveChange(cbValue) a better name for the parameter would be cbID Dave -- 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

[Proto-Scripty] Re: How To Put Results Into MySql

2012-03-16 Thread Dave
});                         }                 })         } }); This is a really old example, I would probably write this all much more cleanly now (and I'd be doing it in Rails anyway) but this works very solidly. Walter On Mar 10, 2012, at 1:52 PM, Dave wrote: Hi, I began experimenting with the 'sortables' and really like the 4th

[Proto-Scripty] How To Put Results Into MySql

2012-03-15 Thread Dave
Hi, I began experimenting with the 'sortables' and really like the 4th version. I'm extracting the list from a MySql db to build the list and all works fine but how do I get the results back into the database after the sort? I'm using perl--need this for a cgi script. Thanx. -- You received this

[Proto-Scripty] new Element removes the name property from passed initialiser in IE7

2011-09-27 Thread Dave Kibble
+ ''; delete attributes.name; ... Hope this helps someone (or maybe someone else can suggest a better fix!). cheers Dave -- 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

Re: [Proto-Scripty] Firefox height:100% bug w/ prototype fix

2010-11-22 Thread Dave Kibble
I suggest that you insert a doctype and then run it through a validator until you get no errors or warning and then analyse what you are left with if you still have the problem. On 15 November 2010 19:26, Scott counterstre...@gmail.com wrote: So I've been working on a project the involves a

Re: [Proto-Scripty] Re: how to modify a part of an a href=...

2010-08-19 Thread Dave Kibble
(edit_link.href.toString()); on this url  :  /admin/users/4c6a275ea326cb01f401/edit?locale=en seems to work , maybe a better writing ? On 19 août, 15:10, Erwin yves_duf...@mac.com wrote: Hi Dave .. sorry to ask you an additional trick ...  but as you are qui good in RegExp ... what if the href

Re: [Proto-Scripty] how to modify a part of an a href=...

2010-08-18 Thread Dave Kibble
you might find this regular expression useful: var myRegExp = /(^.*?)([^\/]*)\?(.*$)/; var match = myRegExp.exec(link.href.toString()); alert(match[1] + '\n' + match[2] + '\n' + match[3]); -- You received this message because you are subscribed to the Google Groups Prototype script.aculo.us

[Proto-Scripty] Re: When Ajax Insert Expands Page Downward...

2009-12-14 Thread Dave L
-- Sent from my Palm Prē Dave L wrote: I am having an issue:  when inserting a number of elements that end up push the page downward so that the scroll bar has to be adjusted, all of the css shifts to the left.  I am using firefox 3.0 and have noticed this occurance before.  Has anyone else

[Proto-Scripty] When Ajax Insert Expands Page Downward...

2009-12-07 Thread Dave L
I am having an issue: when inserting a number of elements that end up push the page downward so that the scroll bar has to be adjusted, all of the css shifts to the left. I am using firefox 3.0 and have noticed this occurance before. Has anyone else come across this or know what might be

[Proto-Scripty] Re: Simple Ajax form

2009-11-03 Thread Dave Kibble
What happens if you type your server/getIP.php into a browser address bar? Your PHP should emit a valid HTML file (i.e. include head and body tags), but I don't know if that would necessarily stop it working. --~--~-~--~~~---~--~~ You received this message

[Proto-Scripty] replace_html with javascript or rjs after ajax call

2009-10-13 Thread Dave L
, but maybe it is good to make the user wait until the save to the database / ajax.request call is completed? That way it would prevent the user from clicking the icon rapidly and creating a number of ajax.requests in a row. Any input is appreciated, Dave

[Proto-Scripty] Re: object.each problem

2009-10-02 Thread Dave
Thanks Richard I have checked the API for new/changed features between 1.5.0 and 1.6.0, but I'm getting null returned in the second parameter. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Prototype

[Proto-Scripty] Re: object.each problem

2009-10-02 Thread Dave
I have a JSON object ... {Result:1,UniqueID:5,Username:Chrome,Email:,LastLogin:Monday, 14supth\/sup September 2009 at 10:28 AM,ContractID:0,Password:,Rights:{Disabled:false,UserAdmin:false,ReportAdmin:false,RunReports:true} To iterate the Rights, I use ...        

[Proto-Scripty] object.each problem

2009-10-01 Thread Dave
I have just upgraded to the latest scriptaculous (1.8.2) which includes prototype 1.6.0.3 and the following code no longer works:- Ajax.JSONResponse = function(xhr) { var data=eval('('+xhr.responseText+')'); Object.extend(data,Enumerable); Object.extend(data,Hash);

[Proto-Scripty] Problem with this binding in class function

2009-05-19 Thread Dave L
I am trying to use pre-existing functions in a new prototype class but am having some trouble with binding. When I call a function within a function it says that one of my class variables is undefined. I have defined the class variable correctly I think: var DropDown = Class.create({

[Proto-Scripty] event.element vs. $('element_id')

2009-03-26 Thread Dave L
Im wondering, what is the difference between the following: $('object_id').observe('click', function(event){ element = event.element() } VERSUS $('object_id').observe('click', function(event){ element = $('object_id) } Is there a difference in speed? Is one better than the other in

[Proto-Scripty] Disabling mouseover during an effect

2009-02-13 Thread Dave L
I am using the ScrollTo() effect to scroll down to an element on the page, but there are some links in between that have a mouseover event that highlights them and it looks rather odd when they flicker during the ScrollTo() transition. Im wondering if anyone has any suggestions for avoiding

[Proto-Scripty] Close Div when click outside

2009-01-21 Thread Dave L
I am trying to build my own select pull down menu that will close when a click is observed outside of the pull down div, but I am having trouble stopping the click event from triggering when the link to show the pull down is clicked. This is the relevant code: a onclick=showSelect();

[Proto-Scripty] select menu with scrolling

2009-01-05 Thread Dave L
Im looking for ideas on how to implement a pull down menu that uses a scroll bar. There are about 30 items in a list and I only want to show 5 of them at a time. Anyone have any advice on how I would start this? --~--~-~--~~~---~--~~ You received this message

[Proto-Scripty] Submit a form using enter

2008-12-09 Thread Dave L
I am having trouble writing a function that will allow users to submit a form that is in a modal popup using the enter key in IE6. It works in all other browsers. I was thinking something along the lines of this: $('form_submit').onkeydown=if(event.keyCode==13){this.form.submit ();return

[Proto-Scripty] Firefox 3/Safari Modal Popup Choppiness

2008-11-26 Thread Dave L
I am using prototype to build modal popups and am now having trouble with the timing of the fade-in effect in Firefox 3 and Safari. It gets super choppy when loading the fade, and sometimes I can see the element behind the popup flashes on top of the popup before it is stationed on the screen.

[Proto-Scripty] Re: Event.observe working in Firefox but not IE6-7

2008-10-30 Thread Dave
when it's submitted, hopefully that will work. On Oct 29, 5:16 pm, kangax [EMAIL PROTECTED] wrote: On Oct 29, 4:01 pm, Dave [EMAIL PROTECTED] wrote: As the subject says I have the follow js: Event.observe('events', 'change', function (e) {   new Ajax.Updater('event_details

[Proto-Scripty] Event.observe working in Firefox but not IE6-7

2008-10-29 Thread Dave
As the subject says I have the follow js: Event.observe('events', 'change', function (e) { new Ajax.Updater('event_details', 'URL', { method: 'post', parameters: 'event=' + e.element().id.gsub('event', '') }); });

[Proto-Scripty] Re: Ajax.Updater works only when html is on server where script is

2008-10-02 Thread Dave
Thanks guys, I caught this: While it is not possible to directly query websites for data due to the same origin policy, the script tag does not honor the same- origin policy and can be used in conjunction with JSON. I'm assuming prototype is enforcing the same-origin policy then? Thanks, Dave