•
•
•
•
What is DaniWeb IT Discussion Community?
You're currently browsing the JavaScript / DHTML / AJAX section within the Web Development category of DaniWeb, a massive community of 397,590 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 2,896 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our JavaScript / DHTML / AJAX advertiser: Lunarpages Web Hosting
Views: 4888 | Replies: 1
![]() |
| |
•
•
Join Date: May 2006
Posts: 1
Reputation:
Rep Power: 0
Solved Threads: 0
I am trying to write a page that uses Javascript to post a variable to another page so that it does not appear in the address bar.
There are pages out there that almost do what I would like them to do, but are confusing... part of the reason for this is that I am new to Javascript.
The Problem:
I currently have a page named "Document List" that has a list of hyperlinks as follows:
<a href="showdata.cfm?variable=1">Show Document 1</a>
<a href="showdata.cfm?variable=2">Show Document 2</a>
<a href="showdata.cfm?variable=3">Show Document 3</a>
<a href="showdata.cfm?variable=4">Show Document 4</a>
I have read a post to these forums at http://www.daniweb.com/techtalkforums/thread32396.html, but it does not quite do what I am looking for because the "variable" value does not seem to be POSTED to the new page.
So the end game here is to replace these hyperlinks with some mechanism (Forms or otherwise) to avoid the situation that a user replaces the "variable" value in the address bar. Javascript seems to be able to do it, but I cannot seem to get the thing to work.
Are you able to assist?
Thank you in advance
There are pages out there that almost do what I would like them to do, but are confusing... part of the reason for this is that I am new to Javascript.
The Problem:
I currently have a page named "Document List" that has a list of hyperlinks as follows:
<a href="showdata.cfm?variable=1">Show Document 1</a>
<a href="showdata.cfm?variable=2">Show Document 2</a>
<a href="showdata.cfm?variable=3">Show Document 3</a>
<a href="showdata.cfm?variable=4">Show Document 4</a>
I have read a post to these forums at http://www.daniweb.com/techtalkforums/thread32396.html, but it does not quite do what I am looking for because the "variable" value does not seem to be POSTED to the new page.
So the end game here is to replace these hyperlinks with some mechanism (Forms or otherwise) to avoid the situation that a user replaces the "variable" value in the address bar. Javascript seems to be able to do it, but I cannot seem to get the thing to work.
Are you able to assist?
Thank you in advance
![]() |
•
•
•
•
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
•
•
•
•
•
•
•
•
DaniWeb JavaScript / DHTML / AJAX Marketplace
- Why javascript does not work on firefox? (JavaScript / DHTML / AJAX)
- how to send data in POST method using javascript (JavaScript / DHTML / AJAX)
- How to call a ServerSide Script through Javascript (ASP.NET)
- help with javascript (moved from javascript forum) (PHP)
- help with javascript and forms (PHP)
- AIM Buddy Virus HELP!!! (Windows NT / 2000 / XP / 2003)
Other Threads in the JavaScript / DHTML / AJAX Forum
- Previous Thread: database application on cd
- Next Thread: XHTML Validation ???



Hybrid Mode