Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

Reply
 
Thread Tools Display Modes
Old Nov 14th, 2005, 5:54 PM   #1
paulchwd
Hobbyist Programmer
 
paulchwd's Avatar
 
Join Date: Mar 2005
Posts: 139
Rep Power: 4 paulchwd is on a distinguished road
Exclamation OnClick HElP

I'm desiging a site and need the user to push a button and have an image change

my logic is: the image src is a varibale that when the button is pushed the variable is incremented

what is wrong with my code. The sub nxt_OnClick() is not working


<%

Dim x

x=1

nxt_OnClick(x)

sub nxt_OnClick(y)

  y = y + 1

  response.write y

end sub


%>

<html>

<body>


<form name = "f1" >

<input type= "button" name= "nxt" id= "nxt" value= "nxt" >

</form>
</body>
</html>
paulchwd is offline   Reply With Quote
Old Nov 15th, 2005, 12:44 PM   #2
java_roshan
Professional Programmer
 
Join Date: Mar 2005
Location: Student of University of Mumbai, Maharashtra State, India
Posts: 344
Rep Power: 4 java_roshan is on a distinguished road
May be u need to specify 2 things!
The action of the form which leads to the generation of the dynamic page (asp) and shows the value of y
and redirect from that page back to the form page

may be the onclick event of the button should direct to the page...
__________________
Visit: http://www.somaiya.edu
java_roshan is offline   Reply With Quote
Old Nov 15th, 2005, 5:03 PM   #3
paulchwd
Hobbyist Programmer
 
paulchwd's Avatar
 
Join Date: Mar 2005
Posts: 139
Rep Power: 4 paulchwd is on a distinguished road
interesting...never thought of that


but i dont want the page to be refreshed .... its a property management site and the user is gonna have to be able to scroll through various photos
paulchwd is offline   Reply With Quote
Reply

Bookmarks

« Previous Thread in Forum | Next Thread in Forum »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump




DaniWeb IT Discussion Community
All times are GMT -5. The time now is 8:56 PM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC