Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Calling a javascript function AND an asp one 1

Status
Not open for further replies.

newbie404

Programmer
Mar 2, 2004
19
IE
Hi,

I have an asp page where I have a form. Within the form I have a button which does NOT submit the form, but instead calls a javascript function which does some things for me. I have found that I also want to call an asp function on the page when the button is pressed. Is there any way of doing this? At the momemtn for just the javascript one I am using...

<INPUT TYPE="button" VALUE="Store" Class="input" onClick="javascript:storeme('<%=lcount%>t<%=tcount%>'); return false;">


Any suggestions welcome!
thanks
A
 
asp runs on the server before the page gets to the browser so to run any asp function the page would have to be sumitted.



Chris.

Indifference will be the downfall of mankind, but who cares?
A website that proves the cobblers kids adage.
Nightclub counting systems

So long, and thanks for all the fish.
 
thanks. Thats what I thought, I just wasn't sure if this was the case for all functions.

Cheers for the clarification.
 
try using IFRAMES. the buttin can call the javascript normally and using an IFRAME call as ASP function...

Known is handfull, Unknown is worldfull
 
Thanks vbkris! So, the javascript will change the ifrsame location and that will run the function, and this page will return the results to it's parent?

Yikes! I can see myself messing this up... here goes.
 
absolutely...

Known is handfull, Unknown is worldfull
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top