Login  
Search All Forums
Dart Home | PowerWEB LiveControls for ASP.NET | Custom Development Reply | PowerWEB LiveControls for ASP.NET Topics | Forums   
AuthorForum: PowerWEB LiveControls for ASP.NET
Topic: Javascript executes only once
administrator
weiner@parrotsoftware.com

From: West Bloomfield, MI USA
Posts: 55
Member Since: 12/12/05
posted July 4, 2006 12:19 PM

I put a javascript function in the code behind that changes the cursor to a custom cursor. The javascript has a variable that points to the location of the cursor. I put a picture of the cursor in a live imagebutton. When the user clicks the live image button, I use the buffered script property to call the javascript function and the cursor sucessfully changes to the custom cursor. I then change the value of the variable in the javascript to point to another custom cursor. The second time I call the javascript, it does not work. I can get the above logic to work if I use ms button to change the value of the variable pointing to the custom cursor but that comes with a page refresh.

Any reason the javascript in the code behind does not continue to work unless the page is refreshed?
John Talarico



From: Rome, NY USA
Posts: 630
Member Since: 06/01/05
posted July 7, 2006 3:07 PM

If I understand you correctly, there is no reason why the second call should not work. Could you post an example of the javascript code and how it is being called with the BufferedScript.Write method? We will try to replicate the behavior.
Reply | PowerWEB LiveControls for ASP.NET Topics | Forums   
This site is powered by PowerTCP WebServer Tool PowerTCP WebServer for ActiveX