CodeCharge Studio
search Register Login  

Visual Web Reporting

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

YesSoftware Forums -> CodeCharge Studio -> .NET

 hello

Print topic Send  topic

Author Message
parkstech

Posts: 1
Posted: 06/29/2005, 12:25 PM

I have an issue. This is something that works well everywhere except a ccs project.

I have a vb.net page.

This page has a form

this form has a textbox and a listbox.

the listbox is populated from the database.

I want to type in a value in the textbox and when the onblur event fires I want the corresponding selected text to show in the listbox where the selected value is equal to the value in the textbox.

I have done this many times but for some reason the ccs version of the document object module will not allow the texbox to see the listbox and they are both on the same form object. All I get is the listbox is NULL or not an object.

help,
View profile  Send private message
peterr


Posts: 5971
Posted: 06/29/2005, 12:28 PM

Do you mean that you want to dynamically add a new item into the listbox? Or you want to select one of existing items already in the listbox?
_________________
Peter R.
YesSoftware Forums Moderator
For product support please visit http://support.yessoftware.com
View profile  Send private message
Kevin Russell
Posted: 06/30/2005, 5:26 AM

Copy this to a text document and save the document as an html page.

The only difference between this and what I want to do is my listbox is attached to a database, it is not static.

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
<HEAD>
<TITLE> New Document </TITLE>
</HEAD>
<script language="JavaScript" type="text/javascript">
function keywordSearch(pattern,list)
{
pattern = new RegExp('^' + pattern, "i");
i = 0;
sel = 0;
while(i < list.options.length)
{
if(pattern.test(list.options.text))
{
sel=i;
break
}
i++;
}
list.options.selectedIndex = sel;
}
</script>
</head>


<body>
<form>
<input size="4" name="textField" onkeyup="keywordSearch(this.value,this.form.state)" onchange="keywordSearch(this.value,this.form.state)" type="text">
<select name="state"><option></option>
<option value="--">--</option>
<option value="AK">Alaska</option>
<option value="AL">Alabama</option>
<option value="AR">Arkansas</option>
<option value="AZ">Arizona</option>
<option value="CA">California</option>
<option value="CO">Colorado</option>
<option value="CT">Conneticut</option>
<option value="DC">District of Columbia</option>
<option value="DE">Delaware</option>
<option value="FL">Florida</option>
<option value="GA">Georgia</option>
<option value="HI">Hawaii</option>
<option value="IA">Iowa</option>
<option value="ID">Idaho</option>
<option value="IL">Illinois</option>
<option value="IN">Indiana</option>
<option value="KS">Kansas</option>
<option value="KY">Kentucky</option>
<option value="LA">Louisiana</option>
<option value="MA">Masachusetts</option>
<option value="MD">Maryland</option>
<option value="ME">Maine</option>
<option value="MI">Michigan</option>
<option value="MN">Minnesota</option>
<option value="MO">Missouri</option>
<option value="MS">Mississippi</option>
<option value="MT">Montana</option>
<option value="NC">North Carolina</option>
<option value="ND">North Dakota</option>
<option value="NE">Nebraska</option>
<option value="NH">New Hampshire</option>
<option value="NJ">New Jersy</option>
<option value="NM">New Mexico</option>
<option value="NV">Nevada</option>
<option value="NY">New York</option>
<option value="OH">Ohio</option>
<option value="OK">Oklahoma</option>
<option value="or">Oregon</option>
<option value="PA">Pennsylvania</option>
<option value="RI">Rhode Island</option>
<option value="SC">South Carolina</option>
<option value="SD">South Dakota</option>
<option value="TN">Tennesee</option>
<option value="TX">Texas</option>
<option value="UT">Utah</option>
<option value="VA">Virginia</option>
<option value="VT">Vermont</option>
<option value="WA">Washington</option>
<option value="WI">Wisconsin</option>
<option value="WV">West Virginia</option>
<option value="WY">Wyoming</option>
</select>
</form>
</body></html>
Kevin Russell
Posted: 06/30/2005, 11:46 AM

If you can figure this out let me know please. I would be real interested in seeing this work in a CCS generated page. We are rewriting the page without using CCS. I turned a DOM debugger loose on it and found that the code generated by CCS is not W3C compliant therefore it will be next to impossible to get this to work without Yes Software producing some kind of reference to their proprietary DOM.

We also found that client side script generated by CCS will not run on a CCS generated page because it is unable to find the elements within a form.

Thanks,

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.

Internet Database

Visually create Web enabled database applications in minutes.
CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


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