Weird, maybe I thought it was doing what it should do... Either way, nice fix
-- Sent from my Palm Prē
evilC wrote:
For future reference,
document.observe('resize',winResize);
Never fires. Maybe because the document as a whole has not been
extended?
However,
Event.observe(window, 're
For future reference,
document.observe('resize',winResize);
Never fires. Maybe because the document as a whole has not been
extended?
However,
Event.observe(window, 'resize', winResize);
worked fine.
--
You received this message because you are subscribed to the Google Groups
"Prototype & s
Very, very cool.
-- Sent from my Palm Prē
evilC wrote:
The idea of Placebook is social networking for places. Sort of like if
you could have a facebook or twitter account for a place. People can
log in and add locations, then people can make posts on it's wall, or
add tags to the location to d
The idea of Placebook is social networking for places. Sort of like if
you could have a facebook or twitter account for a place. People can
log in and add locations, then people can make posts on it's wall, or
add tags to the location to denote activies and social groups
associated with that place
A good place to start, add:
console.log('this is my first debug output');
Anywhere inside of a loaded dom closure (like your initializer function or
prototype's document.observe('dom:loaded', ...); )
-- Sent from my Palm Prē
evilC wrote:
Great, that worked. I didn't realise "this" could be so
Great, that worked. I didn't realise "this" could be something else...
Also, bear in mind that I only started using prototype for this
project yesterday. Hell, I ripped it out and put it back in since I
made the first post - hence a lot of the code does not use prototype
properly (Though a search
Good outlook :)
I should also mention that whatever it your creating, so far, seems really
neat. I'd like to see how it develops.
The code cleaning suggestions I made will make a diff regarding the fix I sent
you.
-- Sent from my Palm Prē
evilC wrote:
Thanks for all the help and advice guys
Thanks for all the help and advice guys!
Yes, I know the code is quite horrific at the moment - due to the way
I have my uni projects scheduled, I need to get the basic add/edit
functionality working as soon as humanly possible so that I can do
some HCI evaluation on the UI. Once that is done, I ca
Also, in PHP related advice, *ereg *and *split* are deprecated. if you
turned on your PHP errors and use E_ALL, it will throw back errors.
Rick
On Sun, Dec 6, 2009 at 6:36 PM, Rick Waldron wrote:
> Actually, my reasoning for that response was a fluke, so ignore it
>
>
> the problem: you're cal
Actually, my reasoning for that response was a fluke, so ignore it
the problem: you're calling "*this*.deleteform()"
I noticed you use all kinds of alert()'s for debugging... i'd recommend
learning firebug and making it your very best friend. Firebug told me that "
*this*" IS NOT *pb_editloc*, i
The problem is that when the dom is loaded... there is no such thing as
"pb_add_location".
On Sun, Dec 6, 2009 at 5:09 PM, T.J. Crowder wrote:
> Hi,
>
> > Just tried onComplete - no joy
>
> You probably don't want onComplete. onComplete is called regardless of
> whether the request was succ
Hi,
> Just tried onComplete - no joy
You probably don't want onComplete. onComplete is called regardless of
whether the request was successful. You probably want onSuccess and
onFailure, doing different things.
-- T.J.
On Dec 6, 7:25 pm, evilC wrote:
> Just tried onComplete - no joy
>
> I uplo
Hi,
> Once the AJAX reply comes back that the data was updated, I want to
> destroy the form. But it won't let me. I guess for a similar reason to
> my explanation above - the button started the call, and it is in the
> response code that I wish to destroy it, so it technically hasn't
> finished y
Just tried onComplete - no joy
I uploaded a copy to http://www.evilc.com/pb/pb.zip, should anyone be
so kind as to be inclined to take a look at it.
If you have a localhost LAMP server (I use XAMPP) with default sql
account of root/ , it will work without any modifications -
just create a databas
I have put up a version on my web server.
http://www.evilc.com/pb
The JS file is at http://www.evilc.com/pb/placebook.js - the code you
are interested in will be in the pb_editloc object near the end.
The HTML of the form is at
http://www.evilc.com/pb/templates/pb_add_location.html
(the php grab
Instead of onSuccess, try using onComplete...
-- Sent from my Palm Prē
evilC wrote:
Thanks TJ, I tried to make a self-contained version, so I ripped out
prototype and did the same thing with object literals, and I still had
issues, so clearly it wasnt prototype.
In the end I figured out that t
Thanks TJ, I tried to make a self-contained version, so I ripped out
prototype and did the same thing with object literals, and I still had
issues, so clearly it wasnt prototype.
In the end I figured out that the button which fired off the AJAX
request (ie the "Submit" button) was inside a form (I
Hi,
> is prototype broken?
No, I use Ajax functions within classes all the time.
> however, if you encapsulate the code inside a class:
>
> var myclass = Class.create({
>
>
> });
If I "cut and paste exact same code into here" I get this:
> var myclass = Class.create({
> new Ajax.Reque
18 matches
Mail list logo