Wrox Programmer Forums
Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP.NET 2.0 > ASP.NET 2.0 Basics
|
ASP.NET 2.0 Basics If you are new to ASP or ASP.NET programming with version 2.0, this is the forum to begin asking questions. Please also see the Visual Web Developer 2005 forum.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 2.0 Basics section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old October 12th, 2008, 05:07 AM
Friend of Wrox
 
Join Date: Jan 2007
Posts: 115
Thanks: 2
Thanked 0 Times in 0 Posts
Default WebTextEdit ClientSideEvent Javascript-Can't Eval

Hi, I urgently need help, please.

WebtextEdit ClientSideEvent execute javascript statement on mousemove event. I can successfully change the style of another object type on this WebTextEdit ClientSide MouseMove event:document.getElementById("Object2").style.backgroun dColor = '#F0F5F7';

But when I want to change the style of the WebTextEdit control:
document.getElementById("WebTextEdit1").style.back groundColor = '#F0F5F7'; Then nothing happens

When I execute the script on the same WebTextEdit Clientside for another object which is not a WebtextEdit:
Object2.style.border='1px solid #FFE6A0'; Then it works

But when I want to change the WebtextEdit Clientside style:
WebTextEdit1.style.border='1px solid #FFE6A0';

Then I get Error: Can't Eval WebTextEdit1.style.border='1px solid #FFE6A0';

Please Help

 
Old October 13th, 2008, 02:03 AM
Friend of Wrox
 
Join Date: Jan 2007
Posts: 115
Thanks: 2
Thanked 0 Times in 0 Posts
Default

Please, any ideas!

 
Old October 13th, 2008, 10:25 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 2,189
Thanks: 5
Thanked 59 Times in 57 Posts
Send a message via MSN to gbianchi
Default

try a javascript forum??? (this is asp.net!)

HTH

Gonzalo

================================================== =========
Read this if you want to know how to get a correct reply for your question:
http://www.catb.org/~esr/faqs/smart-questions.html
^^Took that from dparsons signature and he Took that from planoie's profile
================================================== =========
My programs achieved a new certification (can you say the same?):
WORKS ON MY MACHINE
http://www.codinghorror.com/blog/archives/000818.html
================================================== =========
I know that CVS was evil, and now i got the proof:
http://worsethanfailure.com/Articles...-Hate-You.aspx
================================================== =========
 
Old October 13th, 2008, 10:47 AM
Wrox Author
 
Join Date: Oct 2005
Posts: 4,104
Thanks: 1
Thanked 64 Times in 64 Posts
Send a message via AIM to dparsons
Default

Hmm. I am going to reiterate what all the other users on different forums have told you about this: contact the author.

What I do find interesting is that you are calling a Server Control directly by its name: document.getElementById("WebTextEdit1").style.back groundColor = '#F0F5F7'

Instead of

document.getElementById('<%=WebTextEdit1.ClientID% >').style.backgroundColor = '#F0F5F7'

In reality the first call should throw a JavaScript null error.

hth.

================================================== =========
Read this if you want to know how to get a correct reply for your question:
http://www.catb.org/~esr/faqs/smart-questions.html
================================================== =========
.: Wrox Technical Editor / Author :.
Wrox Books 24 x 7
================================================== =========
 
Old October 14th, 2008, 05:14 AM
Friend of Wrox
 
Join Date: Jan 2007
Posts: 115
Thanks: 2
Thanked 0 Times in 0 Posts
Default

Thank You, this did lead a javascript code:

var edit = igedit_getById("FG1010NItemD"); edit.Element.style.backgroundColor = 'red';






Similar Threads
Thread Thread Starter Forum Replies Last Post
Onmouseover attrib for element igtxt:WebTextEdit ismailc XSLT 3 October 17th, 2008 03:45 AM
Webtextedit Mousemove event in XSLT ismailc ASP.NET 2.0 Basics 0 October 11th, 2008 05:53 PM
Name "Eval" is not declared. thuyvncr BOOK: ASP.NET 2.0 Website Programming Problem Design Solution ISBN: 978-0-7645-8464-0 3 December 21st, 2006 03:48 AM
Eval??? tsimsha Classic ASP Basics 2 January 17th, 2005 10:02 PM
Databinder.Eval jpfree71 ASP.NET 1.0 and 1.1 Basics 2 August 26th, 2004 11:07 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.