home hardware prices news articles forums photos user reviews
Go Back   Tech Support Forums - TechIMO.com > PC Hardware and Tech > Webmastering and Programming
Join TechIMO for Free!
Register Blogs FAQ Members List Calendar Search Today's Posts Mark Forums Read
Reply Get bargains at  »  Dealighted.com
 
Thread Tools
Currently Active Users: 2817
Discussions: 188,381, Posts: 2,243,469, Members: 232,609
Old October 28th, 2008, 10:56 PM   Digg it!   #1 (permalink)
Junior Member
 
Join Date: Sep 2008
Posts: 18
NEED HELP: Javascript and XML

So here's the idea. I'm a college age student is is HORRIBLE at keeping notes, not so great at turning in homework... at all... that's not the point. I'm not organized, moving on...

Point is, any tool that can help me keep track of information, dates, etc. would be great. I'm making a few programs for that--an organizer in Java and a text editor (for web based languages) in VB. I'm also making a web site--stored on a flash drive or my laptop--to keep track of notes.

First I was going to try making it with just a bunch of Javascript arrays. That would work, but not as well as I'd like it to... actually it'd create more work for me, negating the reason for making it. I mean adding data, sure, but every time I have to add a function, an array, append existing arrays, etc.

Then I thought of XML. It's useful, just not as widely supported. I never really bothered to look into much. I can make the xml documents and stylesheets, I just don't know how to get data from an xml document to work with javascript. I haven't really looked too hard, but I have to leave for work. I won't have any time to work on this for a while, so any help would be greatly appreciated. Even if it's just how to get the data from an xml document to a script... actually that would be amazing and I'd just have to kiss you (and then wipe my mouth off in disgust).

Page is rather simple. It's a site completely in DHTML (fancy word for one html file with a lot of information and very little space lol). Links on the left, content on the right. When the page loads I need the links to update themselves automatically. I'd like it to be alpha-sorted, but I can see where that MAY become an issue.

One thing I'm set on is that the links will update themselves automatically. I'll email the source to anyone requesting this for themselves as I think it'd be a nice way to keep everything organized. Need to study for a test? No problem, all your notes are conveniently stored in one folder, 3 or 4 files (.html, .xml, .xls/css, .js, etc.).

Simple code like:

Code:
// Here it is you idiot ^.^
var parent = BLARGPARENT;
is really all I need :-)

I'm sorry if you guys see this as a waste of time, I'm just really wanting to make this quickly so I can begin using it ASAP!!!

ahmorrow is offline   Reply With Quote
Old October 28th, 2008, 10:59 PM     #2 (permalink)
Junior Member
 
Join Date: Sep 2008
Posts: 18
P.S. I'm also looking for a roommate... bah, nevermind... I'll go do craigslist for that lol.

Seriously though, thank you guys for your help ahead of time... cause I know you are going to help. Right? ... right? please?

T.T

I'm begging you!!! *gets down on hands and knees* PLEASE!!! For the love of all that is holy!!!

I'll leave you guys alone now... as you can tell, bed time for me.

-Andrew

ahmorrow is offline   Reply With Quote
Old November 1st, 2008, 07:46 PM     #3 (permalink)
Junior Member
 
Join Date: Sep 2008
Posts: 18
Come on guys, someone has to know something about it.

ahmorrow is offline   Reply With Quote
Old November 1st, 2008, 09:20 PM     #4 (permalink)
Member
 
Join Date: Oct 2003
Posts: 255
your probably better off using xml and xslt

you are probably better off using xml and xslt, or ASP.NET
I would personally use ASP.NET ....but here is an example with just javascript using dom.

Code:
<cameras>
 <make>Nikon</make>
 <price>599</price>

<make>Sony</make>
<price>199</price>

</cameras>


<script type="Text/javascript">
var xmlDoc=new ActiveXObject("Microsoft.XMLDOM")

xmlDoc.async="false";
xmlDoc.load("simple.xml");

\\Then  you can load the elements throught the following:
xmlDoc.documentElement.nodeName
xmlDoc.getElementbyTagname("price");
</script>
amtrac24 is offline   Reply With Quote
Old November 2nd, 2008, 03:28 PM     #5 (permalink)
Ultimate Member
 
Rootstonian's Avatar
 
Join Date: Mar 2005
Location: Out of my mind
Posts: 2,792
Send a message via AIM to Rootstonian
Get a calendar. Record your classes on tape/digitally. Or, on a whim...just WRITE IT DOWN! rofl
Rootstonian is online now   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Posting Rules
You may post new threads
You may post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Need help converting XML file to another XML file.. sulusulu General Tech Discussion 0 April 20th, 2007 06:19 PM
XML Help, Please! -5H4K- General Tech Discussion 1 January 12th, 2006 01:52 PM
XML Help UpYourz Webmastering and Programming 8 October 19th, 2004 11:08 PM
HTML: How to? XML? Other ... Brangwen Graphic Design and Digital Photography 1 October 9th, 2003 03:29 PM
XML files ribster Technical Support 1 March 10th, 2003 08:40 AM

Most Active Discussions
Is It Just Me? (2886)
The United States Debt (20)
Looks like Burris will get his Sena.. (8)
I think I just killed my computer w.. (24)
Upgrading RAM (5)
Folderchat Weekday thread (439)
Antec 300 bulk purchase? (11)
Worth the upgrade?? (14)
Help with an Ati Radeon HD 4850 512.. (25)
Recent Discussions
2nd video card (0)
RCA 52Inch HDTV wont turn on (1)
Building a gaming computer advi.. (1)
Best digital camera for under 2.. (14)
Help with an Ati Radeon HD 4850.. (25)
Install Problem for Windows Def.. (0)
New Build ( Finally ) (1)
dual monitors wont boot (0)
Folderchat Weekday thread (439)
Blackberry Storm, Gears of War .. (1)
Core 2 Quad Q9550 system (3)
COWBOOM Ripoff! Used Laptop w/$.. (4)


All times are GMT -4. The time now is 09:00 PM.
TechIMO Copyright 2008 All Enthusiast, Inc.



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28