Forum  General Visual ...  Visual WebGui v...  JS Error when loading MainForm.wgx
Previous Previous
 
Next Next
New Post 10/22/2009 6:20 PM
  limyae2009
143 posts
5th Level Poster


JS Error when loading MainForm.wgx 

Dear All,

 

I got Javascript error when loading my MainForm.wgx with 6.4.p4 in IE7&8. (Firefox seems to be OK.)

 

When I click on "debug" button, it goes to this line of code.

 

<script language="JavaScript" src="Resources.Browser.Form.js.wgx"></script>

 

Any idea or suggestion?

 

Thanks heaps!

Sam

 
New Post 10/22/2009 7:12 PM
  jayhobbs
1644 posts
1st Level Poster




Re: JS Error when loading MainForm.wgx 

Hi Sam,

Please check caching... go through the following and see if it helps:

  • 1. Shut down VS if it's running
  • 2. Delete your browser cache (IE=Delete temporary internet files FF=Clear Private Data + Cache)
  • 3. Go to 'C:\WINDOWS\Microsoft.NET\Framework\<Your relevant framework>\Temporary ASP.NET Files, delete all Visual webGui files. Please note that if you are running your app under Visual studio dev web server, this step applies to folder on your local machine. If you are running from a web server, this step applies to that server.
  • 4. Reset IIS if app will not be run within VS Dev webserver
  • 5. Open sample application
  • 6. Delete obj and bin folders (and ClientBin if SilverLight deploy)
  • 7. Delete all Gizmox references
  • 8. Reference the Gixmox DLL's, which now should be correct version
  • 9. Temporarily set "Disable Caching" in General tab of VWG integration (remember setting back if production app). This is equiv to web.config setting:
  •      <add name="VWG_DisableCachingSwitch" value="1" />
  • 10. Increase private version of project
  • 11 Set Gizmox DLL's to Copy Local = True
  • 12. Clean
  • 13. Recompile
  • 13. Run in Dev Web server

I hope this helps

Jay

 

Report Post 
 
New Post 10/22/2009 9:56 PM
  limyae2009
143 posts
5th Level Poster


Re: JS Error when loading MainForm.wgx 
Modified By limyae2009  on 10/22/2009 11:57:05 PM)

Thanks Jay.

 

But it looks like not related to caching issue this time. I already did a lot of times :-(

 
New Post 10/27/2009 10:23 AM
  ori.cohen
4383 posts
1st Level Poster




Re: JS Error when loading MainForm.wgx 

Hello Sam,

Are you using some kind of theme to override JavaScript, or change JavaScript resource settings?
If you are, please try using the default theme and see if it fixes the problem.

If the problem is in the theme and you can't find the specific cause, please send the theme to Support [at] VisualWebGui [dot] com with the application you use it with, and a link to this forum thread.
We would be willing to sign an NDA if neccessary.
Please also clean the solution before compressing it and reply to this post after sending, with the subject of the e-mail you send, so I would know to check for your support request.

Regards,

Ori Cohen
Support Manager, the Visual WebGui team

 
New Post 10/28/2009 7:06 PM
  limyae2009
143 posts
5th Level Poster


Re: JS Error when loading MainForm.wgx 

Hi Ori,

 

We just use the default theme.

 

And red line is the code which causes issue:

 
 
Form Resources.Browser.Form.Js.Wgx
 
function Events_CreateEvent(strSource,strType,strTarget,blnUnique,blnTypeOnlyUnique)
{
      // if there is no event buffer
      if(mobjEventBuffer==null)
      {
            // create new event buffer element
            mobjEventBuffer = mobjDataDomObject.createElement("ES");
           
            // attach event buffer to data object
            mobjDataDomObject.documentElement.appendChild(mobjEventBuffer);
      }
     
      // get the event guid

 

 

 

 
Previous Previous
 
Next Next
  Forum  General Visual ...  Visual WebGui v...  JS Error when loading MainForm.wgx
CompanionKit Bottom
.NET Web, Cloud and Mobile application delivery platform | Sitemap | Terms of Use | Privacy Statement | Copyright © 2005-2011 Visual WebGui®       Visual WebGui weblog on ASP.NET Visual WebGui Group on LinkedIn Visual WebGui updates on Twitter Visual WebGui Page on Facebook Visual WebGui YouTube Channel Visual WebGui Platform News RSS