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


 
 
 
 


1689 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

345 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




 


2386 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 »

Logitech introduces new Made for Google keyboard and mouse devices
Posted 16-Oct-2019 13:36


MATTR launches to accelerate decentralised identity
Posted 16-Oct-2019 10:28


Vodafone X-Squad powers up for customers
Posted 16-Oct-2019 08:15


D Link ANZ launches EXO Smart Mesh Wi Fi Routers with McAfee protection
Posted 15-Oct-2019 11:31


Major Japanese retailer partners with smart New Zealand technology IMAGR
Posted 14-Oct-2019 10:29


Ola pioneers one-time passcode feature to fight rideshare fraud
Posted 14-Oct-2019 10:24


Spark Sport new home of NZC matches from 2020
Posted 10-Oct-2019 09:59


Meet Nola, Noel Leeming's new digital employee
Posted 4-Oct-2019 08:07


Registrations for Sprout Accelerator open for 2020 season
Posted 4-Oct-2019 08:02


Teletrac Navman welcomes AI tech leader Jens Meggers as new President
Posted 4-Oct-2019 07:41


Vodafone makes voice of 4G (VoLTE) official
Posted 4-Oct-2019 07:36


2degrees Reaches Milestone of 100,000 Broadband Customers
Posted 1-Oct-2019 09:17


Nokia 1 Plus available in New Zealand from 2nd October
Posted 30-Sep-2019 17:46


Ola integrates Apple Pay as payment method in New Zealand
Posted 25-Sep-2019 09:51


Facebook Portal to land in New Zealand
Posted 19-Sep-2019 18:35



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.