Forum  General Visual ...  How do I...?  changing the script in client side scripting component causes error on page
Previous Previous
 
Next Next
New Post 9/12/2008 2:35 PM
  davidjm
14 posts
No Ranking


changing the script in client side scripting component causes error on page 

Hi

I've been playing around with Guys "Creating a custom client side scripting component" in the Snippet Repository

and whatever change I make to the javascript in MyScripts.js file causes an "error on page" message.

eg. I changed the alert statement to

for(ii=1; ii<3; ii++)

{

alert{"david")

}

and get "error on page" - any suggestions.

Thanks

David

 
New Post 9/12/2008 2:39 PM
  davidjm
14 posts
No Ranking


Re: changing the script in client side scripting component causes error on page 

Sorry that code should read

For(ii=1; ii<3; ii++)

{

alert("David");

}

which produces an "error on page" message

Any ideas?

 
New Post 9/14/2008 6:27 AM
  ori.cohen
4401 posts
1st Level Poster




Re: changing the script in client side scripting component causes error on page 
Modified By host  on 9/14/2008 9:28:30 AM)
Hello David!

You have a small mistake in your code. If you fix it your code should work.
Use "for" and not "For".

Regards,

Ori Cohen
The Visual WebGui team
 
Previous Previous
 
Next Next
  Forum  General Visual ...  How do I...?  changing the script in client side scripting component causes error on page
.NET HTML5 Web, Cloud and Mobile application delivery | Sitemap | Terms of Use | Privacy Statement | Copyright © 2005-2012 Visual WebGui®       Visual WebGui weblog on ASP.NET Gizmox Blog Visual WebGui Group on LinkedIn Visual WebGui updates on Twitter Visual WebGui Page on Facebook Visual WebGui YouTube Channel Visual WebGui Platform News RSS