Hi,
I have used AJAX lots before and I wondered if it was possible to set variables from an AJAX file E.G. an ajax file could set
var set1 = 10;
var set2 = 55;
with both variables coming from an external file called by AJAX
Could you tell me the JS side for performing the request and the format of the file that is requested.
Regards,
Sam RUdge
samarudge
16
Posting Whiz
Recommended Answers
Jump to PostJSON is certainly the way to go for complex data but for simple, predicatable stuff you can D.I.Y. with something like the solution I posted here:
http://www.daniweb.com/forums/post924561.html#post924561
Server-side there won't be much difference in speed/load but client-side will be (signifcantly?) less loaded by using a D.I.Y. approach.
…
All 4 Replies
ShawnCplus
456
Code Monkey
Team Colleague
Airshow
416
WiFi Lounge Lizard
Team Colleague
samarudge
commented:
Good response and link to relevent post
+2
samarudge
16
Posting Whiz
Airshow
416
WiFi Lounge Lizard
Team Colleague
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.