خرید بک لینک

Vote count: 0

I'm trying to create a link on a web page that upon clicking should download/open a text file on the client with the content I have rendered run-time. Saving the file on the server side is not an option since the contents of the file changes based on user's filters that I have as a functionality on the web page.

Here's how I have my HTML code:

        <tr>
            <th>Column1</th>
            <th>Column2</th>
            <th>Link</th>
        </tr>
        <tr>
            <td>Data1</td>
            <td>Data2</td>
            <td><a download href=""file1.txt"">Click me</a></td>
        </tr>
        <tr>
            <td>Data1</td>
            <td>Data2</td>
            <td><a download href=""file2.txt"">Click me</a></td>
        </tr>    

I caot keep creating file[X].txt on the server since the contents of it changes every time based on user's filters that I have else where as logic in my code. Also, where do I feed in my data as contents of the file if I don't have a file in the first place?

What's the best way to solve this problem?

asked 43 secs ago

- - , .

برچسب: نویسنده: استخدام کار تاريخ: چهارشنبه 21 بهمن 1394 ساعت: 13:17

صفحه بندی