LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 11-09-2014, 02:18 PM   #1
manolakis
Member
 
Registered: Nov 2006
Distribution: xubuntu
Posts: 464

Rep: Reputation: 37
Slide data javascript


Hello everybody,

I want to make a web page with a table where a user can move data between table cells. Each table cell will contain a form. I also want to include some slide effects from js libraries like jQuery, Angular or Dojo. I will be really obliged to anyone who can tell me how is it possible to define the mouseClicked(MouseEvent e), and mouseReleased(MouseEvent e) methods and also how we attach the listener to the table cells.

Thank you.
 
Old 11-09-2014, 07:09 PM   #2
sag47
Senior Member
 
Registered: Sep 2009
Location: Raleigh, NC
Distribution: Ubuntu, PopOS, Raspbian
Posts: 1,899
Blog Entries: 36

Rep: Reputation: 477Reputation: 477Reputation: 477Reputation: 477Reputation: 477
The proper forum etiquette is to produce what code you have so far. Then people usually chime in with tips on how to improve it to get you where you're going.
 
Old 11-10-2014, 07:31 AM   #3
manolakis
Member
 
Registered: Nov 2006
Distribution: xubuntu
Posts: 464

Original Poster
Rep: Reputation: 37
Well, I do not really know how much the code would help. Just try to imagine an ordinary table like the following:
Quote:
<table id="myTable">
<tr>
<td>Jill</td>
<td>Smith</td>
</tr>
<tr>
<td>Eve</td>
<td>Jackson</td>
</tr>
</table>
I really do not know how to write the rest javascript function (adding the listeners for instance).

Thank you.
 
Old 11-10-2014, 07:50 PM   #4
sag47
Senior Member
 
Registered: Sep 2009
Location: Raleigh, NC
Distribution: Ubuntu, PopOS, Raspbian
Posts: 1,899
Blog Entries: 36

Rep: Reputation: 477Reputation: 477Reputation: 477Reputation: 477Reputation: 477
Perhaps you should start with an introductory course for JavaScript such as the free codeacademy JavaScript course. That will introduce you to some of the fundamentals behind writing JavaScript. The JS tutorial at w3schools is pretty solid as well which will introduce you to how JavaScript interacts with the HTML DOM.

Once you've whet your appetite with learning how JavaScript works then it would be good to start reading some of the API Documentation in the library of your choice (you asked about JQuery so check out the docs there). There's also the JQuery UI which could produce for you a JS based user interface for something a little dynamic.

Once you've learned to code some JS, how it interacts with the DOM, and understand where you might need to go with your JS library (JQuery) then now would be a good time to introduce yourself to test driven development (google for it for more example documents on TDD). I recommend using Jasmine for unit testing your JavaScript but there are a number of unit testing frameworks for JS in this stackoverflow post.

Once you've started writing your code you should keep tracking iterations of the code using source control management. I highly recommend you use Git. The Git website contains numerous resources for learning SCM and if you like I recorded an advanced training video on Git once you get past the basics and want a deeper understanding of the tool.

Throughout this process feel free to post updates on your progress for feedback from myself and others in this thread. I highly recommend throwing your code up on github.com, gitlab.com, or any git hosting provider so that the source is available and the LQ community can help contribute to your progress.

If this answer is not to your liking and you just, "Want it done." by somebody else then perhaps a hobbyist forum is not the appropriate place for your query. Feel free to reach out to me if you require this type of consulting and I'll let you know my rate. Advice I give away for free.

SAM

Last edited by sag47; 11-10-2014 at 07:53 PM.
 
  


Reply



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

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Javascript/AJAX - TABS - href info based on function() calls - HOW TO GET DATA??? pizzipie Programming 3 06-16-2015 09:00 PM
Javascript:Combobox creation taking data from DB On button click Manashi Programming 5 03-12-2015 02:38 AM
javascript: Which is the easiest way to pass data between servers? Felipe Programming 1 09-18-2011 05:10 AM
Javascript for writing data to file Dyuri Programming 2 10-16-2008 02:55 PM
Ubuntu Edgy/Firefox 2/Javascript - Firefox closes accessing websites with Javascript Interdictor Ubuntu 8 11-02-2006 11:58 AM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 09:57 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration