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 Chriss Miller 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: *

  • Users: maharg
  • Content: Threads
  • Order by date
  1. 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...
  2. 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...
  3. 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...
  4. 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...
  5. 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...
  6. 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
  7. 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!
  8. maharg

    jQuery datepicker result to PHP variable

    Hi I'd like to use the really neat jQuery DataRange picker described at http://www.foxrunsoftware.net/articles/javascript/date-range-picker-similar-to-google-analytics/ but am struggling to understand how to transfer the chosen two dates into 2 variables in PHP, so that I can get them into a...
  9. maharg

    SVG Cross browser issues

    Hi, I have a simple pie chart rendered in SVG which looks fine in Firefox 15, but has a border and missing image icon in IE9, and a strange background in Chrome 22.0.1229.94 m. Please see http://www.london-electronics.com/johnston7/graph_test.php Can anyone suggest a remedy for this? I...
  10. maharg

    Trying to password protect page and its individual ajax includes.

    Hi I have a page which uses sessions for user login, because the pages are commercially sensitive. At the top of each page I have... <?php session_start(); if (isset($_SESSION['logged']) && $_SESSION['logged'] == 1) { //Do Nothing } else { $redirect = $_SERVER['PHP_SELF']...
  11. maharg

    While loop - last result trim

    Hi I am trying to create data for a Google Graphs application, taking data from MySQL For example, if my data contains 6 lines of values, I need to create my data for the graph as follows ... ['Time from Andy', Graph value, Down Time], ['Time from Andy', Graph value, Down Time], ['Time from...
  12. maharg

    Background fixed ... not fixed in IE

    Hi I am struggling to get IE9 to play ball. Please see http://www.london-electronics.com On the right hand side are a group of scroll boxes with grey tabs. In Firefox, you will see an internal shadow in each box, created by a background inmage. In IE, the background moves as you scroll, it...
  13. maharg

    Response to sender of a $POST

    Hi I am trying to develop an application where I parse data received from a POST. The POST is happening every 10 seconds approx, with a text data packet of around 10kb. I parse the data and save it to a dB. If the data is received malformed, or if for any reason I want the sender to resubmit...
  14. maharg

    PHP code in a string variable

    Hi, I am trying to create a string variable with some php code in it , which will be used multiple times in a document. This is so if I want to edit that code, I only need edit that one variable. For example, I would simply like to put the following code snippet... fprintf('%01.2f', $price)...
  15. maharg

    Error concatenating a string containing php

    Hi I have a code which is basically a form containing a button, which has a value of $w, which I create in a loop, to make several copies of the form, each with a different value... Basic form... <tr> <td style="background:transparent"> <form name="input" method="post" action="<?php echo...
  16. maharg

    Variables in sorting arrays

    Hi I have a sort script which works fine for arrays. A sample array... $somearray = array ( "applicant1"=>array( "firstname" => "Graham", "lastname" => "Laming", "sex" => "male", "age" => "50" ), "applicant2"=>array( "firstname" => "Hanna", "lastname" => "Laming", "sex" =>...
  17. maharg

    IE8 css bug?

    Hi Folks, I'm battling to find why my code won't render properly in IE8, so wonder if you can spot my error? Please see http://www.london-electronics.com/upper_navigation_test.htm Compare the view in Firefox and IE8, and you will see a white line in IE8, separating the header from the rest of...
  18. maharg

    Firefox continues loading, IE throws error

    Hi I am struggling to find an error in my simple script. The script works as intended in Firefox 3.6.4 , but the tab always says "loading" In IE8 I get a permissions error, and no result. I've spent 2 days tryng to isolate the bug, and would be really grateful if someone could show me where...
  19. maharg

    True ranking in mySQL

    Hi I'm trying to create a mySQL table which internally calculates true ranking. See below ... Name Time Rank mike 20.5 1 fred 20.9 2 dave 21.5 =3 stan 21.5 =3 eddy 21.5 =3 paul 22.3 6 mick 23.7 7 vick 24.6 =8 olly 24.6 =8 dick 25.8 10 I can do this...
  20. maharg

    Horrendously slow loading page

    Hi I'm making a page for my cycle racing club which shuffles our club riders' names, alongside a fixed list of professional riders. It should look like this screenshot... http://www.graham-laming.com/randompairing.gif The page is at... http://www.graham-laming.com/randompairing.htm The page...

Part and Inventory Search

Back
Top