|
Javascript, being client-side, does not recognise the server-side "text" property of your label, nor even know it is a label - take a look at the page source as rendered in the browser to see how your page is rendered...
try replacing the javascript line with this instead:
document.getElementById("Label1").innerHTML="Nakul";
cheers
Fred
|
|
|
|
|
JavaScript and ASP.net are 2 very different languages. If you plan to use JavaScript then maybe you should do some research in the specifics of that language.
The above suggestion shows what the correct format for the what you intend to do is.
Brad
Australian
"The Probability of you doing that makes 0 look like a big number" - My Mate Oxley
|
|
|
|
|
Does anyone have a full example on how it works? Specifically, I'm looking for ways to get whole sentences and highlighted column data if possible (startrow to endcolumn). The MSDN mentioned the following keywords, but Googling for these came up sort of empty (except for word). Thanks.
Member name Description
wdCell A cell.
wdCharacter A character.
wdCharacterFormatting Character formatting.
wdColumn A column.
wdItem The selected item.
wdLine A line.
wdParagraph A paragraph.
wdParagraphFormatting Paragraph formatting.
wdRow A row.
wdScreen The screen dimensions.
wdSection A section.
wdSentence A sentence.
wdStory A story.
wdTable A table.
wdWindow A window.
wdWord A word.
"This perpetual motion machine she made is a joke. It just keeps going faster and faster. Lisa, get in here! In this house, we obey the laws of thermodynamics!" - Homer Simpson
Web - Blog - RSS - Math - LinkedIn - BM
|
|
|
|
|
hi all, this is my javascript code. var1 goes in as string so i turn it to number. this code returns always 10! i cannot find anything why it's happening.. thanks for help...
function foo(var1, var2)
{
var1 = new Number(var1);
switch(var1)
{
case 1:
return 1;
break;
case 2:
return foo2(var2);
break;
default:
return 10;
}
}
svs
|
|
|
|
|
This seems to be a problem with the language itself not with the switch.
Try using:
var1 = new Number(var1)- 0;
Ernesto Tejeda
|
|
|
|
|
You are creating a Number object, which is not the same as a number value.
Try:
var1 = Number(var1);
or
var1 = parseInt(var1);
---
b { font-weight: normal; }
|
|
|
|
|
thanks for helping both of you guys.. parseInt looks familiar
|
|
|
|
|
Hi all,
I've just updated my website and am looking for anyone who fancies taking a look at it and giving me some constructive criticism. I know some of you have helped me before with beta testing (thanks for that), any comments would be great.
Oh yes, the link... it's here[^]!
Cheers
Andy
-- modified at 10:46 Friday 17th November, 2006
|
|
|
|
|
what's is the postfix "ashx" means?
=========================================
中国,昆明
|
|
|
|
|
It's an extension used by ASP.NET for HTTP handling (the file doesn't actually exist). I use it with Maverick.Net to implement an MVC architecture. You can see details of Maverick here[^].
|
|
|
|
|
|
You should indiquate Edward Caldwell position/occupation. I could find out who he is by googling but there might be other ignorant people who might reluctant to try and find out.
___________________________________________________________
On the whole human beings want to be good, but not to good and not quite all the time - George Orwell
|
|
|
|
|
Sorry mate, but the green and white menubar is pretty hard to read. The white doesn't contrast too well with the green.
The site is also heavily table dependent - making it hard for a screen reader to use. The font's don't resize - thus failing one of the disability accessibility tests here in the UK. Have you considered registering your site with SiteMorse and running the tests there. I do this for a lot of my clients, and it does pay them dividends with complying with UK legislation (especially as we have clients who are, shall we say, more governmental based).
Don't take this too hard. On the whole, I like the look of the site and it looks like you have a great product to sell. Good luck with it.
Arthur Dent - "That would explain it. All my life I've had this strange feeling that there's something big and sinister going on in the world."
Slartibartfast - "No. That's perfectly normal paranoia. Everybody in the universe gets that."
Deja View - the feeling that you've seen this post before.
|
|
|
|
|
Thanks, I'll take a look at this.
|
|
|
|
|
And just a small thing, but as you move your mouse over the menu bar (causing dropdown menus to appear), the previous dropdowns take a while to disappear.
|
|
|
|
|
Looking at it using Mozilla Firefox 2 it seems fine, dropdown menu appears quickly. There is only a slight delay when you move to the next top menu as the previous drop down still remains for a second. Colours look great.
I am the handsome one in the crowd.
|
|
|
|
|
Just a small one - under the Company tab, you have an item "Refunds"....sends a really negative message IMHO. Since the page is also about a money back guarantee, why not something like "Satisfaction Guarantee"
Probably nothing, just my 2c
"Now I guess I'll sit back and watch people misinterpret what I just said......"
Christian Graus At The Soapbox
|
|
|
|
|
I believe the usage of tables and div elements to format your page is going against the current trend of design and is definitely non-standard. For example, td elements should never contain div elements, and the menu bar could be expressed as an unordered list.
You can get some design ideas from:
http://www.alistapart.com/[^]
and
http://www.csszengarden.com/[^]
to get your design near to the standard.
-- modified at 20:57 Saturday 18th November, 2006
|
|
|
|
|
Hi there,
I am new at ajax. I have a simple form of registration in php language.In that there are two fields, username and password. Now when I entered the username, I have to confirm it with the mysql database that it is already exist or not. I have used dojo ajax framework for javascript.
So can I get the value of the database in JavaScript? If yes then how?
Hope for the good reply in a short time,
Thank you in advance.
|
|
|
|
|
JavaScript should NEVER directly interact with a database, but you could have it call your PHP code and then that could do the validation.
BTW if you are just starting with AJAX i would not use a framework, rather I would get to know the concept first before letting other people write which script I use.
Brad
Australian
"The Probability of you doing that makes 0 look like a big number" - My Mate Oxley
|
|
|
|
|
Hi all,
I have tried creating separate ASP pages in Interdev 6.0. They are working fine. I now want to ceate a new project in Interdev.
I tried creating it but the first wizard asks for name and the second wizard wants to specify server and mode. I am curently using IIS on my local machine...
Plz let me know wat should I enter in the edit box....I tried entering localhost, but it pops up an error message.
Need some help in this.
Thanks in advance.
Regards,
Shraddha
|
|
|
|
|
I want to add text edit controls(like bold, italic etc used in yahoo mail) in a email compose
page.I want to take a richTextBox control to write email message text.I
want code in PHP.
Bharat Bhusanam
|
|
|
|
|
|
Well - I'm not sure exactly where this question belongs, but I'll try here first.
I've got a control inside a dll called pRaiseBox.dll - created in VB6. Originally, this control was called by a Win32 VB app using the createobject method. I can also create it in VB script just fine:
'works just fine
dim box
set box = CreateObject("pRaiseBox.cRaiseBox")
dim reason
reason = box.showform()
'works just fine
Now I am trying to use this same control, but I am trying to instantiate it via Javascript:
var TextEntryBox = new ActiveXObject("pRaiseBox.cRaiseBox"); //works
var NoteReason = TextEntryBox.showform(); //box pops up but hangs
but when I show the form, it hangs. By that I mean the control is visible, but if I put the mouse over it, I get nothing but an hourglass and ultimately I have to kill the browser.
I'm not sure of the differences between CreateObject and new ActiveXObject (from what I can tell, there's very little), but can anyone think of any reason this might happen? Perhaps I need to recompile this dll with a different setting in the project?
Thanks!
Marcus
Marcus Spitzmiller
You will never hear me say, "I listen to pretty much everything." That is for people who don't care what goes in their ears.
|
|
|
|
|
I have...
-formA (web form) it contains a listbox
-formB (pop up window from formA) using window.showModalDialog in a javascript within a "script" tag in form A.aspx file
what i want is to take two value of text boxes in formB
and use them to add a new list item in formA listbox
how can i implement that?
Thanx in advance
Best Regards
3ala2
|
|
|
|