Results 1 to 2 of 2

Thread: I don't have a clue!

  1. #1
    Join Date
    Feb 2008
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default I don't have a clue!

    OK, I'm a real NOB at this. Let me get that out of the way first off.

    I do have a question that I'm sure can be answered here.

    I want to take a graphic of a campus site map and put buttons on it. The buttons will represent locations/buildings where I have temperature sensing devices across the campus. The temperature sensing devices have built in web pages that display the temperature of their location so I can access each one by typing it's IP address in my browser address window. What I want is one graphic and when I mouse over the button I get a pop up of the temperature at that location. That way I won't have to go to each individual IP address for the information. The field temperature devices are XML capable if that helps.

    How and the heck do I do this and what tools do I use?

    Thanks

  2. #2
    Join Date
    Jun 2007
    Posts
    34
    Thanks
    0
    Thanked 1 Time in 1 Post

    Default

    Start with a text editor. (just kidding)
    No really. Start small building the pieces. Then work your way up to the final solution.

    You need a webpage that has multiple graphics all positioned where you want them. the graphics are images. Make them <a> tag with an onhover property, or onclick property. When you hover or click the javascript inside the onhover="javascirpt:funcname(imageidentifyer)" (that type of thing) will then likely be calling a javascript function that you will write. The function funcname(parameter) will receive the parameter imageidentifyer that indicates the building of you big webpage (the image of building and that identifyer should correspond). Your function would then try to access a file (I'm not too good with this stuff) that is PHP script. This PHP script will be programmed to access the temperature of the respective device and then return the value to the JS function somehow.

    Hope this is description (and humor) is of some value to you. There may be better way's to go about the project then hand scripting. I am slightly experienced at National Instruments Labview and that program is designed to do the sort of thing you are hoping to accomplish.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •