473,795 Members | 2,805 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

how to hide URL in address bar

18 New Member
Hi,


im new to html. i don't know how to hide query string in url.
Example:

http://localhost:1067/sample/default...=Category&id=3

i want to hide the query string in this URL.
Like
http://localhost:1067/sample/defaultx.aspx
this.
pls reply soon
Mar 24 '08 #1
9 4086
mrhoo
428 Contributor
You cannot hide any part of the url that was used to call the document.
google cross site scripting for the reasons why.
Mar 24 '08 #2
hsriat
1,654 Recognized Expert Top Contributor
Hi,


im new to html. i don't know how to hide query string in url.
Example:

http://localhost:1067/sample/default...=Category&id=3

i want to hide the query string in this URL.
Like
http://localhost:1067/sample/defaultx.aspx
this.
pls reply soon
Use method="post" for the form, instead of get.
Mar 24 '08 #3
deepikashalini
18 New Member
Use method="post" for the form, instead of get.

Hi,

thanks for reply i use form.method='Ge t' but no change.
other than any options
Mar 24 '08 #4
hsriat
1,654 Recognized Expert Top Contributor
Hi,

thanks for reply i use form.method='Ge t' but no change.
other than any options
I told you to use method="post", not method="get"
Mar 24 '08 #5
deepikashalini
18 New Member
i use 2 aspx page in my project.
http://localhost:1067/sample/defaultx.aspx?r nd=0.4722948071 64148&filter=Ma gazineCategory& id=68

i want to display in my project name only.
http://localhost:1067/sample
Mar 24 '08 #6
deepikashalini
18 New Member
Use method="post" for the form, instead of get.

i used post method but no change. and i want to display my project name only.
Mar 24 '08 #7
hsriat
1,654 Recognized Expert Top Contributor
i used post method but no change. and i want to display my project name only.
Perhaps you have added these variables in the action attribute.
Post your code here, then I may tell you what's wrong.
Mar 24 '08 #8
deepikashalini
18 New Member
Perhaps you have added these variables in the action attribute.
Post your code here, then I may tell you what's wrong.


var producturls = {

Category:"../defaultx.aspx?r nd=" +Math.random()+ "&filter=Catego ry",
}
Mar 24 '08 #9
hsriat
1,654 Recognized Expert Top Contributor
var producturls = {

Category:"../defaultx.aspx?r nd=" +Math.random()+ "&filter=Catego ry",
}
This string will always be shown, as its a part of the URL.

The suggestion I gave you is only possible if you are using form action.
Mar 24 '08 #10

Sign in to post your reply or Sign up for a free account.

Similar topics

2
30036
by: Xerxes | last post by:
Hi, can you tell me how I can make a <label> hidden? I have hidden the field after the label: var M_Hide = isNS4?'hide':'hidden'; var M_Show = isNS4?'show':'visible'; ..... <label id="uid">UserID: </label> <input name="UserID" type="text" value="" size="20"> <script language="Javascript1.2" type="text/javascript1.2">
9
2768
by: sergio | last post by:
Hi all, I have created the following script that will show/hide a menu based on checkboxes. It works fine in Opera but not on IE6! Does anybody knows a workaround this problem? Thanks for your response. Sergio ------------------------------------------------ <script language="JavaScript" type="text/javascript">
10
13463
by: DettCom | last post by:
Hello, I would like to be able to display or hide fields based on whether a specific Yes/No radio button is selected. This is in conjunction with a posting a just made here in the same group related to checkboxes. Thanks!!!
19
6934
by: dmiller23462 | last post by:
Hi guys....I have absolutely NO IDEA what I'm doing with Javascript but my end result is I need two text boxes to stay hidden until a particular option is selected....I've cobbled together the JavaScript in this code from a couple different sites but I'm not 100% sure what each line is doing...This is the ASP code that I'm using for the page....Take a look at the JavaScript code and please let me know what each line is doing....I have been...
5
3035
by: Ray | last post by:
Hi, I was wondering if anyone has any idea how this can be done. I am trying to show/hide navigation links based on server names or ip addresses. So if, someone visits a particular url/ip address he/she sees only a particular set of navigation links. I am sure this can be done using some kind of Java script or VB script, just not sure how. I have two servers with different server names and IP addresses. Based on user's input I need to...
12
13387
by: Ray Cassick \(Home\) | last post by:
Ok, I have finally decided that there is ONE big thing about VB.NET (not sure if this same thing exists in C# yet) that really ticks me off. Either I am missing the point here or I have not found what I need to accomplish my need. I am creating a Windows forms user control and am inheriting from System.Windows.Forms.UserControl. There are several properties that are part of the Usercontrol class that I do not want to expose so I am...
1
2367
by: desmoduck | last post by:
Hey Group, I may just be suffering brain fade but I have searched around and not been able to find a solution. My difficulty: I have a datagrid that shows name, address, tel, fax and toll free number. I would like to hide the empty values. For instance; no fax = no fax number row, no toll free = no TF row. I'm sure it must be something I am overlooking or not thinking through. All I can give back is my gratitude.....
13
7561
by: rupak | last post by:
Hi! I have a multiple selection of checkboxes <input type='checkbox' name='coffee' id='col1' value='Address'/> <input type='checkbox' name='coffee' id='col2' value='Name'/> <input type='checkbox' name='coffee' id='col3' value='ID'/> <input type='checkbox' name='coffee' id='col4' value='UserName'/> <input type='checkbox' name='coffee' id='col5' value='Code'/>
9
1837
by: PomonaGrange | last post by:
HI All, I've been trying to make a membership management type script. This script would have a database with the members contact info and which office they hold, if any. The problem I am having is I would like the script to show the president's and vice president's Contact info all the time, but hide the contact info for everyone else when viewed by the general public, then if the user logs in all contact information is displayed, for everyone....
2
4445
by: sumanta123 | last post by:
Dear Sir, In my servlet proggram when i am click the link of ApplicationStatus.jsp in the address bar the url link is showing http://01hw173228:81/help/ApplicationStatus.jsp. When i submit the request it will go to servelt page in the and the request address bar is showing http://01hw173228:81/servlet/customerserviceServlet.ApplicationStatusSevlet;jsessionid=D9D00D2A2C7D55901DCFFF992B8F8E75 My doubt is when i submit it should...
0
9522
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10216
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10165
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10002
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
7543
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5437
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
4113
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3728
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2921
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.