|
that is what i am not getting.
|
|
|
|
|
What's the exact problem??
"Legacy code" often differs from its suggested alternative by actually working and scaling.
—Bjarne Stroustrup
|
|
|
|
|
through javascripting i want to enable and disabled a image button.
|
|
|
|
|
ritu4321 wrote: through javascripting i want to enable and disabled a image button.
Do you know how to access server controls using Javascript?
"Legacy code" often differs from its suggested alternative by actually working and scaling.
—Bjarne Stroustrup
|
|
|
|
|
First, you need to store the client side Id of this control in javascript as a variable. Then you can use this to call 'getElementById', and finally, you can set it's properties.
Christian Graus - Microsoft MVP - C++
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
i know that all since i have been working in javascripting for long . bUT could not enable and disable image control on selection of radio button.
|
|
|
|
|
Well, perhaps you need to word your question better then.
it's still straightforward. Add an onclick to the radio button, which calls a javascript method that does everything I said before.
Christian Graus - Microsoft MVP - C++
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
As you don't show any code, I have to guess. My guess is that you have mixed up server control properties with client element properties.
The javascript property for this is disabled , not enabled .
Despite everything, the person most likely to be fooling you next is yourself.
|
|
|
|
|
thanks...
atlast something that is useful..
additionally i would like to mention that the server controls when changed in Javascript will obviously retain their original property after a postback
Regards,
|
|
|
|
|
Hi,
I am having a problem that I have been trying to solve for the last 2 weeks. This might be seen in many travel sites like lastminute.com. The situation is simple. I need an indeterminate progress bar. I enter the search criteria/parameters (From/To Date & Destination) in page ‘A’. I click the search button now. I need to be transferred to Page ‘B’, which is empty but consists of a progress bar like image displaying any message and then I need to be transferred to page ‘C’ where the results will be displayed. I use the term “Indeterminate”, coz the progress bar is displayed based on the time taken (which can vary) to display the results and it not a fixed time interval(Usually with thread. sleep type) like u see in many sites. I am using VS 2005 + MS SQL 2005 + ASP.NET 2.0 + AJAX 1.0. Please help me out.
|
|
|
|
|
i think in these cases you cant know how much time the query will take.
better is to show a progress bar image..which keeps on resetting itself every now and then..and as you said move to page C when query returns !
this is what we see on most sites.
Regards,
|
|
|
|
|
Hello,
I am running a customized Blogspot HTML theme on our Blogger site. The address is www.essaychayzee.com, and the problem I'm having is this:
When posting a picture, blogger automatically re-sizes the photo to fit your blog's parameters. This is fine, however, when a user or visitor clicks the photo, it shows the photo at full size as it's supposed to. The problem is that the back button, IE or Firefox will not work. You can click 40 times and it keeps refreshing the same photo.
If you click any other external link from the blog, it works fine. You can visit the external page, and then press the back button, and you will return to the page that you were at previously.
The problem only seems to happen with the blogger photos.
I've included the link to a txt file with the code to our blog below.
I appreciate any help. Thank you kindly.
-S.C.
Link -
http://www.gcityent.com/bloggercode.txt
|
|
|
|
|
If the back button is behaving strangely, it's because script in the page is causing it to, by navigating forward again, probably.
Christian Graus - Microsoft MVP - C++
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
Hi,
i uploaded video files using covert videos to byte format and store sl database. but the file size very large(ex:150mb). so i need compression coding for reduce the size.
any one reply asap...
Thanks & Regards,
Raja Mohan.
|
|
|
|
|
|
Hi, all!
I'm looking for a good (and preferrable free) PHP Editor (or IDE, if such a thing exists for PHP)... Any suggestions?
Thanks a lot!
Mac
do you know what to do with the power you have?
|
|
|
|
|
|
http://www.chami.com/html-kit/[^]
Html-Kit has a good Syntax Colorization for PHP and direct context linking to pHP Manual Keywords.
Vasudevan Deepak Kumar
Personal Homepage Tech Gossips
A pessimist sees only the dark side of the clouds, and mopes; a philosopher sees both sides, and shrugs; an optimist doesn't see the clouds at all - he's walking on them. --Leonard Louis Levinson
|
|
|
|
|
|
hai all,
I placed treeview control in my web page.. data are retrieved from the database and that is displaing using this tree view control.If i run that page in internet explorer it is comming fine i.e no problem in alignment..But if i run that application in mozilla firefox the alignment problem is comming..Can u please tell me the solution for that..
thanks.
|
|
|
|
|
Hi,
when i try to run my application i am getting the following error in VS2005
Could not load file or assembly 'Sample assembly' or one of its dependencies. Access is denied.
But the same web application is executing in other systems. What may be the problem and how to solve it?
Thanks in advance
Know is Drop, Unknown is Ocean
|
|
|
|
|
In my home install of Firefox I apply this setting as described here
http://www.howtogeek.com/howto/windows/fix-for-firefox-memory-leak-on-windows/
It works fine. However, on my work PC it has no effect. I've not been able to find anything by Googling. Both PCs are running fully patched Firefox 2 and XP SP2. Any ideas?
Kevin
|
|
|
|
|
hi all
in my application iam opening a pop up window by clicking a button and passing the values from the pop up window to parent window.everything till here works fine.but the problem is when the pop up window is in use and if click outside(in the parent window)the pop up window is not blinking but it gets minimised.i want to make the pop up window active when it in use and it has to blink when clicked outside.i have tried using showmodaldialog function also,but when using that another pop up window opens and values are not passed to parent window.iam providing the code herewith through which i opened the pop up window.can anyone help me in fixing this problem....
code
string scr = @"<script>
function update(elemValue)
{
document.getElementById('ctl00_ContentPlaceHolder3_txtName').innerText=elemValue[0];
}
</script>";
// register the javascript into the Page
Page.RegisterClientScriptBlock("update", scr);
//add our popup onclick attribute to the desired element on the page (Here, Hyperlink1)
lnkSearch.Attributes.Add("onclick", "window.open('lrs_SearchDesc.aspx',null,'left=190, top=225, height=350, width= 465, status=n o, resizable= no, scrollbars= no, toolbar= no,location= no, menubar= no');");
pintoo
modified on Friday, February 22, 2008 3:38 AM
|
|
|
|
|
Don't use pop-ups.
Seriously. They're broken. Intentionally broken. Too many people misused them, and so we had to break them. They're not gonna get less broken either, 'cause folks would just misuse them again.
But, ignoring that, assuming they did work reliably, you still wouldn't want to do that. Because now, you've locked the user's browser window, with all the nice friendly browser-window controls they've become so accustom to, and forced them to deal with your little dialog.
Here's a better idea: if you don't need or want them to see or interact with the page contents, then redirect them to another page and put your dialog stuff on it. If you do want or need them to see (but not interact) with the page contents, then use one of the many "lightbox"-style dialog techniques available to overlay the page with a semi-transparent layer on top of which you can place your dialog stuff (but still all contained within the page itself).
And whatever you do, don't forget to make the Escape and Enter keys work sensibly. If it looks like a dialog, then make it act like one.
But who is the king of all of these folks?
|
|
|
|
|