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
, 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
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:
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
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
.
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
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
/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
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
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
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
});
}
})
}
});
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
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
+ '';
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
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
(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
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
-- 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
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
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
, 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
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
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 ...
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);
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({
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
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
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();
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
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
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.
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
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', '') });
});
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
34 matches
Mail list logo