[Proto-Scripty] Re: Trouble getting started with Prototype
On May 29, 4:04 pm, Alex wrote: > Thank you everyone. > > The problem was the absense of the . It's a common but wrong assumption that you can use the /> notation for any empty element. The XHTML specification allows it only for elements which may not have any content (such as HR, BR and IMG). If you try and use if for elements which could have comment but don't, the results are unpredictable, and depend on the browser. It is a good idea to avoid doing this. --~--~-~--~~~---~--~~ 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 unsubscribe from this group, send email to prototype-scriptaculous+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/prototype-scriptaculous?hl=en -~--~~~~--~~--~--~---
[Proto-Scripty] Re: Trouble getting started with Prototype
Thank you everyone. The problem was the absense of the . --~--~-~--~~~---~--~~ 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 unsubscribe from this group, send email to prototype-scriptaculous+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/prototype-scriptaculous?hl=en -~--~~~~--~~--~--~---
[Proto-Scripty] Re: Trouble getting started with Prototype
I'm going to make a note not to reply to anything until I've had my morning coffee from now on. Two oversights in 5 minutes! ;) -Original Message- From: prototype-scriptaculous@googlegroups.com [mailto:prototype-scriptacul...@googlegroups.com] On Behalf Of Chris Sansom Sent: May 29, 2009 10:48 AM To: prototype-scriptaculous@googlegroups.com Subject: [Proto-Scripty] Trouble getting started with Prototype At 10:01 -0400 29/5/09, Mitchell McCulloch wrote: >Ah! I didn't look too closely at that I guess, whoops. Indeed that should >solve the problem for Chris. No problem for me - at least, not /that/ problem. :-) I was the one who suggested he had the filename wrong when he didn't. The original problem was Alex's, and I hadn't noticed the lack of a either. I guess it may depend on how forgiving the browser is, but certainly if I remove it from one of my applications Firefox 3 doesn't like it. Could well be the answer then. -- Cheers... Chris Highway 57 Web Development -- http://highway57.co.uk/ A double negative is strictly a no-no --~--~-~--~~~---~--~~ 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 unsubscribe from this group, send email to prototype-scriptaculous+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/prototype-scriptaculous?hl=en -~--~~~~--~~--~--~---
[Proto-Scripty] Re: Trouble getting started with Prototype
Ah! I didn't look too closely at that I guess, whoops. Indeed that should solve the problem for Chris. -Original Message- From: prototype-scriptaculous@googlegroups.com [mailto:prototype-scriptacul...@googlegroups.com] On Behalf Of Russell Keith Sent: May 29, 2009 9:41 AM To: prototype-scriptaculous@googlegroups.com Subject: [Proto-Scripty] Re: Trouble getting started with Prototype It appears the tag must have a closing tag . So this Should be this Russell -Original Message- From: prototype-scriptaculous@googlegroups.com [mailto:prototype-scriptacul...@googlegroups.com] On Behalf Of Alex Sent: Friday, May 29, 2009 12:11 AM To: Prototype & script.aculo.us Subject: [Proto-Scripty] Trouble getting started with Prototype Hey, I'm new to Javascript but not to programming. I decided to use prototype because of the helpful functions it appeared to offer. Here is what I have in a nutshell: function editInfo() { $('box').remove(); // A Bunch of other stuff goes here after the fact. } The Prototype functions are in javascriptPrototype.js. I am trying to remove (or delete the contents of if someone has a better idea) the div element with id="box". I get an error everytime in IE 7. Anyone have any tips or suggestions? Thanks. --~--~-~--~~~---~--~~ 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 unsubscribe from this group, send email to prototype-scriptaculous+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/prototype-scriptaculous?hl=en -~--~~~~--~~--~--~---
[Proto-Scripty] Re: Trouble getting started with Prototype
It appears the tag must have a closing tag . So this Should be this Russell -Original Message- From: prototype-scriptaculous@googlegroups.com [mailto:prototype-scriptacul...@googlegroups.com] On Behalf Of Alex Sent: Friday, May 29, 2009 12:11 AM To: Prototype & script.aculo.us Subject: [Proto-Scripty] Trouble getting started with Prototype Hey, I'm new to Javascript but not to programming. I decided to use prototype because of the helpful functions it appeared to offer. Here is what I have in a nutshell: function editInfo() { $('box').remove(); // A Bunch of other stuff goes here after the fact. } The Prototype functions are in javascriptPrototype.js. I am trying to remove (or delete the contents of if someone has a better idea) the div element with id="box". I get an error everytime in IE 7. Anyone have any tips or suggestions? Thanks. --~--~-~--~~~---~--~~ 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 unsubscribe from this group, send email to prototype-scriptaculous+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/prototype-scriptaculous?hl=en -~--~~~~--~~--~--~---
[Proto-Scripty] Re: Trouble getting started with Prototype
Alex, I retraced your steps in downloading and renaming prototype, and it still seems to work fine for me, so that doesn't appear to be the issue. Is the error message somewhat helpful to be posted? Also, have you tried using other prototype functions? If not, I'd do some simple error checking (alert $('box').id or something) just to make sure your program is getting access to the library. Never used remove() or anything, but it seems like the code part is fine... Mitch -Original Message- From: prototype-scriptaculous@googlegroups.com [mailto:prototype-scriptacul...@googlegroups.com] On Behalf Of Alex Sent: May 29, 2009 9:07 AM To: Prototype & script.aculo.us Subject: [Proto-Scripty] Re: Trouble getting started with Prototype Chris, What I downloaded from Prototype was titled: "prototype-1.6.0.3.js". I renamed that file to "javascriptPrototype.js" so that I could use it. I uploaded it into my directory. And from there I got to the question I had above. Does that clear anything up or help at all? Is there anything else I should have titled "prototype.js" ??? --~--~-~--~~~---~--~~ 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 unsubscribe from this group, send email to prototype-scriptaculous+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/prototype-scriptaculous?hl=en -~--~~~~--~~--~--~---
[Proto-Scripty] Re: Trouble getting started with Prototype
Chris, What I downloaded from Prototype was titled: "prototype-1.6.0.3.js". I renamed that file to "javascriptPrototype.js" so that I could use it. I uploaded it into my directory. And from there I got to the question I had above. Does that clear anything up or help at all? Is there anything else I should have titled "prototype.js" ??? --~--~-~--~~~---~--~~ 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 unsubscribe from this group, send email to prototype-scriptaculous+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/prototype-scriptaculous?hl=en -~--~~~~--~~--~--~---
[Proto-Scripty] Re: Trouble getting started with Prototype
At 22:10 -0700 28/5/09, Alex wrote: > ... >The Prototype functions are in javascriptPrototype.js. I am trying to >remove (or delete the contents of if someone has a better idea) the >div element with id="box". I get an error everytime in IE 7. > >Anyone have any tips or suggestions? Er, yes. The file is 'prototype.js', not 'javascriptPrototype.js', so try: ...unless, for some reason, you've renamed the file which of course you're perfectly at liberty to do... -- Cheers... Chris Highway 57 Web Development -- http://highway57.co.uk/ Jazz is not dead...it just smells funny. -- Frank Zappa --~--~-~--~~~---~--~~ 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 unsubscribe from this group, send email to prototype-scriptaculous+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/prototype-scriptaculous?hl=en -~--~~~~--~~--~--~---