HTML Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsWeb DesignHTML Programming

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old November 3rd, 2009, 03:06 PM
mwaraitch mwaraitch is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Nov 2007
Posts: 25 mwaraitch User rank is Corporal (100 - 500 Reputation Level)mwaraitch User rank is Corporal (100 - 500 Reputation Level)mwaraitch User rank is Corporal (100 - 500 Reputation Level)mwaraitch User rank is Corporal (100 - 500 Reputation Level) 
Time spent in forums: 2 h 12 m 8 sec
Reputation Power: 0
Changing url

Hi,
I have a link on index page of my site leading to mydomain.com/index2.html. I need to set it up in a manner that when some one clicks that link and goes to index2.html, the url in the browser only shows un mydomain.com
If someone can advice.

Reply With Quote
  #2  
Old November 3rd, 2009, 04:53 PM
millercepbs millercepbs is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Feb 2006
Posts: 208 millercepbs Negative: is most likely a SPAMMER and a traitor to the cause. 
Time spent in forums: 19 h 30 m 12 sec
Reputation Power: 0
The only free client side way to do that is with frames. You can mask is nicely where the user isn't really aware of it, but otherwise you're going to have to go crazy and buy some software to do this. The meta tag method doesn't really work.

Just out of curiosity, why do you want to do that? Sometimes people try to pass unencrypted passwords that way...I wouldn't recommend that.

And on the frames side, just maximize the single frame and set all the paramaters you want...scrollbar, etc.

Reply With Quote
  #3  
Old November 19th, 2009, 03:25 PM
mwaraitch mwaraitch is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Nov 2007
Posts: 25 mwaraitch User rank is Corporal (100 - 500 Reputation Level)mwaraitch User rank is Corporal (100 - 500 Reputation Level)mwaraitch User rank is Corporal (100 - 500 Reputation Level)mwaraitch User rank is Corporal (100 - 500 Reputation Level) 
Time spent in forums: 2 h 12 m 8 sec
Reputation Power: 0
Quote:
Originally Posted by millercepbs
Just out of curiosity, why do you want to do that? Sometimes people try to pass unencrypted passwords that way...I wouldn't recommend that.

And on the frames side, just maximize the single frame and set all the paramaters you want...scrollbar, etc.

May be question was not correctly framed. i want to achieve something like justhost.com
On the main page in you see that when a country is changed their is a change in the images etc below. I thought its achieved using change of page wherein the url above remains same. Not sure though

Reply With Quote
  #4  
Old November 19th, 2009, 03:53 PM
Kravvitz's Avatar
Kravvitz Kravvitz is offline
CSS & JS/DOM Adept
Dev Shed God 24th Plane (16500 - 16999 posts)
 
Join Date: Jul 2004
Location: USA
Posts: 16,670 Kravvitz User rank is General 17th Grade (Above 100000 Reputation Level)Kravvitz User rank is General 17th Grade (Above 100000 Reputation Level)Kravvitz User rank is General 17th Grade (Above 100000 Reputation Level)Kravvitz User rank is General 17th Grade (Above 100000 Reputation Level)Kravvitz User rank is General 17th Grade (Above 100000 Reputation Level)Kravvitz User rank is General 17th Grade (Above 100000 Reputation Level)Kravvitz User rank is General 17th Grade (Above 100000 Reputation Level)Kravvitz User rank is General 17th Grade (Above 100000 Reputation Level)Kravvitz User rank is General 17th Grade (Above 100000 Reputation Level)Kravvitz User rank is General 17th Grade (Above 100000 Reputation Level)Kravvitz User rank is General 17th Grade (Above 100000 Reputation Level)Kravvitz User rank is General 17th Grade (Above 100000 Reputation Level)Kravvitz User rank is General 17th Grade (Above 100000 Reputation Level)Kravvitz User rank is General 17th Grade (Above 100000 Reputation Level)Kravvitz User rank is General 17th Grade (Above 100000 Reputation Level)Kravvitz User rank is General 17th Grade (Above 100000 Reputation Level) 
Time spent in forums: 4 Months 3 Days 20 h 1 m 50 sec
Reputation Power: 2121
Bah. A Jumpbox. Not keyboard user friendly.

Anyway, they're using PHP (a popular server-side language) to dynamically pick which page elements to show based on which country is selected.

If you gave us more details regarding your original question, perhaps we could suggest a solution.
__________________
Spreading knowledge, one newbie at a time.

Learn CSS. | PHP includes | X/HTML Validator | CSS validator | Dynamic Site Solutions

Design/program for Firefox (and/or Opera), apply fixes for IE, not the other way around.

Check out my blog.

Reply With Quote
  #5  
