Hi everyone, I can't use html forms so I can't use[ 'method=post']. Instead, I use [window location="…";]. I'm using the url to pass parameters, how can I hide them or hide the whole link? Thanks in advance.
Hi. I use this script. <script> //Hide status bar msg script- by javascriptkit.com //Visit JavaScript Kit (http://javascriptkit.com) for script //Credit must stay intact for use //configure status message to show var statusmsg="" function hidestatus(){ window.status=statusmsg return true } </script> at each link do this <a href = 'http://www.abc.com' onMouseover="return hidestatus()"> Hope this helps.
Did you mean hide the status bar message? Use the code below if yes. <script> function hidestatus(){ window.status='' return true } if (document.layers) document.captureEvents(Event.MOUSEOVER | Event.MOUSEOUT) document.onmouseover=hidestatus document.onmouseout=hidestatus </script> Code (markup):
Thanks but I meant to hide the link in the address bar so the user can see the passed parameters. I want to remind you that I'm not using a form so I can't use the post method. TKS IN ADVNS
Hide the link in the address bar or status bar? What do you mean by? Can you tell me what do you want to do?
thanks i used this way: <style type="text/css"> a.hidden { display: none; } </style> <p class="x_hide"><a href="http://site.com" class="hidden" id="myHiddenClass">BLABLABLA</a></p> But i have a question how to make it to be in top header, super top???!
I understand what you mean.. why can't you use a form? You can use AJAX to 'POST' the data, and then display a response. Alternatively, you could use javascript to create a FORM element, add all your elements that you want to submit and then run the submit() method. Which would hide the querystring (which i think is what you want). For example: <input id="txt1" name="txt1" type="text" /><br /> <input id="txt2" name="txt2" type="text" /><br /> <input id="btnSubmit" type="button" value="Submit" /> <script type="text/javascript" > document.getElementById("btnSubmit").onclick = function() { var myForm = document.createElement("form"); myForm.appendChild(document.getElementById("txt1")); myForm.appendChild(document.getElementById("txt2")); myForm.method = "POST" myForm.action = "MyHandler.php"; myForm.style.display = "none"; document.body.appendChild(myForm); myForm.submit(); } </script> Code (markup): If you have a few inputs then you could just place them within a DIV and add all the elements from that div to the form you created to shorten the code. (sorry, didn't realise the age of this thread until then)
Hey a simple solution would be to use http://s-urlz.com you can create a small url from your original one example http://forums.digitalpoint.com can be transformed into http://s-urlz.com/digitalpoint or http://s-urlz.com/10f9ec hidding your original url (you can even track the uses of urls on a world map with time interval) hope it helps
you can only do it via the post method. what you can do is when you submitted the data on a certain page, save it to a session then redirect to a page with no parameters so your user will not view the parameters..
seriously ... use bestcontactform.com. No programming knowledge required. their forms track keywords, too.