/    Sign up×
Community /Pin to ProfileBookmark

Call a page witout showing it

Hi,

I was just wondering if there is a way to call or ping a page from javascript without showing it to the user?

Thanks

to post a comment
JavaScript

8 Comments(s)

Copy linkTweet thisAlerts:
@JMRKERDec 18.2009 — And what would be the purpose of this invisible display?

Best way for a user not to see something is not create it in the first place!
Copy linkTweet thisAlerts:
@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.

Thanks ?
Copy linkTweet thisAlerts:
@aj_nscDec 18.2009 — In your above post, replace the word 'page' with 'script':

AJAX
Copy linkTweet thisAlerts:
@rmail2006authorDec 18.2009 — Thanks Very much for the help ?
Copy linkTweet thisAlerts:
@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!
Copy linkTweet thisAlerts:
@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,
Copy linkTweet thisAlerts:
@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.
Copy linkTweet thisAlerts:
@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.
×

Success!

Help @rmail2006 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 5.18,
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: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

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

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...