CodeCharge Studio
search Register Login  

Web Reporting

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.
CodeCharge.com

YesSoftware Forums -> CodeCharge Studio -> Wishes

 ID for Javascript Usage

Print topic Send  topic

Author Message
marcwolf


Posts: 361
Posted: 06/15/2006, 5:29 PM

I'm a programmer who uses Javascrip a lot on the client side to do validation/user interface smarts.

Is it possible for CCS to put the ControlName into the ID as well as the name.

Even better - id the control is in a form then {HTMLFormName}-{ControlName} could be better as it can ID a control withing a form if ther are dulpicate controls of the same name on the page.

Just a wish...

Dave


_________________
' Coding Coding Coding
Keep Those Keyboards Coding.
Raw Code!!!!!!!
View profile  Send private message
WKempees
Posted: 06/15/2006, 6:24 PM

Second that.
For a while now, and Dave opened my eyes, I wondered why id-tags where not
used at all.
Not being to weel into JS, I just thought I was at the wrong end of the
stick.
This would aslo help AJAX JASON SOAP approaches.

Walter

marcwolf


Posts: 361
Posted: 06/15/2006, 8:05 PM

Hi Walter

Yes - the ID property is invaluable re working with AJAX or multi-frame applications.

Its so easy to do this

var obj = document.getElementByID('name of control');
obj.style = "color: red";
obj.value = "error has occured";

or from a frame parent.document.getElementbyId....

It is easy enought to work around - in the Format tab just cut and paste the Name property into the ID field. But is something you have to remeber to do each time.

Hope this gives some more inspiration


Dave

p.s. 202 posts and climbing :>


_________________
' Coding Coding Coding
Keep Those Keyboards Coding.
Raw Code!!!!!!!
View profile  Send private message
Edd


Posts: 547
Posted: 06/15/2006, 11:00 PM

Great call Dave,

I am like you, and when you go to the market and want to add in a 3rd party piece of Javascript, they all reference ID's. To me it is a "no brainer".

If you look in the Javascript Datepicker in the CCS Marketplace you will see I have added some generic "script" to locate the control if all you have is the name. Please feel free to copy and paste the code where necessary.

Regards, Edd
_________________
Accepting and instigating change are life's challenges.

http://www.syntech.com.au
View profile  Send private message

Add new topic Subscribe to topic   


These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit http://support.yessoftware.com.

MS Access to Web

Convert MS Access to Web.
Join thousands of Web developers who build Web applications with minimal coding.

CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


Powered by UltraApps Forum created with CodeCharge Studio
Copyright © 2003-2004 by UltraApps.com  and YesSoftware, Inc.