[Proto-Scripty] Re: Trouble getting started with Prototype

2009-06-01 Thread ColinFine



On May 29, 4:04 pm, Alex arw...@mst.edu wrote:
 Thank you everyone.

 The problem was the absense of the /script.

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

2009-05-29 Thread Chris Sansom

At 22:10 -0700 28/5/09, Alex wrote:
SCRIPT type=text/javascript src=javascriptPrototype.js /

...

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:

SCRIPT type=text/javascript src=prototype.js /

...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
-~--~~~~--~~--~--~---



[Proto-Scripty] Re: Trouble getting started with Prototype

2009-05-29 Thread Alex

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

2009-05-29 Thread Russell Keith

It appears the script tag must have a closing tag /script.

So this SCRIPT type=text/javascript src=javascriptPrototype.js /

Should be this SCRIPT type=text/javascript
src=javascriptPrototype.js/script

 
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:

SCRIPT type=text/javascript src=javascriptPrototype.js /
SCRIPT type=text/javascript
function editInfo()
{
$('box').remove();
// A Bunch of other stuff goes here
after the fact.
}
/SCRIPT

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

2009-05-29 Thread Mitchell McCulloch

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 script tag must have a closing tag /script.

So this SCRIPT type=text/javascript src=javascriptPrototype.js /

Should be this SCRIPT type=text/javascript
src=javascriptPrototype.js/script

 
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:

SCRIPT type=text/javascript src=javascriptPrototype.js /
SCRIPT type=text/javascript
function editInfo()
{
$('box').remove();
// A Bunch of other stuff goes here
after the fact.
}
/SCRIPT

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

2009-05-29 Thread Alex

Thank you everyone.

The problem was the absense of the /script.


--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---