Ask a Question related to ASP.NET General, Design and Development.
-
Jim Owen #1
Baby JavaScript question
I never ever need to use Javascript, but in this case I think I do. All I
want is for a Calendar control to appear when the user clicks a button.
Being as this isn't worth a trip to the server, I want to add some JS to
make this happen. What is the script for that? I tried:
MyButton.Attributes.Add("onclick","document.forms[0].MyCalendar.Visible='Tru
e';");
Though of course I don't know what I'm doing.
--
- Jim Owen
206-501-6936
Jim Owen Guest
-
JavaScript Question
I have a hidden field on a form used for the server. It submits an email address to the server. The server then process the form (through cgi-bin)... -
[Announce] Canada's Premier PHP Conference has a new baby sister
From the people who bring you php|architect every month, the worlds foremost PHP Magazine available in PDF and Print Editions, Marco Tabini and... -
JavaScript code question
I have had some trouble with this code. This is the code I used to tie in the street address with the combo box selection: var gstreet = new Array... -
About Lycoris Linux installation/internet connection (new baby q.)
Juha Kettunen scribbled: Since you admit to not knowing much about GNU/Linux I would recommend the easiest route for you and your friend to... -
Javascript Question...
Hi guys, Just wondering the following. If i have a page like hello.html?id=hi Can I use the variable "id" to call an script include? So for... -
Vidar Petursson #2
Re: Baby JavaScript question
Hi
This should toggle the element visibility passed to the function
function toggleElement(sElementID){
if(document.getElementById)
{
var e = document.getElementById(sElementId);
if( e != null ) e.style.visibility = ( e.style.visibility == "hidden") ?
"visible" : "hidden";
}
}
MyButton.Attributes.Add("onclick","toggleElement(' ELEMENTID')" );
Where ELEMENTID is the calendar in your case
--
Best Regards
Vidar Petursson
==============================
Microsoft Internet Client & Controls MVP
==============================
"Jim Owen" <jkoseattle@comcast.net> wrote in message
news:On8FvJUUDHA.2088@TK2MSFTNGP10.phx.gbl...MyButton.Attributes.Add("onclick","document.forms[0].MyCalendar.Visible='Tru> I never ever need to use Javascript, but in this case I think I do. All I
> want is for a Calendar control to appear when the user clicks a button.
> Being as this isn't worth a trip to the server, I want to add some JS to
> make this happen. What is the script for that? I tried:
>
>> e';");
>
> Though of course I don't know what I'm doing.
>
> --
> - Jim Owen
> 206-501-6936
>
>
Vidar Petursson Guest



Reply With Quote

