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 Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

calling an invisible asp from javascript

Status
Not open for further replies.

bereza

Technical User
Jun 14, 2006
105
EU
Hi everybody,

I click on an image to call a javascript function to go to another by using following code

function func1(){
window.location.href='addToTable.asp?FID=2
}

what i want to do is from the function func1 first call an invisible asp page which does not have any html, to do som controlls (database) and if everything is ok then call window.location.href='addToTable.asp?FID=2 if not it will show a alert message.
how can i fix it?
thanks
 
I don't know what you mean by "invisible asp page".

The method func1 that you have posted is not correct syntax (and will not work).

Why not forward to the "invisible asp page", do the server-side processing and then redirect (from the server-side) based on the result?

Cheers,
Jeff

[tt]Jeff's Blog [!]@[/!] CodeRambler
[/tt]

Make sure your web page and css validates properly against the doctype you have chosen - before you attempt to debug a problem!

FAQ216-6094
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top