/    Sign up×
Community /Pin to ProfileBookmark

Creating a function to refresh page…

I need to create a function that when the user clicks on the ‘ Add New Item ‘ button, will insert the data into the database and refresh the page to allow the user to add another item. Is this possible?

to post a comment
JavaScript

5 Comments(s)

Copy linkTweet thisAlerts:
@sftrprodApr 24.2007 — What kind of database?
Copy linkTweet thisAlerts:
@wacaraauthorApr 24.2007 — Its a SQL Database. The page is written in ASP. Would you like to see some of the code.
Copy linkTweet thisAlerts:
@rootApr 24.2007 — Ohh err, gettin yer binarys out... Next thing you'll be showing us your compiler!

on a more serious note: It does help to not only post your code, it also helps if you post in the right forum... this is JavaScript and not ASP...
Copy linkTweet thisAlerts:
@wacaraauthorApr 25.2007 — I posted my question here because I thought that I should be looking for a javascript function but I will switch to the ASP forum. Also, my code is very long so I'm not sure what part to post.
Copy linkTweet thisAlerts:
@rootApr 25.2007 — if its long code then you put it into a .txt file and upload it with your post... The script or file appears as a clickable link to download.
×

Success!

Help @wacara spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 6.17,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @nearjob,
tipped: article
amount: 1000 SATS,

tipper: @meenaratha,
tipped: article
amount: 1000 SATS,

tipper: @meenaratha,
tipped: article
amount: 1000 SATS,
)...