Click here to Skip to main content
16,011,611 members
Home / Discussions / Web Development
   

Web Development

 
GeneralRe: shopping cart Pin
susree15-Oct-03 23:29
susree15-Oct-03 23:29 
Generaljava script problem while using in web application. Pin
susree15-Oct-03 19:44
susree15-Oct-03 19:44 
GeneralRe: java script problem while using in web application. Pin
theJazzyBrain16-Oct-03 0:52
theJazzyBrain16-Oct-03 0:52 
GeneralRe: java script problem while using in web application. Pin
susree16-Oct-03 2:23
susree16-Oct-03 2:23 
GeneralRe: java script problem while using in web application. Pin
theJazzyBrain16-Oct-03 7:08
theJazzyBrain16-Oct-03 7:08 
GeneralRe: java script problem while using in web application. Pin
Heath Stewart16-Oct-03 9:43
protectorHeath Stewart16-Oct-03 9:43 
GeneralRe: java script problem while using in web application. Pin
susree16-Oct-03 19:32
susree16-Oct-03 19:32 
GeneralRe: java script problem while using in web application. Pin
Heath Stewart17-Oct-03 3:14
protectorHeath Stewart17-Oct-03 3:14 
It matters where you do this. An older implementation of our application web site used to do this and I can assure you it works.

If you add the startup script in your button.Click event handler (or after the appropriate logic in Page_Load) it can work, but you have to write the javascript right. If you right it as a function, something has to call that function. Otherwise, whichout a function "wrapper", the script is executed when it is encountered. Judging by your previous example, you put such code in a function and expected a client-side event on a button or something to fire it. You don't want to do that. If nothing else, at least make the onload event of the BODY call your function, but this would require that you either parse the HTML yourself (very bad!) or make the body a server control (but that's bad too, so just don't put such code in a method).

 

-----BEGIN GEEK CODE BLOCK-----
Version: 3.21
GCS/G/MU d- s: a- C++++ UL@ P++(+++) L+(--) E--- W+++ N++ o+ K? w++++ O- M(+) V? PS-- PE Y++ PGP++ t++@ 5 X+++ R+@ tv+ b(-)>b++ DI++++ D+ G e++>+++ h---* r+++ y+++
-----END GEEK CODE BLOCK-----
GeneralRe: java script problem while using in web application. Pin
susree17-Oct-03 4:40
susree17-Oct-03 4:40 
QuestionWeb Project Desing Problem ..Can u give Solution? Pin
coolvcguy15-Oct-03 12:51
coolvcguy15-Oct-03 12:51 
AnswerRe: Web Project Desing Problem ..Can u give Solution? Pin
Sage16-Oct-03 8:30
Sage16-Oct-03 8:30 
GeneralRe: Web Project Desing Problem ..Can u give Solution? Pin
coolvcguy16-Oct-03 9:35
coolvcguy16-Oct-03 9:35 
QuestionActual position of a control in HTML? Pin
CherezZaboro15-Oct-03 7:05
CherezZaboro15-Oct-03 7:05 
AnswerRe: Actual position of a control in HTML? Pin
Heath Stewart16-Oct-03 10:23
protectorHeath Stewart16-Oct-03 10:23 
GeneralASP Classic Hassle Pin
-- NA --15-Oct-03 2:52
-- NA --15-Oct-03 2:52 
GeneralRe: ASP Classic Hassle Pin
steveman99915-Oct-03 3:17
steveman99915-Oct-03 3:17 
GeneralRe: ASP Classic Hassle Pin
-- NA --15-Oct-03 3:28
-- NA --15-Oct-03 3:28 
Generalsimple table/backround question Pin
keegan14-Oct-03 10:02
keegan14-Oct-03 10:02 
GeneralRe: simple table/backround question Pin
ZoogieZork14-Oct-03 12:24
ZoogieZork14-Oct-03 12:24 
GeneralRe: simple table/backround question Pin
Amitux14-Oct-03 19:44
Amitux14-Oct-03 19:44 
GeneralRe: simple table/backround question Pin
susree17-Oct-03 2:57
susree17-Oct-03 2:57 
Generaliis smtp logging Pin
coryjscott13-Oct-03 9:33
coryjscott13-Oct-03 9:33 
GeneralRefresh frame with javascript Pin
chubbysilk13-Oct-03 8:26
chubbysilk13-Oct-03 8:26 
GeneralRe: Refresh frame with javascript Pin
Sage16-Oct-03 8:42
Sage16-Oct-03 8:42 
GeneralRe: Refresh frame with javascript Pin
chubbysilk16-Oct-03 11:16
chubbysilk16-Oct-03 11:16 

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.