Search the web
Sign In
New User? Sign Up
wmlprogramming · WML,XHTML,WURFL & Mobile-related stuff
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Want your group to be featured on the Yahoo! Groups website? Add a group photo to Flickr.

Best of Y! Groups

   Check them out and nominate your group.
Having problems with message search? Fill out this form to ensure your group is one of the first to be migrated to the new message search system.

Messages

  Messages Help
Advanced
using javascript with wng tags   Message List  
Reply | Forward Message #30874 of 31606 |
Re: [wmlprogramming] using javascript with wng tags

You need to put the script tag  inside wng:head tag and not in the wng:body tag.

Fanta


On 1 Jul 2009, at 22:51, neeraj_mait wrote:



Hi folks,

I am trying to embed javascript in wng tags based mobile web page.

I tried with the following code:
<wng:script type="text/javascript">
document.write("This is my first JavaScript!");
</wng:script>

I get this error:
System The following command exception has occurred during processing: "javax.servlet.jsp.JspException: Can't nest net.sourceforge.wurfl.wng.component.Script Component into net.sourceforge.wurfl.wng.component.Body".

What is the correct way to use javascript with wng?
Does anyone have any sample code?

Thanks
Neeraj




Thu Jul 2, 2009 11:12 am

fantayenehasres
Offline Offline
Send Email Send Email

Forward
Message #30874 of 31606 |
Expand Messages Author Sort by Date

Hi folks, I am trying to embed javascript in wng tags based mobile web page. I tried with the following code: <wng:script type="text/javascript"> ...
neeraj_mait
Offline Send Email
Jul 2, 2009
7:55 am

You need to put the script tag inside wng:head tag and not in the wng:body tag. Fanta...
Fantayeneh Asres Gizaw
fantayenehasres
Offline Send Email
Jul 2, 2009
11:12 am

... Hi neeraj, Fanta is right, You need to put the script tag inside wng:head tag and not in the wng:body tag. The error message clearly says so. Here's the...
praveen_das_pd
Offline Send Email
Jul 7, 2009
4:34 am
Advanced

Copyright © 2009 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines - Help