/    Sign up×
Community /Pin to ProfileBookmark

Evoking web services with JavaScript?

I would like to be able to execute a PHP page on the server via JavaScript and set the results to a variable. What I’m trying to do is something like Microsoft’s RDS — returning server data to modify the page — but sans Microsoft. Any idea?

Thanks

to post a comment
JavaScript

3 Comments(s)

Copy linkTweet thisAlerts:
@AdamGundryApr 29.2003 — You could create a hidden frame or iframe, and load in it the PHP page. You could then use the innerHTML property of the frame to get the returned data.

Adam
Copy linkTweet thisAlerts:
@DACauthorApr 29.2003 — Great idea! I'll give it a try. It would be easy if elements such as <TD> had a SRC attribute. This functionaliy is something that for a long time I though was missing from HTML.
Copy linkTweet thisAlerts:
@DACauthorApr 29.2003 — Well, that SHOULD have worked. I get the correct data back into the IFRAME, but the innerText attribute returns nothing. I'll keep plugging away...
×

Success!

Help @DAC 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.16,
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,
)...