Passing information / strings between methods



Hi,

Apologies if this is the wrong place to post this.

I've got a small site - http://www.srcf.ucam.org/~ccw34/ostests/index.php
- where I've got an OS Map (using the Openspace API -
http://openspace.ordnancesurvey.co.uk/openspace/index.html). I can
use HTML links to navigate to places on the map, and open information
windows. I can then use jQuery to open a popup window (which is
essentially a hidden div), via the HTML links on the information
window.

However, I want the content of this popup box to reflect the current
location (at the moment, this information is jsut stored as variables
on that page, but I plan to write a JSON file for all the data) . At
the moment, when I click the HTML link on the information window on
the map, I use onclick="openPopup()", which then loads the popup using
loadPopup(). I was hoping to run a function (writeContent(placeName))
within loadPopup() method to write the content in the div, but this
doesn't work.

Essentially, I've got no problem in getting the name of the current
place during the loadPopup() method, just passing this information to
the div before it loads. (At the moment, I've got all my tests
commented out, and the popup loads when the links on the information
window is clicked - if any of my test functions are uncommented, the
popup stops working totally, and just doesn't load).

I hope my problem makes sense - if anyone can give any help, I'd be
most grateful.

Thanks,
Chris
.



Relevant Pages

  • Re: FromHandle purpose with DCs and GDI objects
    ... >>object in the handle map overwriting the existing one if there is one. ... I'm not sure what difference is between Attach CWnd, ... one of the standard MFC collection classes. ... MFC keeps the temporary and permanent window handle map in thread local ...
    (microsoft.public.vc.mfc)
  • Re: Iceweasel freezes and iceape vulnerabilities and instability
    ... popup is fixed in place within the browser window, ... the browser is doing its job; it is just possible to do some really ... Funny you mention this -- I don't think this is due to malicious code, ...
    (Debian-User)
  • RE: [PHP] Conditional popup driven from server-side
    ... otherwise display normal browser page. ... if there aren't errors then popup a modal ... window and start processing while displaying ... server, and then get the server to close it when done. ...
    (php.general)
  • Re: Avira AntiVir (free version) - Is this now adware?
    ... When I went to manually update, got an ad. Got back to the host this morning and saw another popup window with their ad. ... It could be wonderful cake but not if you occasionally get a turd smooshed into your face. ...
    (alt.comp.anti-virus)
  • Re: Avira AntiVir (free version) - Is this now adware?
    ... Seemed okay but it seems plagued with ads trying to get the user to buy into their premium version. ... When I went to manually update, got an ad. Got back to the host this morning and saw another popup window with their ad. ... It could be wonderful cake but not if you occasionally get a turd smooshed into your face. ...
    (alt.comp.anti-virus)