[Proto-Scripty] Re: prototyp.js is receiving a null value

2012-07-11 Thread MelRauinAZ
On Wednesday, July 11, 2012 4:25:04 PM UTC-7, MelRauinAZ wrote: > > On the back end when i ported this code I did not see any XML related to > it. > Also there may be some iframe 'interference'. > > > On Monday, July 9, 2012 7:28:53 PM UTC-7, MelRauinAZ wrote: >> >> Hi, >> >> 'star' to state i

[Proto-Scripty] Re: prototyp.js is receiving a null value

2012-07-11 Thread MelRauinAZ
Not entirely sure on how to go about verifying xml for certain. I do not see any XML related to this chunk of code. Also there may be some iframe 'interference'. On Monday, July 9, 2012 7:28:53 PM UTC-7, MelRauinAZ wrote: > > Hi, > > 'star' to state is working on original site: www.powerfields.

Re: [Proto-Scripty] Re: Image Uploader / Thumbnail creator

2012-07-11 Thread Phil Petree
Thin, Thanks, that's a really great find... I'll work on adding that in over the next week or so. Greg shared his image uploader (iframe) code and was very patient and helped me get that up and running... it was quite tricky as the json response to an iframe had some very unexpected results. We

Re: [Proto-Scripty] Confirm() happening twice on click.

2012-07-11 Thread Jason Westbrook
Honestly I'm not exactly sure there is a possibility that the observe method was calling confirmDelete instead of just tagging it as the event handler Jason Westbrook | T: 313-799-3770 | jwestbr...@gmail.com On Wed, Jul 11, 2012 at 12:06 PM, thinsoldier wrote: > Thanks for all your help. Thin

Re: [Proto-Scripty] Confirm() happening twice on click.

2012-07-11 Thread thinsoldier
Thanks for all your help. Thing thing has been buggin me for a very long! Could you explain what exactly was happening with my original code that made the confirm fire twice? On Wednesday, 11 July 2012 14:13:13 UTC-4, Jason wrote: > > > > I don't see any problems with the HTML elements > > and t

[Proto-Scripty] Re: Image Uploader / Thumbnail creator

2012-07-11 Thread thinsoldier
I've had success with this for almost a year now. http://www.defusion.org.uk/code/javascript-image-cropper-ui-using-prototype-scriptaculous/ It allows you to define a starting point then width and height to indicate your crop area. You then send those numbers to your server side image processin

Re: [Proto-Scripty] Confirm() happening twice on click.

2012-07-11 Thread Jason Westbrook
I don't see any problems with the HTML elements and to answer your question the observe method identifies the function as the "handler" and passes the event object to the handler and you can get the javascript to one line if you want $$("td a.delete").invoke("observe","click",confirmDelete);

Re: [Proto-Scripty] Confirm() happening twice on click.

2012-07-11 Thread thinsoldier
On Wednesday, 11 July 2012 12:37:45 UTC-4, Jason wrote: > > > can you either post the HTML that you are using or post the url where it > is located publicly? > > Here is the html: Saved Name Rename Delete Switch Format Browse 11 Nov, 2009 Sale less than x 250 thousand

Re: [Proto-Scripty] Confirm() happening twice on click.

2012-07-11 Thread thinsoldier
> > you can simplify your javascript this way > > > $$('td a.delete').each(function(s){ > s.observe('click', confirmDelete); > } ); > Ok that worked. But now I'm very confused. For years I've been intentionally giving anonymous functions to observers because it seemed the work horse funct

Re: [Proto-Scripty] Confirm() happening twice on click.

2012-07-11 Thread Jason Westbrook
can you either post the HTML that you are using or post the url where it is located publicly? you can simplify your javascript this way $$('td a.delete').each(function(s){ s.observe('click', confirmDelete); } ); Jason Westbrook | T: 313-799-3770 | jwestbr...@gmail.com On Wed, Jul 11,

[Proto-Scripty] Confirm() happening twice on click.

2012-07-11 Thread thinsoldier
Hello. I have a page that lists records and each row has a link that goes to a page which deletes the associated record. But before the browser navigates to that page I stop it by asking the user if they really want to delete the item. If they click cancel the browser goes nowhere. If they cli