I have an issue with the html/javascript which I wish to put into my
infowindow for my markers.
Basically, I want an asp:Button (input button) to be in the info
window, and I want that button to do the same for it's onClick as if
you were to click another button elsewhere on the page (which happens
to be the NextButton in my asp:Wizard control.)

I figured I could add the html into the text for the marker, but when
I view the output html, it's all over the place, and it looks like
single quotes are making the string escape incorrectly.

Here is the code I'm adding to create the button in the info window
and make onclick work:-

string buttonText = <input type=\"submit\" onclick=
\"document.getElementById(\'" +
WizardControl.FindControl("StepNavigationTemplateContainerID
$NextButton").ClientID +                                                        
        "\').click(); return false;\" value=
\"Select and Continue\" />";

which looks fine when it's passed to the new Info Window
constructor...but the html on the page looks like this:-

<input type="submit" value="Select and Continue" false;=""
return="" ).click();=""
main_0_content_1_wizardcontrol_stepnavigationtemplatecontainerid_nextbutton=""
onclick="document.getElementById(">

Can someone help me solve this problem?

Cheers.

-- 
You received this message because you are subscribed to the Google Groups 
"Google Maps API" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/google-maps-api?hl=en.

Reply via email to