@rmail2006authorDec 18.2009 — #Well I am using a flash application and I have set it to call a javascript function when someone clicks add as friend..
What I am wanting to do is pass variables from the javascript function to a page which will add them into the database, without the user knowing that page has been opened.
@JMRKERDec 18.2009 — #Well I am using a flash application and I have set it to call a javascript function when someone clicks add as friend..
What I am wanting to do is pass variables from the javascript function to a page which will add them into the database, without the user knowing that page has been opened.
Thanks ?[/QUOTE]
Another question then ...
Why open a page that you do not want to user to see?
Why not just save the variables to be passed to the database directly and skip the page opening?
Sorry to be a pain ... I'm just having a problem seeing the reason for the non-opening of a site!
@aj_nscDec 18.2009 — #The OP was obviously unaware of the use of AJAX (as I pointed out). I'm sure the words 'open' and 'request' could be used interchangeably,
@slaughtersDec 18.2009 — #AJAX works - Another approach (what I call the 'Poor Mans Ajax') is to just have an IFRAME with a "display='none'; position:absolute" style.
Then just assign its 'src' property to be the URL you want with all the appropriate name/value pairs attached.
Works great when all you need is a simple insert or update to a DB and have not yet setup any AJAX libraries.
@aj_nscDec 19.2009 — #Who needs a library for AJAX? All that's required is a GetXmlHttpObject function available in about a billion different places that google knows of.