inherit
2671
0
May 14, 2013 14:40:03 GMT -8
Peter
🐺
10,615
February 2002
peter3
|
Post by Peter on Jun 2, 2010 16:19:37 GMT -8
|
|
inherit
130228
0
Jul 11, 2024 19:19:59 GMT -8
Charles Stover
1,731
August 2008
gamechief
|
Post by Charles Stover on Jun 2, 2010 21:58:38 GMT -8
We should expand it. Hasn't been updated since 2006. I bet there's some nifty features that could be added.
EDIT: By the way, I've never used OOP in JavaScript. Is that really how you make classes? Just use functions? I thought it was { and }.
|
|
#00AF33
14306
0
1
Sept 8, 2023 8:54:17 GMT -8
Jordan
What is truth?
11,838
October 2003
jab2
|
Post by Jordan on Jun 3, 2010 10:26:51 GMT -8
If there are some features you would like to add I'd be willing to help out.
@classes: There is more than one way to create classes in Javascript, and I've found it best to use a combination of them. I personally use the method Peter used here when I'm basically creating a library of functions, and I use JSON when I need to group related data and functions together and only need one instance.
You have to create an instance of the class when you prototype it as you can see below. This allows you to create more than once instance as well which you cannot do with JSON.
var PBProfile = new PB_Profile();
JQuery is a good example of how to use classes.
|
|
inherit
97216
0
Nov 26, 2024 13:53:14 GMT -8
Bennett 🚀
Formerly iPokemon.
3,622
January 2007
catattack
iPokemon's Mini-Profile
|
Post by Bennett 🚀 on Jun 5, 2010 11:25:34 GMT -8
I would like to see textarea capabilities.. if possible.
|
|
inherit
153968
0
Nov 19, 2012 15:03:05 GMT -8
Thesealion
New Phone Who Dis?
4,124
April 2010
joemaggio
|
Post by Thesealion on Jun 30, 2010 13:49:43 GMT -8
so if i wrote a code with this it would start with
<script type="text/javascript" src="http://pixeldepth.net/proboards/profile/PB_Profile_lib.js">
|
|
inherit
97216
0
Nov 26, 2024 13:53:14 GMT -8
Bennett 🚀
Formerly iPokemon.
3,622
January 2007
catattack
iPokemon's Mini-Profile
|
Post by Bennett 🚀 on Jul 1, 2010 15:07:46 GMT -8
or <script type="text/javascript"><!-- do such and such; document.write('<script type="text/javascript" src="http://pixeldepth.net/proboards/profile/PB_Profile_lib.js"></script>'); //--></script>
|
|
inherit
17569
0
Aug 14, 2023 13:11:03 GMT -8
frufru
11,774
December 2003
frufru
|
Post by frufru on Jul 2, 2010 13:13:34 GMT -8
heh... you might want to re-check that
|
|
inherit
97216
0
Nov 26, 2024 13:53:14 GMT -8
Bennett 🚀
Formerly iPokemon.
3,622
January 2007
catattack
iPokemon's Mini-Profile
|
Post by Bennett 🚀 on Jul 2, 2010 14:27:30 GMT -8
That is what i had frufru :/
|
|
inherit
2671
0
May 14, 2013 14:40:03 GMT -8
Peter
🐺
10,615
February 2002
peter3
|
Post by Peter on Jul 2, 2010 15:24:49 GMT -8
That is what i had frufru :/ "When script or style data is the content of an element (SCRIPT and STYLE), the data begins immediately after the element start tag and ends at the first ETAGO ("</") delimiter followed by a name start character ([a-zA-Z]); note that this may not be the element's end tag. Authors should therefore escape "</" within the content. Escape mechanisms are specific to each scripting or style sheet language."www.w3.org/TR/html401/appendix/notes.html#notes-specifying-data
|
|
inherit
97216
0
Nov 26, 2024 13:53:14 GMT -8
Bennett 🚀
Formerly iPokemon.
3,622
January 2007
catattack
iPokemon's Mini-Profile
|
Post by Bennett 🚀 on Jul 2, 2010 16:36:30 GMT -8
Wait, what? This has always worked for me when I do remote files that need variables to run..
|
|
#00AF33
14306
0
1
Sept 8, 2023 8:54:17 GMT -8
Jordan
What is truth?
11,838
October 2003
jab2
|
Post by Jordan on Jul 2, 2010 18:40:49 GMT -8
'Authors should therefore escape "</" within the content.'
<\/script>
From the page posted by Peter:
<SCRIPT type="text/javascript"> document.write ("<EM>This won't work</EM>") </SCRIPT>
<SCRIPT type="text/javascript"> document.write ("<EM>This will work<\/EM>") </SCRIPT>
|
|
inherit
97216
0
Nov 26, 2024 13:53:14 GMT -8
Bennett 🚀
Formerly iPokemon.
3,622
January 2007
catattack
iPokemon's Mini-Profile
|
Post by Bennett 🚀 on Jul 3, 2010 8:35:56 GMT -8
Oh, xD I didn't know that o.o It works fine in my browser. It is smart x3
|
|