Page 1 of 1 |
|
Posted: Thu, 26th Apr 2012 05:51 Post subject: Learning Javascript |
|
 |
I recently watched the Lynda course on Javascript essentials and i think i feel in love with it.
I love the way Simon Allardice presented it,i would love to move forward with it.
Now im planing to rewatch it several times, and take the Jquery course too.
But in the training video he said to go make something with it.
So my first question would be
1.Im planing to make a script for my website that will pull tables from various posts , and show them side by side in a page,dropdown menu,the whole works.
I think i got the ideea how to pull it off,you know give the tables ID's and pull them,but the part where i actually show them side by side on a fresh page,i thinking it would require AJAX and thats to early for me.
2.Where would i stop next ,what course do you guys recomend, i see Allardice has some books,but a video tutorial in the same way i think would be more lovely .
3.Should i learn Javascript on a more fundamental level and just work with Jquery,i see it has some neat functions and its easier to manipulate your website with it ?
My way of thinking is that im to fresh,the logic of the language i think i understand,but im guessing it goes beyond what the Lynda course teaches,i mean its called "essentials"
Any recomandations would be apreciated 
|
|
Back to top |
|
 |
garus
VIP Member
Posts: 34197
|
Posted: Thu, 26th Apr 2012 10:16 Post subject: |
|
 |
snip
Last edited by garus on Tue, 27th Aug 2024 21:28; edited 2 times in total
|
|
Back to top |
|
 |
|
Posted: Thu, 26th Apr 2012 10:24 Post subject: |
|
 |
4. If you can't load all tables at once from server side into your HTML, you'll basically have to use AJAX to get the data. (Is actually the nicer way to do this).
5. Don't fear AJAX if you are going to use jQuery.
6. You may need to think on how you are going to store comparable data. XML and JSON are both optimal candidates for a jquery/javascript approach.
*paul, your turn *
|
|
Back to top |
|
 |
|
Posted: Thu, 26th Apr 2012 11:25 Post subject: |
|
 |
Well,so this would be my pseudo code:
Visitor visits page,i need to display 2 dropdown list side by side for him
He picks 2 things from the lists to compare
Once he hits the compare button my script refreshes the page with 2 tables side by side
These 2 tables have allready been added and styled inside posts (in my wordpress site)
*brain mush*
|
|
Back to top |
|
 |
|
Posted: Thu, 26th Apr 2012 11:32 Post subject: |
|
 |
Edit : Yo check this out
I use Websimon Tables to make tables with info
I use ofcouse shortcodes to post tables into my posts.
Script :
Visitor selects 2 stuffs from 2 dropdown list
Clicks engage.
My script pulls the websimon shorcodes and displays them side by side,styled (float left,float left)
Profit ?
|
|
Back to top |
|
 |
garus
VIP Member
Posts: 34197
|
Posted: Thu, 26th Apr 2012 11:39 Post subject: |
|
 |
snip
Last edited by garus on Tue, 27th Aug 2024 21:28; edited 1 time in total
|
|
Back to top |
|
 |
|
Posted: Thu, 26th Apr 2012 19:36 Post subject: |
|
 |
garus wrote: | But you still need server side code that will return those matching tables and pass it to javascript. |
But my thinking is that i allready have the things i need to display in my DOM.
What if i displayed the 2 selected shortcodes in an iframe .
Again my logic is that i know what elements of the website i want to pull,so would pull them ,not necesarily in ajax mode.
But if i still need to work with the server,im guessing you mean output from files like XML.
I asume JS doesnt do output or iinput into files ?
|
|
Back to top |
|
 |
garus
VIP Member
Posts: 34197
|
Posted: Thu, 26th Apr 2012 19:39 Post subject: |
|
 |
snip
Last edited by garus on Tue, 27th Aug 2024 21:28; edited 1 time in total
|
|
Back to top |
|
 |
|
|
Back to top |
|
 |
garus
VIP Member
Posts: 34197
|
Posted: Thu, 26th Apr 2012 21:29 Post subject: |
|
 |
|
|
Back to top |
|
 |
Page 1 of 1 |
All times are GMT + 1 Hour |