| Main Index · Search · Members |
| XML Character Data » Tutorial: chardata XML in javascript | View all threads |
|
MythicalJeff New Kid Posts: 22 |
Tutorial: chardata XML in javascript
#46190 - 02/03/08 09:09 AM |
Full page: Quote: Excerpt: Quote: I hope someone finds this of use... -------------------- Add MyDungeonRunner to your blog. |
|
Snarky Chicken Hawk Posts: 108 |
Re: Tutorial: chardata XML in javascript
#46194 - 02/03/08 09:28 AM |
I love that of the char viewers I know of, they're all done a different way. Demos uses XLS, You've got Javascript, I'm in php, and there's an ASP one floating around as well. /me thinks we need a community page with explanations of how it works and basic examples for each language. |
|
MythicalJeff New Kid Posts: 22 |
Re: Tutorial: chardata XML in javascript [Re: #46194]
#46270 - 02/04/08 12:31 AM |
Quote: That'd be awesome. I really tried to provide the basic (usable) code as well, so anyone working in javascript could get right to doing whatever they are wanting to do. Though it's a bit shy of being an actual library - I think providing open source libraries for different languages would really be ideal (in addition to explanations and examples). Plus there's some high-level info about the feed data itself that would useful regardless of what language a person is working with... thinking of things like which item slot number is which item slot, what the quality values correspond to in terms of item rarity and colors, etc. Not that it was real hard to figure that stuff out, but it was 30 to 45 minutes of time that we could save the next person. Maybe a page on http://www.thetownstons.com/? -------------------- Add MyDungeonRunner to your blog. |
|
Demosthenez Rabbit Puncher Posts: 72 |
Re: Tutorial: chardata XML in javascript [Re: #46270]
#46283 - 02/04/08 01:24 AM |
A link to each site from the townstons as well as an html code block for each source file would be a good start. |
|
Snarky Chicken Hawk Posts: 108 |
Re: Tutorial: chardata XML in javascript [Re: #46283]
#46289 - 02/04/08 06:21 AM |
I'm asking Crickette for a board on here, as I think it'd be best for the information to be very easy to find (not knocking TheTownstons here, that'd be a good backup). I've been pondering just what'll be needed for a php library since then it won't just be saving someone 30-45 minutes, but allow anyone with even very basic php knowledge to put one together. |
|
Legendrunner Fully Decked out Skittle Posts: 1,442 |
Re: Tutorial: chardata XML in javascript [Re: #46289]
#46294 - 02/04/08 09:03 AM |
I dont know exactly what you people want, but as long as its a good idea, Im up for it, just send me a PM with as many info as you want/requests, and Ill look what I can do ![]() |
|
Snarky Chicken Hawk Posts: 108 |
Re: Tutorial: chardata XML in javascript [Re: #46294]
#46323 - 02/04/08 04:54 PM |
We're getting a board on these forums, Crickette confirmed that to me today. While we can copy stuff over to TheTownstons if we want, lets build a good background on here first. |
|
WiFiHi Armchair Warrior Posts: 40 |
Re: Tutorial: chardata XML in javascript
#46351 - 02/04/08 07:36 PM |
Nice work. What would be cool is if the DR devs would provide an alternate output in json. It sure would make consuming the data easier than parsing xml. |
|
MythicalJeff New Kid Posts: 22 |
Re: Tutorial: chardata XML in javascript [Re: #46351]
#48353 - 02/17/08 06:54 AM |
Quote: Ta da! http://mythicalblog.com/dungeonrunners/json/?name=$CHARNAME Unfortunately, I am now sleepy, and I haven't actually checked-up on the data being there and right and so on. And that was a lot harder with php4 than it would have been with php5. Heh. -------------------- Add MyDungeonRunner to your blog. |
|
MythicalJeff New Kid Posts: 22 |
Re: Tutorial: chardata XML in javascript [Re: #48353]
#48533 - 02/18/08 12:08 PM |
|
MythicalJeff New Kid Posts: 22 |
Re: Tutorial: chardata XML in javascript [Re: #48533]
#48630 - 02/19/08 06:52 AM |
|
Ripper_McGee Karl's "bad cavern" spelunker Posts: 2,360 |
Re: Tutorial: chardata XML in javascript [Re: #48630]
#48637 - 02/19/08 09:53 AM |
That's good stuff, Jeff. Now, if only I had a blog to which I could add a gadget! Seriously, excellent work! |
|
thysam New Kid Posts: 20 |
Re: Tutorial: chardata XML in javascript [Re: #48630]
#48642 - 02/19/08 11:31 AM |
|
Theck Rabbit Puncher Posts: 86 |
Re: Tutorial: chardata XML in javascript [Re: #48630]
#50858 - 03/11/08 08:49 PM |
Hey there MythicalJeff, I have been trying for a week now to get your Javascript DRXML library working, and have had no success still. I copy and pasted the script verbatim, and added in the function that you posted to load the XML data right under the xmldoc variable. I have called the loadXML function and passed it the url, yet it still will not work. What am I doing wrong? I'd really appreciate it if you took a look at this, because I am not a complete whiz at this type of scripting, and of course Javascript doesn't tell you what you're doing wrong - it just stops working. :P Thanks! Code:
-------------------- "The ability to speak does not make you intelligent."
|
|
Blunder New Kid Posts: 1 |
Re: Tutorial: chardata XML in javascript [Re: #50858]
#57868 - 05/09/08 07:21 PM |
Hey Theck, I don't have much to go with to help you, except that you CAN get JavaScript to help with errors- wrap your code with a try...catch block, almost just like in Java. Code:
That's all there is to it. I hope this helps some. Edited by Blunder (05/09/08 07:23 PM) |
|
Theck Rabbit Puncher Posts: 86 |
Re: Tutorial: chardata XML in javascript [Re: #57868]
#57875 - 05/09/08 08:31 PM |
Thanks mate, that'll help - I eventually just gave up on using Javascript for this, and am now just using PHP since I find that alot easier to program in. I appreciate it though!-------------------- "The ability to speak does not make you intelligent."
|
| All times are US Eastern, the board's original clock (vBulletin-era times converted from GMT). |