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.backgroundColor = '#F0F5F7';
But when I want to change the style of the WebTextEdit control:document.getElementById("WebTextEdit1").style.backgroundColor = '#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
VBScript and JavaScript aren't the same, and my expertise is with JavaScript. Mixing these two languages is likely going to cause you problems. Since we write our controls with JavaScript, my suggestion is to stick with JavaScript, not VBScript.
I can't otherwise speculate what may be causing the code you've written to not function. You should submit a support request for further assistance on this issue; it's beyond what I can assist with through the forums.
By the way, is there a reason you're not using ASP.NET validators? They'd provide similar functionality in a much-easier-to-code manner.
I did also insert the code (var edit = igedit_getById("FG1010NItemD"); edit.Element.style.backgroundColor = 'red';) in the InvalidValue but it does not execute - i don't know how this event gets fired.
I would like to set it in the vbscript window on submit as well as the InvalidValue but don't know how to activate the event - to check for blank then execute (var edit = igedit_getById("FG1010NItemD"); edit.Element.style.backgroundColor = 'red';)
Thanking you in advance
My Apologies for the "urgent" - under pressure.
I'm grateful for your help & I Thank You as i'm really struggling.
I got it going: var edit = igedit_getById("FG1010NItemD"); edit.Element.style.backgroundColor = 'red';
But now I need your help again, I need to execute the code within a vbscript code window:
The app, on submit check for blank (avar1) values then trigger error, I would like to add the above code & set the EditTextValue object:
fcTrigger = "ERR: Description is a required field"
var edit = igedit_getById("FG1010NItemD"); edit.Element.style.backgroundColor = 'red';
Please Assist, Regards
This line of code, in the MouseOver event handler of your WebTextEdit, shoudl have changed its background color:
oEdit.Element.style.backgroundColor = '#F0F5F7';
If that didn't do it, then there's something I'm missing. Perhaps there's an error on your page preventing this event from occurring? It's likely that you'll want to submit a support request as I'd mentioned above so that we can look into what you're doing more directly. If you can include a sample project that we can run and debug which shows what you're doing with the WebTextEdit so far, that'll help ensure that we're using the same code you are.
Thank You for your kindness, patience & help.
Please Assist, I can't get it going: on the WebTextEdit Object (FG1010NItemD) - ClientSideEvent - MouseOver:
I tired inserting the following javascript within the MouseOver property:
FG1010NItemD.Element.style.backgroundColor = '#F0F5F7';
oEdit.FG1010NItemD.style.backgroundColor = '#F0F5F7';
Aplogies for being a nuisance but please assist as I don't really know how to do this.
Please Assist!