Geekzone: technology news, blogs, forums
Guest
Welcome Guest.
You haven't logged in yet. If you don't have an account you can register now.




243 posts

Master Geek


# 142950 29-Mar-2014 21:37
Send private message

Hi

I have HTML but no coding experience but have decided to learn in order to accomplish a personal project I have a need for. I need to take an XML feed and turn it into an HTML table on a webpage (could be local as it is just for me).  I also need to be able to add some code to hide certain rows of the table based on user specified paramours (e.g. if user selects 'x' it will hide row beginning x).

I'm willing to learn some coding and have started beginners courses in python and javascript but I have absolutely no idea how to actually implement this thing!

I'm not sure exactly what question to ask here, but could someone advise on what I need to learn and also what the 'mechanics' of this will be? Is it simply a case of doing it all in javascript in the actual web page? Apparently I might need XSLT to convert the XML, but where do I actually put it? 

I've learnt some python syntax etc, but have no idea how you use python to create a webpage.

I'm not asking for anything detailed here, I just need a clue about what framework I will use to achieve this.

Sorry this is so vague, but as I say I don't really the question to ask - I just need pointing in the right direction.




My EPL football websites: Get the results but hide the score of your team at HidetheScore.net. Compare league positions with wage bills at RealPremierLeague.net.


Create new topic
350 posts

Ultimate Geek

Trusted

  # 1015248 29-Mar-2014 23:42
Send private message

I will teach you rule number 1 of programming "google it"

hit number one for "jquery xml table"
http://www.daigo.org/2010/08/simple-xml-to-html-table-using-jquery/





 




243 posts

Master Geek


  # 1015371 30-Mar-2014 13:18
Send private message

Ha! Thanks.i had certainly got to the 'have you been trying I this for over half an hour' box!

Your answer has also helped me refine my question: when you learn how to write the code to do something, where the bloody hell does it go?!

Your javascript solution is perfect for a noob such as me.




My EPL football websites: Get the results but hide the score of your team at HidetheScore.net. Compare league positions with wage bills at RealPremierLeague.net.


 
 
 
 


1708 posts

Uber Geek

Subscriber

  # 1015382 30-Mar-2014 13:52
Send private message

when you learn how to write the code to do something, where the bloody hell does it go?!



Languages require software to view and turn the code into useful user output.  Where the code goes depends on what type of language it is.  For javascript the decompiler is in the browser, so your internet explorer or google chrome reads the code and outputs the result.

To run it locally you could save it in any folder.  You can build it inline. ie place the javascript with the html page, or you can call the javascript from its own file .js within the html page

350 posts

Ultimate Geek

Trusted

  # 1015408 30-Mar-2014 14:32
Send private message

aboylikedave: Ha! Thanks.i had certainly got to the 'have you been trying I this for over half an hour' box!

Your answer has also helped me refine my question: when you learn how to write the code to do something, where the bloody hell does it go?!

Your javascript solution is perfect for a noob such as me.


For javascript just put it in an .html file and open it in a browser, use firefox or chrome the development tools are better




 


2404 posts

Uber Geek

Trusted

  # 1015417 30-Mar-2014 15:39
Send private message

Yes a XSLT Stylesheet is the easiest.

https://developer.mozilla.org/en-US/docs/XSLT_in_Gecko/Basic_Example

You put at the top of the XML file what style sheet to use and you view the XML file via a web browser. It will display the XML however you style the template.







Create new topic



Twitter and LinkedIn »



Follow us to receive Twitter updates when new discussions are posted in our forums:



Follow us to receive Twitter updates when news items and blogs are posted in our frontpage:



Follow us to receive Twitter updates when tech item prices are listed in our price comparison site:





News »

Vodafone integrates eSIM into device and wearable roadmap
Posted 17-Jan-2020 09:45


Do you need this camera app? Group investigates privacy implications
Posted 16-Jan-2020 03:30


JBL launches headphones range designed for gaming
Posted 13-Jan-2020 09:59


Withings introduces ScanWatch wearable combining ECG and sleep apnea detection
Posted 9-Jan-2020 18:34


NZ Police releases public app
Posted 8-Jan-2020 11:43


Suunto 7 combine sports and smart features on new smartwatch generation
Posted 7-Jan-2020 16:06


Intel brings innovation with technology spanning the cloud, network, edge and PC
Posted 7-Jan-2020 15:54


AMD announces high performance desktop and ultrathin laptop processors
Posted 7-Jan-2020 15:42


AMD unveils four new desktop and mobile GPUs including AMD Radeon RX 5600
Posted 7-Jan-2020 15:32


Consolidation in video streaming market with Spark selling Lightbox to Sky
Posted 19-Dec-2019 09:09


Intel introduces cryogenic control chip to enable quantum computers
Posted 10-Dec-2019 21:32


Vodafone 5G service live in four cities
Posted 10-Dec-2019 08:30


Samsung Galaxy Fold now available in New Zealand
Posted 6-Dec-2019 00:01


NZ company oDocs awarded US$ 100,000 Dubai World Expo grant
Posted 5-Dec-2019 16:00


New Zealand Rugby Selects AWS-Powered Analytics for Deeper Game Insights
Posted 5-Dec-2019 11:33



Geekzone Live »

Try automatic live updates from Geekzone directly in your browser, without refreshing the page, with Geekzone Live now.


Support Geekzone »

Our community of supporters help make Geekzone possible. Click the button below to join them.

Support Geezone on PressPatron



Are you subscribed to our RSS feed? You can download the latest headlines and summaries from our stories directly to your computer or smartphone by using a feed reader.

Alternatively, you can receive a daily email with Geekzone updates.