Can not use javascript on mobile ASP.NET ?

R

Ryan

I understand I can use an older version on javascript with asp.net
mobile. My problem is I can't get javascript to appear at all. If
someone can look at my code piece below and tell me why this doesnt
appear, I would appreciate it.

<mobile:Form id="FormControl1" runat="server">
<mobile:panel id="PanelControl1" runat="server">
<mobile:DeviceSpecific id="DeviceSpecificControl" runat="server">
<Choice Filter="isHTML32">
<ScriptTemplate>
<script language="Javascript">
<!--
function foo() { alert("javascript works"); }
// -->
</script>
</ScriptTemplate>
 
R

Ryan

I was able to get jscript/javascript working if I added the script
inside the contenttemplate rather than the script template. If anyone
has an explaination I would like to here it.

thanks
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,744
Messages
2,569,484
Members
44,903
Latest member
orderPeak8CBDGummies

Latest Threads

Top