|
|
Let's say I have a table like this:
<table id="cblFilms" border="0"><br />
<tr><td><input id="cblFilms_0" type="checkbox" name="cblFilms:0" /></td></tr><br />
<tr><td><input id="cblFilms_1" type="checkbox" name="cblFilms:1" /></td></tr><br />
<tr><td><input id="cblFilms_2" type="checkbox" name="cblFilms:2" /></td></tr><br />
</table><br />
How can I iterate throught all checkboxes and for example disable them.
Thanks in advance
|
|
|
|
|
Hi there,
There are many ways to get reference to the checkbox collection, then you can iterate the list to disable all the items. Below is just one of them, because all the checkboxes you want to disable have different names and ids but have the same the prefix, so you first get all the checkboxes on the form, then you can do the filtering:
function DisableCheckBoxes()
{
var inputs = document.getElementsByTagName("input");
for (var i = 0; i<inputs.length; i++)
{
if(inputs[i].type=="checkbox" && inputs[i].name.indexOf("cblFilms")>=0)
{
inputs[i].disabled = "disabled";
}
}
}
|
|
|
|
|
Create the checkbox with the same name.
<input type='checkbox' name='chcFilm' \>
Access them with:
FormName.chcFilm[index]
<italic>Work hard, Work effectively.
|
|
|
|
|
Hello everyone:
i am a newbie in asp.net,sorry for troubling you all.
Here is the scenario that I need some help with. in the server side, i have a large database with many tables ,and with each table there are quite many rows .Now i want to create a view based on this database in the server side.Obviously,this "create view" will cost a lot of time.then,in the client side it will be always waiting for the completment of the "create view",and users in the client side can not do anything else.(normally the web page will be time out and saying cannot display)
Now i am thinking is there any method that we can send a message to the server,let the server "create view " by itself and we can continue with our working,and when the server send a msg back when the "create view "is finished or not?
i dont know if i can use web service? i am not sure.Or is there any other way?anything will be appreciated!thanx in andvace!
|
|
|
|
|
Hi,
I currently have a webhost hosting my entire website. Recently, I set up my own FTP server. I have created a HTML form for users of my website to upload (possible as big as 100MB) huge files. While this files will reside on my webhost server, I would like the data to be transferred to my FTP server as well, or even by passing the webhost altogether. I was told by a friend that a good script on the webhost server may do the trick. Is there anyone who could provide more insight to this?
Thanks!
|
|
|
|
|
Hi there,
If you want to use scripts, then here's an example[^]. Also, you can find the Script Center [^] as a good place to look for resources.
|
|
|
|
|
I am uploading files in a directory throught my web site, those files are sitting in a folder called "Documents". Now I want to build an automatic link to those files after they are uploaded. They are word documetn,.pdf etc. Can any one help me how to do that. I am using DMx and I am using IIS as server and all my pages are .asp
|
|
|
|
|
hi
first i want to tell my comlete assignment
i want to get list of LINKS in google for this keyword "Fast Cars" on my html page.
plz any one who can give me the script in Perl or
can tell me the procedure how to get LINKS from google Search Result Page onto my page.
thanks
i shall be thankful for quick response
|
|
|
|
|
I want to use a store procedure in the report. So for this I have created a store procedure in which I have used some temp table and finally I got the result what I want into SQL query analyzer. This store procedure is working fine when I am running into query analyzer. But when I used that store procedure at crystal report. no fields available for selection. Only name of store procedure is displayed.
For this problem I have searched in google then I find this link
http://support.businessobjects.com/library/kbase/articles/c2016930.asp
But in my case it’s not working.
|
|
|
|
|
Can any one help me to find out that how to get data from multiple table on a web page. I am using DMx with ms access. Its the same idea when we create a new thread in codeproject.com. We can see our email, and name and group name and questions and answers on a single page. can any one help plzzzzzz
|
|
|
|
|
Do you mean "data from multiple database tables" on the same web page?
If so, it is simply the query you use to extract the data from the database. If you mean something else please explain further so I can understand.
|
|
|
|
|
NO man, I just want to get multiple data form multiple table and all tables are in single database. For example i have a group table, which has groupID and group name, then a table "USER" then a table "topics" which has groupID, topicID, topic and another table called "TopicDetail" which has topicID, topicDetailID, topicdetail.
Now I want user to login and select his group, then he goes on the page where he can see all the related topics, and if he wants then he could enter now topics. same idea like google group or forums, that on the top of the page you see the group, your email address, date and subject. which all is coming from different tables.
can you help me man.
|
|
|
|
|
As far as I can tell you are asking how to use JOIN statements in SQL to pull out data from multiple tables in the database all from a single USER_ID.
Yes?
|
|
|
|
|
I am uploading files in a directory throught my web site, those files are sitting in a folder called "Documents". Now I want to build an automatic link to those files after they are uploaded. They are word documetn,.pdf etc. Can any one help me how to do that. I am using DMx and I am using IIS as server and all my pages are .asp
|
|
|
|
|
you can use database to save those uploading files's path.
|
|
|
|
|
hello
hello,
I am trying to call a webservice (which is deployed in apache axis) using javascript. The result which I am supposed to get is a string fromthe xml fle. I tried using the following code to parse the xml . I am just getting the result as undefined .Hereby i am posting my code .I am donno how to get rid of this problem .Could anyone of you please have a look at it give me a suggestion.Thanking you in advance.
javascript code
<title>WEBSERVICES TESTING
var iCallID;
function init()
{
service.useService
("http://localhost:8080/axis/services/ImergoService?wsdl",
"imergov");
var result=iCallID;
}
function onmyresult()
{
if ((event.result.error)&&(iCallID==event.result.id))
{
var xfaultcode = event.result.errorDetail.code;
var xfaultstring = event.result.errorDetail.string;
var xfaultsoap = event.result.errorDetail.raw;
// Add code to output error information here
alert("Error ");
}
else
{
xmlDoc = new ActiveXObject("MSXML2.DomDocument");
xmlDoc.loadXML(event.result.raw.xml);
var items = xmlDoc.getElementsByTagName('ruleRegistry');
service.innerHTML= "The method returned result:"
+xmlDoc.getElementsByTagName('rulesets').text; }
}
<title>WEBSERVICE TESTING
Rules
and the xml file which i should get as result is of this format
<ruleregistry>
<rulesets>
<ruleset id="wcag1.0_A" default="default">
<name xml:lang="en">WCAG 1.0 A
<name xml:lang="de">WCAG 1.0 A
<ruleset id="wcag1.0_AA">
<name xml:lang="en">WCAG 1.0 AA
<name xml:lang="de">WCAG 1.0 AA
<ruleset id="wcag1.0_AAA">
<name xml:lang="en">WCAG 1.0 AAA
<name xml:lang="de">WCAG 1.0 AAA
waiting for reply
robina
|
|
|
|
|
Could any of you solve the problem of enabling activex control of the browser through javascript. Is there any other methods that can be implemented
baskar
|
|
|
|
|
Hi Baskar:
Enabling/Disabling an ActiveX Control would be within Web-Browsers' security policy. We can query whether the ActiveX Control is loaded or active in JavaScript but we can not dictate it to be enabled or disabled.
Deepak Kumar Vasudevan
Personal Web: http://vdeepakkumar.netfirms.com/
I Blog At: http://deepak.blogdrive.com/
|
|
|
|
|
Hi,
Can anyone help me? I have searched the information on retrieving the IHTMLTextRangeMetrics object and got no results. I need to retieve the position of the selected text so that I can draw a button besides the selected text. Please help me.
Thanks,
|
|
|
|
|
Hello,
I have a big problem: I want to pass througth a authenticated proxy to a authenticated website with C#.
I tried it with filling WebProxy Credential and WebRequest Credential, but it doesn't work...
Please help !
I tested with fiddler as a proxy. IE works with it, it comes with 2 authentication dialogs...
Thanks
|
|
|
|
|
Hi, I am wondering how I can do this. If I have a datagrid with say 5 items, how could I insert a new row through client side scripting to create additional rows?
Also, what could I use to read these new values back once the form is posted to the server?
|
|
|
|
|
Is it me that can't read, but I don't see anywhere you mentioning what error you actually get?
---------------------------
127.0.0.1 - Sweet 127.0.0.1
|
|
|
|
|
I was having trouble specifying multiple actions from a single Form until I stumbled across a great thread on this forum which really helped me out. I adapted the code to suit me and got it working which was great, but what I want to do now is call a simple validation routine before actually submitting the form via either of the two buttons. I've included the code i adapted from the example on this site. I've tried all sorts of combinations with the placement of the validationRoutine, i.e. in the onClick event, in the functions themselves, but even if the validationRoutine returns true, the form doesn't get submitted. Is this possible? Is it something to do with a listener?
<!-- create the form -->
<form name=Form1 method=post>
<!-- Add the data entry bits -->
Your Name <INPUT type="text" name=text1><br>
<!-- Add some buttons -->
<INPUT type="button" value="Button1" name=button1 onclick="return OnButton1();">
<INPUT type="button" value="Button2" name=button2 onclick="return OnButton2();">
<!-- close the form -->
</form>
The button click handlers for Button1 and Button2 look like the following:
<script language=javascript>
<!--
function OnButton1()
{
document.Form1.action = "Page1.asp"
document.Form1.target = "_blank"; // Open in a new window
return validationRoutine(); // Call validation routine
document.Form1.submit(); // Submit the page
return true;
}
function OnButton2()
{
document.Form1.action = "Page2.asp"
document.Form1.target = "_blank"; // Open in a new window
return validationRoutine(); // Call validation routine
document.Form1.submit(); // Submit the page
return true;
}
-->
</script>
|
|
|
|
|
Don't worry, sorted it now. Explicitly tested the value returned from the validationRoutine before determining whether to submit form or not and it worked.
|
|
|
|