Dynamic Include

Arch4ngel

Senior Contributor
Joined
Mar 22, 2004
Messages
940
Location
Montreal, QC
Currently I have 2 files.

I want to include the first if the client have a resolution of lesser than 1024x768.

I want to include the second if he have 1024x768 or higher.

But I could only get the resolution from Javascript(client-side)... I want to do a dynamic include depending on the client resolution.

And I really need to use <!-- #include file="something.inc" -->
 
Is it possible? Because in WWW environment:

1. You (client) send page request to Web Server
2. Server process the page (ASP.NET process)
3. Server response back to page to you (client).

Program (javascript) can only get the client resolution in 3rd step, but your include file need to process in 2nd... I think unless you trigger the 'postback' process again, which is not so practical.

I just curious, how the client resolution will affect the server side process?
 
Back
Top