My favorites | Sign in
Project Home Downloads
READ-ONLY: This project has been archived. For more information see this post.
Search
for
  Advanced search   Search tips   Subscriptions
Issue 184: Draw Feature is not work in FireFox using HTML image Tag
1 person starred this issue and may be notified of changes. Back to list
Status:  Done
Owner:  ----
Closed:  Oct 2013


 
Reported by jigarnag...@gmail.com, Mar 3, 2011
Hello,

I have refer drawing feature from the following URL.

http://openlayers.org/dev/examples/draw-feature.html

This example is working well in Firefox as well as IE-8 . 

In my example i used HTML <image> tags instead of radio tag.

like :
In Example :

<input type="radio" name="type" value="point" id="pointToggle" onclick="toggleControl(this);" />

In My Code :

<img src="images/myimage.png" title="Mark Point" value="point" id="pointToggle" onclick="toggleControlPin(this);"/>


Note: HTML Image tag is not provides any attribute named "value".

It is working well in IE but not in Firefox.  

Code:

function toggleControl(element) {
             alert(element);
// We are getting in IE  -           element [object]
//We are getting in FF -             element [object HTMLImageElement]


                for(key in drawControls) {
                    var control = drawControls[key];
                    alert(element.value);
// We are getting in IE  -          element.value = "point"

//We are getting in FF -            element.value = "undefined" 



                    if(element.value == key && element.checked) {
                        control.activate();
                    } else {
                        control.deactivate();
                    }
                }
            }


Please Help to me solve this issue.

Thanks in advance.





Mar 6, 2011
Project Member #1 moo...@wwwendt.de
How is this related to dynatree?
Status: Waiting
Oct 6, 2013
Project Member #2 moo...@wwwendt.de
Closing 'Waiting' issues without timely answer
Status: Done
May 2, 2014
Project Member #3 moo...@wwwendt.de
Cleanup Scrumboard
Labels: Milestone-Release2.0

Powered by Google Project Hosting