|
I can't remember exactly how I did this, but I can tell you the steps to discover it.
* Look at the output of the webpage - That is, look at source that you get in the browser.
* Examine the IDs of the checkboxes in the list and see how they compare to the name you gave the asp:checklistbox (IIRC they will have something appended to the name, and perhaps something prefixed if it is contained in another control)
* Write some javascript to use the pattern you have discovered.
My: Blog | Photos
"Man who stand on hill with mouth open will wait long time for roast duck to drop in." -- Confucious
|
|
|
|
|
Colin,
Thanks for your input. You guided me into the right direction. Following is the solution in case anyone needs it as well:
<br />
<script language=vbscript><br />
option explicit<br />
<!---------------- check/clear text boxes -------------><br />
dim currChkboxName<br />
dim currCheckValue<br />
sub UpdateCheckboxes(chkboxName, checkValue)<br />
currChkboxName = chkboxName<br />
currCheckValue = checkValue<br />
dim i<br />
for i = 0 to Form1.children.length-1<br />
UpdateChildCheckboxes Form1.children(i)<br />
next<br />
end sub<br />
sub UpdateChildCheckboxes(obj)<br />
dim i <br />
if not obj is nothing then<br />
if obj.id <> "" then<br />
if InStr(1, obj.id, currChkboxName) > 0 then<br />
obj.checked = currCheckValue<br />
end if<br />
end if<br />
for i = 0 to obj.children.length<br />
UpdateChildCheckboxes obj.children(i)<br />
next<br />
end if<br />
end sub<br />
</script><br />
Then declare the buttons as follows:
<br />
<input id="btnClearTestConditions" type=button value="Clear All" onClick="UpdateCheckboxes 'cklTestConditions_', false" /><br />
<input id="btnCheckAllTestConditions" type=button value="Check All" onClick="UpdateCheckboxes 'cklTestConditions_', true" ><br />
|
|
|
|
|
Hi all,
Hope someone out there can help me with this one
I have multiple web sites which i want to place ads on... I want to hold the ads on a single database which all sites can access.
So I created the database and a banner.asp page which displays a random ad, works perfectly!
I then attempted, from another web site, to call the banner.asp with the #include virtual.... there was the problem.... I found you can only #include within the same web site.
Does anyone know how I could get around this issue... as I do not want to have a database on each website. Just the ability to 'call' an ad from a central database on another web site.
All advice is welcomed...
Thanks in advance,
Jason
|
|
|
|
|
You could use an IFRAME
My: Blog | Photos
"Man who stand on hill with mouth open will wait long time for roast duck to drop in." -- Confucious
|
|
|
|
|
HRESULT createElement(BSTR eTag, IHTMLElement **newElem);
Is it possible to use any tag name for eTag (for example numbers, 1, 2, 3...) to create element?
|
|
|
|
|
Can be IE put in design mode by using: HRESULT IHTMLDocument2::put_designMode(BSTR v);
Thank you.
|
|
|
|
|
Hi there, having trouble with a menu in dhtml.
basically the javasript function is simple it displays the menu or closes it depending on mouseover or mouseout. the only thing is that the menu closes before you can get a chance to make a selection from the menu items. (ie its closing the menu when the mouse moves of the top line of the menu.. as opposed to the whole of the menu) any help gratefully received!
|
|
|
|
|
hi,
How to capture events in the javascript file that are fired from a dll?
Event source – A dll created as an ATL control object
Event Handler - javascript file.
Instance of object is created in the javascript file using ActiveXObject(ComponentName.ClassName).Through this instance I can access methods written in the dll.
Using Object Tag in HTML file works fine. But don't know how to handle events in the Javascript file.
Pls send in your comments.
Thnx,
Bobina
|
|
|
|
|
i am planing to make parser for html...so did anyone have the grammar for html or context free grammar?
|
|
|
|
|
Then, you want to study the DTD for HTML at HTML 4 Document Type Defintion which contains the DTD for HTML 4.01. This provifes a context-free grammar definition in terms of the structure of HTML 4.01 and should suit your needs quite well since most of it is in Backus-Naur form.
"we must lose precision to make significant statements about complex systems."
-deKorvin on uncertainty
|
|
|
|
|
Hi,
How to get text from html page in IE, modify it and put back in IE?
I need it to translate page.
Thank you.
|
|
|
|
|
Is there a way to force the position of a <table> to the bottom of the page (i.e. to hold the contents of the page footer)? Thanks,
/ravi
My new year's resolution: 2048 x 1536
Home | Music | Articles | Freeware | Trips
ravib(at)ravib(dot)com
|
|
|
|
|
Figured it out:
<table style="position:absolute; left:0px; bottom:0px;">
<tr>
<td>
Some text
</td>
</tr>
</table> /ravi
My new year's resolution: 2048 x 1536
Home | Music | Articles | Freeware | Trips
ravib(at)ravib(dot)com
|
|
|
|
|
I am currently trying to follow the Que Publishing exam guide to the Microsoft Exam 70-320.
I followed the guide to a t, but when I try to add a web reference to my server side soap extension it gives me the following error:-
An error occurred during the parsing of a resource required to service this request. Please review the following specific parse error details and modify your source file appropriately.
Parser Error Message: Could not load type 'BugTracker.Global'.
Source Error:
Line 1: <%@ Application Codebehind="Global.asax.cs" Inherits="WebService1.Global" %>
Source File: f:\inetpub\wwwroot\70-320\320C05\BugTracker\global.asax Line: 1
I have even tried creating a perfectly fresh web service created by visual studio and still get the same error when I try to use a web reference to it. I have also tried removing "BugTracker.Global" and replacing it with "Global" but to no avail. All my namespaces are correct as well.
Does anyone have any ideas how I may rectify this error as it is driving me mad!
Many thanks
Paul
|
|
|
|
|
Hi
Let me know what is IFRAME & purpose in ASP.
thanking you
regards
rex
|
|
|
|
|
Dear to all,
In ASP,How we can create COM in ASP?for instance,Login control normally we are using in every web design,for that reason can create a COM for Login control, like that MAIL creation in ASP too .Let me know,if you've any idea.
thanking you
regards
rex
|
|
|
|
|
You can't create a COM component using ASP. You need a compiling programming language.
---
b { font-weight: normal; }
|
|
|
|
|
HI, say for example we have a table with 3 columns in a row.
say the html for one row looks like this
hiIn IE this will automaticly span the column over 3 columns to match the rest of the rows. Now, I guess ideally you would youse the colspan attribute like this...
hiWhat I would like to know is if the first example (without colspan) is valid HTML?
/\ |_ E X E GG
|
|
|
|
|
eggie5 wrote: In IE this will automaticly span the column over 3 columns to match the rest of the rows.
No, it won't.
---
b { font-weight: normal; }
|
|
|
|
|
What will it do?
/\ |_ E X E GG
|
|
|
|
|
Any cells that you don't specify are just left out. The space that the cells would have occupied is left empty.
---
b { font-weight: normal; }
|
|
|
|
|
how to populate relative words when typing text in text box
if any one knows plz help me
N.Rajakumar B.E.,
Application Developer,
|
|
|
|
|
Hi there,
For this, IMO, u might take a look at AJAX
<< >>
|
|
|
|
|
Let me just say that I have already posted a question similiar to what I am about to ask on another forum, but I guess I was to generic about my problem and not descriptive of how little (none actually) Web Programming knowledge I have. So here it goes again:
I have a website that is hosted, like on Geocities or something similiar, but they allow me to upload anything that I want to it. That was the important part. I have no control over the webserver, just the limited space that they provide to me. Now for what I want to do. All I want to do is have a Microsoft Access database uploaded to this webspace and have a page where visitors can signup for tournament that I am organizing. After they hit the "Sumbit button", the information that they entered (ie: Name, Phone #, and Position - it's a baseball tournament) will be saved in the database and then the page with all the other people who have signed up will open, along with their name. It doesn't matter about me accessing the database - all I need is the information in the database and if there is any problems with the database (ex: Someone signing up with a profane name), i'll just download the database, delete the entry, then upload it again.
So to conclude, all I need is to know how to write, then retrieve, information from an Access database using ASP in the most simple way possible using a database and a few (I don't know how many pages it will take to create the desired effect I am looking for) webpages. Don't forget the information I have provided and that I have never web programmed before, only in html using FrontPage.
Thank you very much in advance.
Marcus.
|
|
|
|
|
I honestly believe that your best bet would be to post this as a job on rentacoder. You'll probably get it done for $10 or something, and a lot quicker than it will take for someone to teach you web programing.
Christian Graus - Microsoft MVP - C++
|
|
|
|