|
Don't confuse "AJAX" with "ASP.NET AJAX" - the former is a handy cleaning powder and useful technique for creating interactive web pages; the latter belongs in The ASP.NET Forum[^].
Citizen 20.1.01 'The question is,' said Humpty Dumpty, 'which is to be master - that's all.'
|
|
|
|
|
Hi , Does anyone know a good online Perl Learning resourse
Thanks,
Happy Programming!
Regards,
ctrlnick !
|
|
|
|
|
this is my code
function onDigittxtkeypress(e)
{
var ie = true;
if(!e)
e = window.event;
else
ie = false;
var code;
if (e.keyCode) code = e.keyCode;
else if (e.which) code = e.which;
if(code<48||code>57)
if(ie)
e.keyCode = 0;
else
return false;
else;
}
it works is ie but does not in ff.
please help me.
|
|
|
|
|
Install FireBug and check the error console.
Poor formatting aside, I'm curious as to why there is an else as the last statement in the function?
It's also not going to help having an accented character in the HTML:
<input type="text" önkeypress="return onDigittxtkeypress(event)" />
|
|
|
|
|
Johnny ² wrote: It's also not going to help having an accented character in the HTML:
That's actually the fault of the CP forum software - it subtly corrupts JS event handler names to prevent them from being used in the actual post HTML.
Citizen 20.1.01 'The question is,' said Humpty Dumpty, 'which is to be master - that's all.'
|
|
|
|
|
mostafarastgar wrote: onkeypress="return onDigittxtkeypress(event)"
Change this to:
onkeypress="onDigittxtkeypress"
Citizen 20.1.01 'The question is,' said Humpty Dumpty, 'which is to be master - that's all.'
|
|
|
|
|
You can catch keycode only in keydown/up.
|
|
|
|
|
|
You may find that users will be rather surprised if you start sending their usernames and passwords to another domain (and with good reason). The fact that the other site doesn't give a mechanism to do this also suggests that it may not be a good idea. If you have control over the koko site, you'd probably be better off implementing a robust authentication system (or hosting the application on that domain/machine).
If you do that request from the client, what you'd be doing is handing off authentication control to the client, which means it's very insecure (ie. you trust the client to send the request to the right place, and you trust that the "Yes" answer isn't just made up by modifying the client script). Really don't do this.
To do it on the server side would allow some control over the authentication, but the method to do it would depend on what languages and technologies you use on the server side. Essentially all you'd be doing is a GET request with the parameters as sent from the user, and checking the response for Yes/No.
|
|
|
|
|
Thanks A lot , I know some of what you said But
the problem is that I don't have Any control in KOKO Site .
They told me to use this URL To InterAct With Them " www.koko.com?username=xxx&password=xxx "
And the koko site will return
1 for yes
or
0 for No
(I know it is very silly but beleive me there is no way )
Ok the returned value will be in the response so cold you explain how can i use the GET Request
in Small Code snippet
You have To Search About The Truth Of Your Life
Why Are you Here In Life ?
|
|
|
|
|
Not really sure how you are making the request and getting a result.
Are you opening the site in a new window with the values in the query string, and then waiting for the new page to post back to your site with a query string with a yes or no?
that would not only be very insecure, i have no idea what you would acheive from it.
What do you do with the other site once it is signed in?
|
|
|
|
|
Has anyone applied since the word was spead last week that they were looking for new beta testers? Has anyone else been contacted?
I sent my email last week and havent heard anything yet.
|
|
|
|
|
Huh?
"The clue train passed his station without stopping." - John Simmons / outlaw programmer
"Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon
|
|
|
|
|
I saw on one of the code project daily emails last week that MS were looking for beta testers for Internet Explorer 8.
The article linked to the IE8 blog where it was requested that new applicants send an email to apply to be a beta tester. I had sent one last week but have had no response. I wrote this to see if anyone else had tried and heard anything.
|
|
|
|
|
I'm weary of using "STABLE" MS software, let alone MS software in the Beta stage
Regards,
--Perspx
"The Blue Screen of Death, also known as The Blue Screen of Doom, the "Blue Screen of Fun", "Phatul Exception: The WRECKening" and "Windows Vista", is a multi award-winning game first developed in 1995 by Microsoft" - Uncyclopedia
|
|
|
|
|
Okay. I didn't see that and was wondering.
"The clue train passed his station without stopping." - John Simmons / outlaw programmer
"Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon
|
|
|
|
|
AFAIK, you can just download the beta. Don't think you need to register...
I'll save you the trouble though: It's faster than IE7. It's slower than just about every other browser, and some of the faster glaciers. Tabs are hosted in separate processes, except when they aren't. Crashes recover cleanly, except when they don't. Opening new tabs still involves waiting around watching the UI fight with itself for a while before letting you actually use the new tab. There's some new thing - WebSlices - that seems suspiciously similar to some of the "web desktop" stuff from the '90s, except less flexible. And GMail is broken.
Citizen 20.1.01 'The question is,' said Humpty Dumpty, 'which is to be master - that's all.'
|
|
|
|
|
Thats odd, the slowness is how i would describe my experience with firefox (pre v3, havent got 3 yet) over IE7.
IE7 opens up almost instantly and so do most pages, and tabs. However firfox seems to take a few seconds more to load and each new tab takes a about a second or two more to load. perhaps this is just me. Im using windows vista x64. perhaps IE7 is just optimised more for that, where it has the opposite reaction on Firefox. I will get v3 soon to see what the difference is.
|
|
|
|
|
Damn, are they ever going to fix that UI tab slowness issue? It's a small thing but it drives me up the wall - totally unnecessary. Glad they're moving towards seperate processes though (even if still flawed).
When you say "Crashes recover cleanly", does this mean that it restarts and reopens the same page? A lot of the crashes I've seen (in earlier versions) have been reproducible most/all of the time on a given page, so I expect to be seeing a lot of infinite loops while it repeatedly finds it's unable to deal with some pages...
|
|
|
|
|
stevio wrote: I expect to be seeing a lot of infinite loops while it repeatedly finds it's unable to deal with some pages...
Yes, that can be a problem.
Citizen 20.1.01 'The question is,' said Humpty Dumpty, 'which is to be master - that's all.'
|
|
|
|
|
Oh well, at least we're supposed to be getting a load of new standards compliance
|
|
|
|
|
I have a client that wants a simple web site to expose his construction business. He wants basic 'about' information, contact details, and a portfolio of completed contracts. I offered him a cheap one, with maintenance done by me, or a slightly more expensive one with maintenance functions. He chose the former, agreeing rather to pay me when he needs something added or updated.
What are my options in getting something simple out of the door quickly? Are there any template type systems that I can use to get started, even with initial static content, where I can later expand to using a proper CMS later, to add other businesses etc. I don't want the complexities of setting up a full CMS right now.
modified on Monday, August 4, 2008 11:43 AM
|
|
|
|
|
You could install something like WordPress, which is small and easy, and you can then offer the maintenance functions as a bonus.
|
|
|
|
|
www.ewisoft.com
I found this to be simple enough to get something out into the world quickly, and it is free.
There are upgrades for it.
you can get a flash kit to start the site too, that kind of impresses the non tech types.
------------------------------------
"Password Protected? Your dealing with Geeks, just turn it on, type Gandalf and you're in!" - Frankie Boyle
|
|
|
|
|
Have a look here[^].
Just add content.
|
|
|
|