Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  1. maharg

    Return beginning and ending coordinates of a mouse drag

    Thanks jpadie, now works on all browsers I have. May I ask you to exmpain the purpose of the inCapture variable? Thanks Graham
  2. maharg

    clientX events not working in FF

    Thanks You! all working great now! <!doctype html> <html> <head> <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"></script> </head> <body> <div style="width:1000px; height:500px; background-color:#dddddd"></div> <script> $("div") .mousedown(function(event) {...
  3. maharg

    show exported data as an chart

    Hi Intose, If you want simple, this is a system I came up with a while back, just scale your data values into the height parameter. Tweak the width and colours as you wish. Extend to as many columns and as may stack levels as needed. You can add <title> or <alt> tags in the divs so the user...
  4. maharg

    clientX events not working in FF

    Hi folks, I am having no joy making this simple mouse event script work in FF. If anyone could give me a clue what I need to do do make it compat with most modern browsers I'd be very grateful. Thanks, Graham <!doctype html> <html> <head> <script...
  5. maharg

    Return beginning and ending coordinates of a mouse drag

    Many thanks jpadie, This is what I came up with ... <!doctype html> <html> <head> <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"></script> </head> <body> <div style="width:1000px; height:500px; background-color:#dddddd"></div> <script> $("div")...
  6. maharg

    Return beginning and ending coordinates of a mouse drag

    Hi I have built a simple css based charting system and I want to be able to drag the mouse over a certain area, get the beginning and ending X and Y co-ordinates, so that I can re-draw the graph for the selected region the mouse was dragged over. All I need is the X and Y co ordinates when the...
  7. maharg

    Inverse of UNION results

    Looking good! Many thanks indeed both, much appreciated! Graham
  8. maharg

    Inverse of UNION results

    Hi jpadie, Many thanks for your quick response! I have tried the following - slight difference in table names - but no output evident. I am currently getting the data from individual tables for event_1 and event_2 as they are legacy and they have a lot of historic data in them I have a couple...
  9. maharg

    Inverse of UNION results

    Hi jpadie, They are just seconds, ultimately I will use unix timestamp. In the examples above, my expected output is :- 1 to 3 10 to 17 26 to 33 47 to 49 50 onwards Regards, Graham
  10. maharg

    Inverse of UNION results

    Hi Folks I have 2 tables, which show time a particular event was activated, and time that event was cleared. event_1 id activated cleared 1 3 9 2 19 26 3 35 46 and event_2 id activated cleared 1 5 10 2 17 22 3 33 47 4 49 50 I want to find the bands of time that...
  11. maharg

    Calculating total time for occurrences, within a time band

    Many thanks both, much better!
  12. maharg

    Calculating total time for occurrences, within a time band

    Hi, I wonder if you can help steer me in the right direction. I have a MySQL table which shows when a latching pushbutton was pressed and when it was released, in unix time... `id`, `pressed`, `released` 128, 1389608227, 1389608232 129, 1389608352, 1389608559 130, 1389608794, 1389608871 131...
  13. maharg

    Concatenating results for equal conditions

    Phenomenal, many thanks!
  14. maharg

    Not Rendering in IE

    Thanks folks, I have IE8.
  15. maharg

    Concatenating results for equal conditions

    Hi folks, I'm struggling to formulate a solution to this simple little task... foreach($db->query('SELECT zip, name FROM memberrecords ORDER BY zip ASC')as $record) { $zip=$record['zip']; $name=$record['name']; echo $zip."=".$name."<br>".PHP_EOL; } If I have 2 or more zip codes the same, I'd...
  16. maharg

    Hyperlinks: CSS Pseudo Selectors and Hyperlinked Images and Other Non-Textual Content

    Hi JD Try adding border="0" in the image tag, thus <img src="http://mywebsite.com/image/picture.png" style="margin: 20px 0;" border="0"> Regards Graham
  17. maharg

    Not Rendering in IE

    Hi folks I have a js gauge which renders fine in Firefox but nothing in IE Been tearing my hair out trying different fiddles, to no avail. The page is at http://www.london-electronics.com/prod.php Thanks in anticipation for any pointers! Graham
  18. maharg

    Split string into individual characters

    Thank you! Very useful indeed and clearly explained.
  19. maharg

    Split string into individual characters

    Many thanks indeed for your help! Not homework, I assure you! I am a 52 year old, long out of the world of school/college, simply seeking advice on the preferred method. Best regards Graham Laming
  20. maharg

    Split string into individual characters

    Hi I'm trying to split a string of variable length into its individual component characters and am stuck. For example 1234de would be given as 1 2 3 4 d e Any guidance would be gratefully received! Thanks!

Part and Inventory Search

Back
Top