473,396 Members | 2,108 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

WebTextEdit ClientSideEvent Javascript-Can't Eval

200 100+
Hi, I urgently need help, please not sure of correct forum.

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.bac kgroundColor = '#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
Oct 13 '08 #1
5 2452
acoder
16,027 Expert Mod 8TB
What is this "WebTextEdit" object? Does it have an ID?
Oct 13 '08 #2
ismailc
200 100+
Hi, Thank You for the assistance Yes, I am using the id.

But on the same event I can change another WebTextEdit object:
document.getElementById("EP1020ReadOnly").style.ba ckgroundColor = 'red';

so I tried for current object: (don't work)
document.getElementById("FG1010NItemD").style.back groundColor = 'red';
var ws = document.getElementById("FG1010NItemD").style; ws.borderWidth = "1px"; ws.borderStyle = "solid"; ws.borderColor = "#FFE6A0"

Please Help - I need to get this going!
document.getElementById("EP1010Read").style.backgr oundColor = 'red';
EP1020ReadOnly.style.backgroundColor = 'red'; document.getElementById("EP1010Read").style.backgr oundColor = 'red';
document.getElementById("EP1010Object").style.back groundColor = 'red';
Oct 13 '08 #3
acoder
16,027 Expert Mod 8TB
Can you show the HTML code for this element?
Oct 13 '08 #4
ismailc
200 100+
Thank You very much, I got it going:

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


but now I need to execute this code within a vbscript
Oct 14 '08 #5
acoder
16,027 Expert Mod 8TB
If you need to run it in vbscript, then it will only work in IE.

If it's an IE-only application, e.g. intranet, you can just put the vbscript code in script tags (like JavaScript) and specify the type.
Oct 14 '08 #6

Sign in to post your reply or Sign up for a free account.

Similar topics

7
by: Marci | last post by:
I found this script for cascading menus, however, I cannot reach the author to solve the bug I am having when I add a second menu to it. My problem is this: If I click on the first link, the...
17
by: compassSoftware | last post by:
Hi, I have two horizontal frames, one on top of the other. The top frame is an image map of a street with property boundary's on it. The bottom frame is a table with each row of the table...
21
by: hemant.singh | last post by:
Hello all, I am try'g to send window.location.href to the server script who will generate dynamic javascript according to the referral name comg in as param Now bcz <script language="javascript"...
3
by: stahl.karl | last post by:
I have a CGI/Perl program that returns a string output. Is it possible to get this into a Javascript variable, where the name of the variable is defined in the Javascript and not in the Perl code?...
6
by: sales | last post by:
Hello, I am trying to get my website checkout page to rotate / take turns displaying shopping comparison engine surveys rather than display them all 4 at the same time, thus overwhelming &...
16
by: Roman Ziak | last post by:
Hello, there were times when I used to be looking for a way to access JavaScript Global object similar to those found in VBScript or PHP ($GLOBALS). At present this has only academic value for...
4
by: andrei.csibi | last post by:
I've have a .NET Assembly, which is COM Visible. I would like to load objects from this assembly in javascript code. E.g. Assembly Book.dll has the class Book and I would like to use <script...
20
RMWChaos
by: RMWChaos | last post by:
Currently testing in: WinVista / IE7 I have been working on getting xmlhttprequest going for weeks now. I have finally gotten a semi-working script going. Pulling up text or xml files works great...
12
by: Bill Mill | last post by:
Hello all, I want to have a user able to eval code in a text box. However, if he accidentally types "while(1) { i=0; }" and hits "run", I also want him to be able to hit a stop button such that...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.