Old November 19th, 2009, 04:21 PM
f_nietzsche's Avatar
f_nietzsche f_nietzsche is offline
Autodidact
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Mar 2008
Location: Canada, yo
Posts: 122 f_nietzsche User rank is Second Lieutenant (5000 - 10000 Reputation Level)f_nietzsche User rank is Second Lieutenant (5000 - 10000 Reputation Level)f_nietzsche User rank is Second Lieutenant (5000 - 10000 Reputation Level)f_nietzsche User rank is Second Lieutenant (5000 - 10000 Reputation Level)f_nietzsche User rank is Second Lieutenant (5000 - 10000 Reputation Level)f_nietzsche User rank is Second Lieutenant (5000 - 10000 Reputation Level)f_nietzsche User rank is Second Lieutenant (5000 - 10000 Reputation Level) 
Time spent in forums: 3 Days 53 m 20 sec
Reputation Power: 74
Send a message via MSN to f_nietzsche
I'm offering up two ideas:

1) Use Ajax to load the content of another document within the page.

2) Use Apache mod-rewrite to rewrite the URL.
__________________
*

But to teach us, that for the similitude of the thoughts, and Passions of one man, to the thoughts, and Passions of another, whosoever looketh into himself, and considereth what he doth, when he does think, opine, reason, hope, feare, &c, and upon what grounds; he shall thereby read and know, what are the thoughts, and Passions of all other men, upon like occasions.

Reply With Quote
  #6  
Old Yesterday, 04:16 AM
hdewantara hdewantara is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Oct 2009
Location: Jakarta, Indonesia.
Posts: 4 hdewantara User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 3 h 42 m 28 sec
Reputation Power: 0
Send a message via MSN to hdewantara
sorry, twice posting.
please delete this post only. thanks.

Last edited by hdewantara : Yesterday at 04:31 AM. Reason: twice posting

Reply With Quote
  #7  
Old Yesterday, 04:28 AM
hdewantara hdewantara is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Oct 2009
Location: Jakarta, Indonesia.
Posts: 4 hdewantara User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 3 h 42 m 28 sec
Reputation Power: 0
Send a message via MSN to hdewantara
I guess javascript can not do that: document.URL is readonly, and window.location.href means page redirection.

The only way to do that is thru server's scripting (e.g: PHP). Or you might want to consider dynamic content (XMLHTTPRequest: Ajax, jQuery, etc).

Hendra D.

Reply With Quote
  #8  
Old Yesterday, 09:26 AM
Hugh of Borg's Avatar
Hugh of Borg Hugh of Borg is offline
Contributing User
Dev Shed Novice (500 - 999 posts)
 
Join Date: Jun 2004
Location: Switzerland
Posts: 853 Hugh of Borg User rank is Brigadier General (60000 - 70000 Reputation Level)Hugh of Borg User rank is Brigadier General (60000 - 70000 Reputation Level)Hugh of Borg User rank is Brigadier General (60000 - 70000 Reputation Level)Hugh of Borg User rank is Brigadier General (60000 - 70000 Reputation Level)Hugh of Borg User rank is Brigadier General (60000 - 70000 Reputation Level)Hugh of Borg User rank is Brigadier General (60000 - 70000 Reputation Level)Hugh of Borg User rank is Brigadier General (60000 - 70000 Reputation Level)Hugh of Borg User rank is Brigadier General (60000 - 70000 Reputation Level)Hugh of Borg User rank is Brigadier General (60000 - 70000 Reputation Level)Hugh of Borg User rank is Brigadier General (60000 - 70000 Reputation Level)Hugh of Borg User rank is Brigadier General (60000 - 70000 Reputation Level)Hugh of Borg User rank is Brigadier General (60000 - 70000 Reputation Level)Hugh of Borg User rank is Brigadier General (60000 - 70000 Reputation Level) 
Time spent in forums: 1 Week 4 Days 3 h 19 m 34 sec
Reputation Power: 703
Quote:
Originally Posted by mwaraitch
May be question was not correctly framed. i want to achieve something like justhost.com
On the main page in you see that when a country is changed their is a change in the images etc below. I thought its achieved using change of page wherein the url above remains same. Not sure though

And what is the reason you don't want to use different urls for two different languages? There's no real benefit from what you are trying to do...
__________________
- Hugh of Borg

The first thing young borg are taught: Keep away from Microsoft software!

Reply With Quote
Reply

Viewing: Dev Shed ForumsWeb DesignHTML Programming > Changing url


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump




 Free IT White Papers!
 
How to Present Effectively Online
This white paper offers practical and actionable advice on the key steps that any presenter should consider as they plan and execute a Webinar or online meeting.

 
Open Source Security Myths
Open Source Software (OSS) is computer software whose source code is available to the general public with relaxed or non-existent intellectual property restrictions (or arrangement such as the public domain), and is usually developed with the input of many contributors.

 
Power and Cooling Capacity Management for Data Centers
This paper describes the principles for achieving power and cooling capacity management.

 
Scalable, Fault-Tolerant NAS for Oracle - The Next Generation
For several years NAS has been evolving as a storage alternative for Oracle databases, and for good reason: NAS is quite often the simplest, most cost-effective storage approach for Oracle. Learn about the benefits that HP's approach to scalable NAS brings to Oracle environments in this comprehensive white paper.

 
Understanding Web Application Security Challenges
This white paper discusses many common threats and preventive measures for Web application security, and explains what you can do to help protect your organization.

 

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 




© 2003-2009 by Developer Shed. All rights reserved. DS Cluster 5 Hosted by Hostway
For more Enterprise Application Development news, visit eWeek