|
AJAX.NET could be a nice way to do this.
The best way to accelerate a Macintosh is at 9.8m/sec² - Marcus Dolengo
|
|
|
|
|
I agree that you would do well to look at AJAX, but not necessarily AJAX.NET. It's very good, but (like other "black box" solutions such as jQuery) is a) all too often used in a way that is like using a sledgehammer to crack a nut (as in this sort of scenario) and b) you won't really learn very much. As your stated goal is to learn, I would suggest you research how to write your own AJAX scripts for this exercise. Here[^] might be a good place to start.
|
|
|
|
|
The buttons that do stuff on the server should be server controls <asp:Button>. The buttons that do something only on the client should be <button>. Anything that needs to be reference by both, like the calculator readout should be server controls and your javascript functions can refer to them using document.getElementById('<%=yourControlName.ClientID %>').
|
|
|
|
|
Hi guys,
I have written a function on onbeforeunload which uses setTimeout('myclose=false',100); - which should set the myclose variable as false afte 100ms interval.
But when I navigate to some other page from this page, it sometimes is not set as false and remains true - this behaviour is uncertain but usual one.
The strange thing is that when I put breakpoint in visula studio and just debug linebyline , it is set set to false always.
So i added sleep for 2000ms, afte settimeout call, but all in vain ...
So what can be the reason ?
- Ajay Kale
|
|
|
|
|
I haven't tested it, but I believe the problem is the page is being unloaded before the script has a chance to execute. Try returning false from the onbeforeunload to prevent it from completing.
I know the language. I've read a book. - _Madmatt
|
|
|
|
|
Mark ,
Actaully there are 5 tabs on my page - say A, B, C, D and E (which are separate pages in itself).
I will tell you exact situation.
When I navigate from tab A to tab C - then this problem is seen.
But when I do same from A to D or A to E, function works well.
- Ajay K
|
|
|
|
|
Why are you using onbeforeunload when navigating between tabs? It makes no sense. Perhaps you need to explain more or re-think your architecture.
I know the language. I've read a book. - _Madmatt
|
|
|
|
|
|
If you have problem then you can ignore the message.....okk...
|
|
|
|
|
It is not a case of just ignoring it, i was merely trying to advise so it doesn't happen again.
Site rules;
Please do not post links to your question into an unrelated forum such as the lounge. It will be deleted. Likewise, do not post the same question in more than one forum.
It is for the benefit of all users, if you place a question in more than one place, it just causes confusion, when it starts get answered by different people in different places, and then the same thing gets repeated, or clarification is given i one place an not the other etc.
Anyway, if i hadn't mentioned it, someone else will and or if they have the authority, will just delete it, then you will be confused wondering where it went and why it was deleted.
|
|
|
|
|
I think, the forum is not being utilized to answer any related question but for posting the rules.
|
|
|
|
|
The guidelines are posted at the top of most other forums.
We are here to help solve problems and learn. If you can't be bothered with a few simple guidelines to make this a productive and enjoyable forum for all, or respond negatively when someone reminds you of them, then this is not the community for you.
I know the language. I've read a book. - _Madmatt
modified on Friday, September 3, 2010 8:41 AM
|
|
|
|
|
Wow.....
Then this ought to be verified at the time of registration....right and that too in person visit verification....
In this world if the output is acieved then no worries, how it is achieved - everyone forgets the guidelines...
So much experienced guys couldnot answer a simple question....(enjoyinggg ?????)
|
|
|
|
|
Dave has given you the reason why crossposting is not allowed. The site is for the benefit of all, and having the same question in multiple locations means that it will be hard for others who use the site to follow your problem. If, however, your question is only in one place then you have made life easier for others, and they will thank you for it.
|
|
|
|
|
Ajay Kale New wrote: setTimeout('myclose=false',100)
This is invalid syntax. In your example, myclose=false is a string and would need to be evaluated, which is not what setTimeout does. You should replace this with a function call which performs the actual operation instead.
|
|
|
|
|
like the answer that was given to him in the Q&A post? wonder who posted it
|
|
|
|
|
Ah. In that case, a 5 for yourself sir.
|
|
|
|
|
Hi
How can we make our search page in site be indexed in google ?
the page would get the search query via querystring as a url encoded string then decode it to show the reasult for search .
I wonder how it should be introduced to google to index that page with different search queries ?
Thanks if any help
|
|
|
|
|
Hi!
You can actually use the SERP checker tools to find out your position without trawling page after page.
---------------------------------------------------
custom logo design
|
|
|
|
|
|
Have to admit I'm somehwat surprised it works in them - but Firefox has a pretty good Error console built in you know - look on the Tools menu. That straightaway tells you that the problem is that "Display" is undefined (Hence my "somewhat surprise".)
You need to define this before any of the functions are called but after the page loads - so either add another script block at the foot of the page with just
var Display = document.getElementById("Display");
in it, or add this Iwithout the var) as a one-line function in your block at the top and call it from the body onload method. - if you do it this latter way, you'll need to also define
var Display;
separately as a global variable outside the function.
-- Modified Sunday, August 29, 2010 3:42 PM
|
|
|
|
|
bfis108137 wrote: It works in ie8, opera, and chrome
It doesn't work properly in chrome.
I just tried. The first calculation works, any subsequent one doesn't.
I think your logic is flawed when you calculate, think about when you use a normal calculator. The result is put back into the first operand. if another digit is then pressed instead of an operation the operand is cleared and you start to loadup the new 1st operand.
|
|
|
|
|
I am using below code to open twitter in iframe,
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
<HEAD>
<TITLE> New Document </TITLE>
<META NAME="Generator" CONTENT="EditPlus">
<META NAME="Author" CONTENT="">
<META NAME="Keywords" CONTENT="">
<META NAME="Description" CONTENT="">
</HEAD>
<BODY>
<iframe src="http://twitter.com" width ="100" height="100" border="0" > </iframe>
</BODY>
</HTML>
It is opening the twitter.com but not in iframe,the web page is loaded in entire browser.I can't understand why this is happening???
Thanks in advance for any help,
Punit
|
|
|
|
|
twitter probably has it's own iframe checking code to break out of it because they do not want you to use it that way, it's why they came up with their API.
|
|
|
|
|
I'm working on a WPF program and I have a frame that reads an html file that I have included in the project. In the html file there is an input box.
[CODE][/CODE]
Is there anyway I can make the value something I can change in the rest of the program, say back in the .cs file, instead of just a constant set number placed there, like if I want to change the number based on user input? I won't know all the numbers it will need to be ahead of time.
|
|
|
|