Jump to content

mxbrainwrong

Members
  • Content Count

    6
  • Joined

  • Last visited

Community Reputation

0 Neutral

About mxbrainwrong

  • Rank
    Newbie

Previous Fields

  • Languages
    English, French, Tongues, Whalesong

Profile Information

  • Gender
    Female
  • Location
    London
  • Interests
    Writing, Forteana, Steam Punk Schtuff, Cardiacs, Swans, Siouxsie, Tolkien, Iain M Banks, Pratchett, Adams, Elbow, Florence, Radiohead, The Lake District, Thai Curries, Pubs, London History, Robert Rankin, The Mighty Boosh, Politics, Lighting my own f*rts etc etc Oh, and building them website thingies.
  1. Hi,Thanks so much for that. Sadly, I don't seem to be able to get it to work. The thumbs display but no joy when clicked. I've played around with removing the 'hide' command(s) and the full images display as before so I know that the function is being picked up on the page. I think that the problem may lie in the fact that both the thumbs and images are stored in an array which is taken from the database and so the html has to be dynamically generated using the display function (see below). I've applied your function to the output on this basis with the exception that the html is dynamically g
  2. Thank you for your answer - sorry if i seem 'odd' and thanks for taking the trouble to point it out. Okay - firstly, the reason (not that it's particularly relevant here) that the array is in that format is because it was taken from the database as such and that's the format I've been working with thus far. To change it now would mean rewriting a whole chunk of code and to be frank, after the sheer headache this project has given me along with deadlines pertaining to it means that is neither desirable or practical. Secondly - you were right about the click handler, I overlooked that. Still n
  3. Hi folksI'm trying to initiate a click event (and subsequent image fade in) when a user clicks on a thumbnail. That in itself isn't such a problem. The problem lies in the fact that the thumbnails are contained in an array and are displayed with an append within an each loop (see code below). I've gotten halfway there, the code below does initiate a fade in when a thumbnail is clicked - however, it fades in all the images as opposed to just the one relating to the thumbnail that is clicked on. I know this is because by the time the #test append happened all the images have loaded so it just di
  4. Okay, here is the problem, the background to it is a little bit lengthy but please bear with me as I think it's probably essential to getting to the root of it. I'm trying to design an on-site navigation system using straight javascript and jquery. The site is for a photographer who has a number of galleries of her images she wants to put up. These are displayed on the page as a series of thumbnails which are arranged in a grid (lets say 3 by 3 here for simplicity's sake). The idea is that these can either be displayed in order of size or in order of the date the gallery was updated. There are
  5. Please ignore my previous burblings. Solved by condensing the code as below: //Function to make arrays the same length function pruneArrays(sqlData1,sqlData2, coordinates){ for(i=(coordinates.length-sqlData1.length); i>0; i--){ coordinates.pop(coordinates); } var galDate = (populateArray(sqlData1, coordinates)); var galSize = (populateArray(sqlData2, coordinates)); return [galDate, galSize];} //Function to create date ordered array with coordinatesfunction populateArray (sqlData, coordinates){ for(i=0; i<sqlData.length; i++){ for(j=0; j<(sqlData.length-1
  6. Hi,Apologies if I'm doing something very obviously stupid here, I'm fairly new to this sort of thing. What I'm basically trying to do is crop a two dimensional array of coordinates to the same length as another array called from an sql database using php and then made useable in javascript via json_encode. The good news is that I've managed to accomplish this. The code below actually does this twice with the database information called in different orders so that I have two two-dimensional javascript arrays, each with an x and y coodinate tagged onto the end of each row. (For anyone who's inte
×
×
  • Create New...