Results 1 to 2 of 2
Thread: help to hide code for email
Jan 22, 2014, 04:19 #1
- Join Date
- Jan 2014
- 0 Post(s)
- 0 Thread(s)
help to hide code for email
i am a beginner of jquery and i need your help.
on my website (http://www.tappenbeck.net/osm/maps/d...d=9512#poipage) street lamps will be show. if you click on a yellow circel you will details of the lamp and you could send a feedback (please do not!)
there is a checkbox - if it is active there should be a secould link will be show to send another email. i have include a div-container with the id=send_light_message.
in the file popupmarker_jqm.js the code will be generate to include. mobile-jq.js include the code for show and hide the secound email. a alert-box shows a message for the checkbox-event.
now the problem: the secound email will not show !!!!
could someone help me and i hope you understand my problem.
regards Jan :-)
Jan 22, 2014, 15:36 #2
- Join Date
- Jun 2007
- 219 Post(s)
- 12 Thread(s)
Welcome to the forums
This seems to be a large and sprawling project with a lot of JS includes (several of which have been commented out), as well as a large chunk of inline JS.
This in turn makes it quite hard to debug, when a problem like this arises.
My advice would be to try and isolate the problem, by cutting out parts which are not relevant.
For example, your problem is on the "Strassenlampe" page and has nothing to do with the map before it, so try and remove anything which is to do with the map (obviously just for trouble shooting purposes).
My initial suspicion would be that the JS file you think is responsible for this, is not actually being included.
For example, this seems to work:
htmlcode+= '<br><a href="mailto:email@example.com?subject=OsmTravel-Feedback&body='+encodeURI(bodytxt)+'">POI-Feedback</a>';
htmlcode+= '<div id="send_light_message"><a href="mailto:firstname.lastname@example.org?subject=OsmTravel-Feedback&body=Moin !\nich mÃ¶chte Ihnen mitteilen, dass folgende Beleuchtung ausgefallen ist:\n\n'+historyURL+'\n\nMit dem Ã–ffnen es Links wird eine Datenseite aus dem OpenStreetMap-Projekt geÃ¶ffnet. Auf der Linken Seite sind die erfassten Daten zu sehen und auf der rechten Seite eine Karte mit der Lage. Das eventuell vorhandene Attribut REF beinhaltet die Nummer der Beleuchtungseinheit.\n\nFÃ¼r eventuelle RÃ¼ckfragen stehe ich Ihnen gerne zur VerfÃ¼gung.\n\nFreundliche GrÃ¼ÃŸe\n'+signatur+'>Ausfall-eMail erstellen</a></div>';
Could the POI feedback link be being created elsewhere?
Other than that, check the encoding. In my browser (which is German), it was totally broken (as you can see).
As I said, there are a lot of factors in play here, so try and narrow things down.
Let us know how you get on.