Click here to Skip to main content
16,012,468 members
Home / Discussions / Web Development
   

Web Development

 
GeneralRe: can't view a simple web service Pin
Paul Watson29-Aug-02 22:38
sitebuilderPaul Watson29-Aug-02 22:38 
GeneralRe: can't view a simple web service Pin
Anonymous29-Aug-02 22:58
Anonymous29-Aug-02 22:58 
GeneralRe: can't view a simple web service Pin
Vortex29-Aug-02 22:59
Vortex29-Aug-02 22:59 
Generalsorting, please help :-( Pin
Sonu Kapoor26-Aug-02 4:33
Sonu Kapoor26-Aug-02 4:33 
GeneralDatagrid layout Pin
Uncle Monkey26-Aug-02 2:42
Uncle Monkey26-Aug-02 2:42 
Questionjavascript for Mac IE ? Pin
Smitha Nishant25-Aug-02 19:19
protectorSmitha Nishant25-Aug-02 19:19 
AnswerRe: javascript for Mac IE ? Pin
Paul Watson26-Aug-02 8:55
sitebuilderPaul Watson26-Aug-02 8:55 
GeneralRe: javascript for Mac IE ? Pin
Smitha Nishant27-Aug-02 1:10
protectorSmitha Nishant27-Aug-02 1:10 
function subscribe(event,ourform){
	if(document.all)
		kcode=window.event.keyCode;
	else
		kcode=event.which;
		
	var isIE = document.all?true:false;
	var isNS = document.layers?true:false;

	if (isIE){	
		cond=(event && (kcode == 13 || kcode==1 || kcode==0));	
	}
	else{			
		cond=(event && (kcode == 13 || kcode==1));
	}
	
	if (cond){
		if(checkemail()){
	
			document.addelec.func.value="subscribe";	
			document.addelec.action="elecsubs_action.php";
			document.addelec.submit();
			return true;
		}
		else
			return false;
	}
	else 
		return true;
}

And I call it as :-
<input type=button value="Subscribe" onClick="return subscribe(event,this.form)">


This code works fine in IE and Netscape.

Tweety

It's easy to sit there and say you'd like to have more money. And I guess that's what I like about it. It's easy. Just sitting there, rocking back and forth, wanting that money.

GeneralRe: javascript for Mac IE ? Pin
Paul Watson27-Aug-02 1:49
sitebuilderPaul Watson27-Aug-02 1:49 
GeneralRe: javascript for Mac IE ? Pin
Jeremy Falcon30-Aug-02 3:09
professionalJeremy Falcon30-Aug-02 3:09 
GeneralRe: javascript for Mac IE ? Pin
Paul Watson30-Aug-02 3:20
sitebuilderPaul Watson30-Aug-02 3:20 
QuestionUsing Interdev on with localhost? Pin
Barry Lapthorn25-Aug-02 11:32
protectorBarry Lapthorn25-Aug-02 11:32 
AnswerRe: Using Interdev on with localhost? Pin
Nick Parker25-Aug-02 16:58
protectorNick Parker25-Aug-02 16:58 
GeneralRe: Using Interdev on with localhost? Pin
Barry Lapthorn26-Aug-02 1:29
protectorBarry Lapthorn26-Aug-02 1:29 
Generalproblem running simple ASP.Net application!! Pin
kinf23-Aug-02 5:21
kinf23-Aug-02 5:21 
GeneralRe: problem running simple ASP.Net application!! Pin
Paul Watson25-Aug-02 6:58
sitebuilderPaul Watson25-Aug-02 6:58 
GeneralRe: problem running simple ASP.Net application!! Pin
Todd Smith27-Aug-02 20:11
Todd Smith27-Aug-02 20:11 
GeneralJMail by DEMIC Pin
TommyKnocker21-Aug-02 22:16
TommyKnocker21-Aug-02 22:16 
QuestionPassing Style(sheet) into Custom Control?? Pin
MStanbrook21-Aug-02 10:20
MStanbrook21-Aug-02 10:20 
AnswerRe: Passing Style(sheet) into Custom Control?? Pin
Not Active22-Aug-02 6:58
mentorNot Active22-Aug-02 6:58 
Generalonline billing for students !!! Pin
drmzunlimited21-Aug-02 9:35
drmzunlimited21-Aug-02 9:35 
GeneralRe: online billing for students !!! Pin
TigerNinja_22-Aug-02 11:55
TigerNinja_22-Aug-02 11:55 
GeneralForce At Bottom Of Page Pin
Nick Parker21-Aug-02 6:34
protectorNick Parker21-Aug-02 6:34 
GeneralRe: Force At Bottom Of Page Pin
Maciej Pirog21-Aug-02 7:43
Maciej Pirog21-Aug-02 7:43 
GeneralRe: Force At Bottom Of Page Pin
Jeremy Falcon21-Aug-02 8:02
professionalJeremy Falcon21-Aug-02 8:02 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.