Jump to content

starting with html all over again


virtualadz

Recommended Posts

i really dont know what to do, after listening from you all i thought it would be something with my pc, no it isn't it.i checked it with other pc's , having different os, different browsers, different internet connections, but one things' same in all the result that i get here: page refreshes page refreshes.if this happens then the visitors will lose sessions and all sorts of trouble will break out. ??????????????????? :):):blink::blink::)

Link to comment
Share on other sites

the customer will lose products in their cart, and i heard some other things might happen as well, for example to users might sometime be sharing the cart and account, or something like that. that's way all the links on my site, have session id's appended to them.but this anchor link doesn't , so ..........

Link to comment
Share on other sites

.. i think i will leave this here, this doesn't get any more into my head. thanks all for your replies and confirming that it works on your end so i can be atleast sure that it has worked everywhere else apart from 3 pc's in the world. my site has already taken much late, i will now move ahead many 1000 thanks. i will make it live in a few hrs..

Link to comment
Share on other sites

The page always refreshes, as far as I know. When you have a link like this:http://yoursite.com/page.html#nameThe browser will load page.html first, and then scroll down to the #name anchor. It even happens on your home computer with local files, it just happens too fast for you to notice. If you want to see this for yourself, then make a page with a named anchor and load it in your browser. Now, with the page open, go into the file explorer and rename or delete the page. When you click a link with a named anchor you will get a 404 error, because it's trying to load the page but can't find it.A link is a link, it will load the page. If it has a named anchor, it will also scroll. But it always loads the page.

Link to comment
Share on other sites

The page always refreshes, as far as I know.  When you have a link like this:http://yoursite.com/page.html#nameThe browser will load page.html first, and then scroll down to the #name anchor.  It even happens on your home computer with local files, it just happens too fast for you to notice.  If you want to see this for yourself, then make a page with a named anchor and load it in your browser.  Now, with the page open, go into the file explorer and rename or delete the page.  When you click a link with a named anchor you will get a 404 error, because it's trying to load the page but can't find it.

my link is as such: <a href="faq.php#order">Text</a> <a name="order">Text</a>with the above links, the page refreshes on my 1st visit, but acts as it should onthe 2nd, i have checked it with 3 pc's, browsers, os, internet connections. but it works for everyone who has checked it here apart from me.should i try and give, links as such<a href="/faq.php#order"> , you can see the difference in my above link and thisi have not used links as in the fashion you mentioned, so probably nothing to refresh the page :) here's my code:
<?php/*  $Id: faq.php,v 1.4 2002/11/19 01:48:08 dgw_ Exp $*/define('NAVBAR_TITLE', 'FAQ');define('HEADING_TITLE', 'FAQ');define('TEXT_INFORMATION', 'We have put together an extensive list of the Frequently Asked Questions (FAQ), by our customers.<br><br><strong><a href="faq.php#order">Order</a></strong><br><a href="faq.php#how_order">How do I order?</a><br><a href="faq.php#gift">How can I purchase a Gift Voucher?</a><br><a href="faq.php#minimum">Do you have any Minimum Order Quantity?</a><br><a href="faq.php#safety">Is it safe to disclose my financial details on Bhuratea.com?</a><br><br><strong><a href="faq.php#billing">Billing</a></strong><br><a href="faq.php#payments">What type of payments do you accept?</a><br><a href="faq.php#samples">Do you provide free samples?</a><br><br><strong><a href="faq.php#shipping">Shipping</a></strong><br><a href="faq.php#country">Do you ship to my country?</a><br><a href="faq.php#cost">How much does shipping cost?</a><br><a href="faq.php#time">How long will my tea take to get to me?</a><br><br><strong><a href="faq.php#misc">Misc.</a></strong><br><a href="faq.php#support">How do I contact you incase I need any support?</a><br><a href="faq.php#returns">Under what cases can I return your product/s?</a><br><a href="faq.php#wholesale">How can I order large quantities of tea?</a><br><br><hr><h3><a name="order">Order</a></h3><strong><a name="how_order">How do I order?</a></strong><br>You need to first choose the products you wish to buy, then add them to cart, the details of which will be shown on your left. You may then continue shopping on BhuraTea.com, or proceed to checkout by clicking on the link present on the top right corner of every page.<br><br><strong><a name="gift">How can I purchase a Gift Voucher?</a></strong><br>A gift voucher can be purchased in the same way you purchase a product. You will be then sent an email with details in it. Please also read our <a href="' . tep_href_link(FILENAME_GV_FAQ) . '"><u>Gift Voucher FAQ</u></a>.<br><br><strong><a name="minimum">Do you have any Minimum Order Quantity?</a></strong><br>No, we do not have a Minimum Order Quantity, purchase as much as you wish.<br><br><strong><a name="safety">Is it safe to disclose my financial details on Bhuratea.com?</a></strong><br>Yes, it is absolutely safe to disclose your financial details on Bhuratea.com, please take some time to read our <a href="' . tep_href_link(FILENAME_CONDITIONS) . '"><u>Terms & Legals</u></a> and <a href="' . tep_href_link(FILENAME_PRIVACY) . '"><u>Privacy Policy</u></a>.<hr><h3><a name="billing">Billing</a></h3><strong><a name="payments">What type of payments do you accept?</a></strong><br>We accept payments by Paypal, Cheque/Direct Deopsit (Indians only), Wire Transfer, Western Union Money Transfer. Please visit our <a href="' . tep_href_link(FILENAME_SHIPPING) . '"><u>payments page</u></a> for more info on this.<br><br><strong><a name="samples">Do you provide free samples?</a></strong><br>No, currently we do not provide free samples.<hr><h3><a name="shipping">Shipping</a></h3><strong><a name="country">Do you ship to my country?</a></strong><br>We ship to USA and all countries under Europe.<br><br><strong><a name="cost">How much does shipping cost?</a></strong><br>Please visit our <a href="' . tep_href_link(FILENAME_SHIPPING) . '"><u>shippings page</u></a> for more info on this.<br><br><strong><a name="time">How long will my tea take to get to me?</a></strong><br>Usually our tea products will reach you within 15 days, based on your location the delivery period may differ. Also have a look at our <a href="' . tep_href_link(FILENAME_SHIPPING) . '"><u>shippings page</u></a>.<hr><h3><a name="misc">Misc.</a></h3><strong><a name="support">How do I contact you incase I need any support?</a></strong><br>We love to hear from you, please write to us at: info@bhuratea.com, or use our online email form: <a href="' . tep_href_link(FILENAME_CONTACT_US) . '"><u>contact us</u></a>, we will be glad to respond to your concerns/suggestions.<br><br><strong><a name="returns">Under what cases can I return your product/s?</a></strong><br>It depends on certain factors, please visit our <a href="' . tep_href_link(FILENAME_SHIPPING) . '"><u>returns page</u></a> for more info on this.<br><br><strong><a name="wholesale">How can I order large quantities of tea?</a></strong><br>Please use our online mail form to make a <a href="' . tep_href_link(FILENAME_WHOLESALE) . '"><u>wholesale inquiry</u></a>.<hr>');?>

Link to comment
Share on other sites

I see your page online, with me the page gets loaded every time. It gets loaded from the cache, so it's very quick, but the status bar does appear for a fraction of a second while the page loads from cache. You might have caching disabled on your browser, but the page will reload, the question is will it come from cache or not.

Link to comment
Share on other sites

I see your page online, with me the page gets loaded every time.  It gets loaded from the cache, so it's very quick, but the status bar does appear for a fraction of a second while the page loads from cache.  You might have caching disabled on your browser, but the page will reload, the question is will it come from cache or not.

do you also see the page being refreshed on your first visit, other said that they dont see it being refreshed.
Link to comment
Share on other sites

I think its like what justsomeguy said, If the computer is fast then it reloads so quick from the cache that you dont get to see the progress in the status bar, propably when the computer's slow you may get to see the progres in the status bar.. and when you hit the back button after you clicked the link and scrolled down, you go to the previous view [i mean like to the top of the page where you clicked the link] and not to the previous page or somthing, so the page must be reloading.....

Link to comment
Share on other sites

I think its like what justsomeguy said, If the computer is fast then it reloads so quick from the cache that you dont get to see the progress in the status bar, propably when the computer's slow you may get to see the progres in the status bar..  and when you hit the back button after you clicked the link and scrolled down, you go to the previous view [i mean like to the top of the page where you clicked the link] and not to the previous page or somthing, so the page must be reloading.....

ok, i was not asking for that.my linking is in this way,<a href="faq.php#top">Text</a>and not this:<a href="http://www.bhuratea.com/faq.php#top">Text</a>so there 's absolutely no question for refresh, even if that question arises then it doesn't matter as all of you dont see the pages being refreshed. i myself dont see it but on my second visit. all my problem was it being refrehsed on the first visit on my end.
Link to comment
Share on other sites

Okay. I see something that might be causing this problem. If the url is this...http://www.domain.com/file.php#whatever, and you click any of the scroll links on your page, it's going to refresh because it's taking you to a page with the same link (or maybe a different #whatever) but it's taking out the www. I don't know why it's doing this, frankly, but someone else might. Try entering the url without the www's, and see if it refreshes on your first visit.You other guys will see what I mean if you enter the url with the www's, and then click a scroll link.

Link to comment
Share on other sites

Okay. I see something that might be causing this problem. If the url is this...http://www.domain.com/file.php#whatever, and you click any of the scroll links on your page, it's going to refresh because it's taking you to a page with the same link (or maybe a different #whatever) but it's taking out the www. I don't know why it's doing this, frankly, but someone else might. Try entering the url without the www's, and see if it refreshes on your first visit.You other guys will see what I mean if you enter the url with the www's, and then click a scroll link.

i think i was not clear. ok here againlinks are in this fashion: <a href="faq.php#order">TExt</a>this works on your end so and mine too on the 2nd visit. so probably there's nothing to do with that.if i try this: <a href="#order"> , then you know what happens (i mentioned it earlier).i am not at all doing it in these ways:<a href="www.site.com/file.php#ordeer">Tead</a>or <a href="/faq.php#ordr">Dadad</a>that's it :)
Link to comment
Share on other sites

OK, let me say this again:It will always refresh.It doesn't matter which visit it is.It will always refresh.If you want to prove it to yourself, disable caching for the page, or turn off caching in your browser.It will always refresh.Are there any other questions with this?If you don't want it to refresh, you will have to use javascript to jump around, and I'm not even sure if you can do that reliably.

Link to comment
Share on other sites

I dont think that would matter if you use just http://site.com orhttp://www.site.com, cos when you enter the page first time ofcourse it will take time to load, cos its the first time..i entered the site http://www.bhuratea.com/faq.php and clicked "How do I order?" the url from then changes to http://bhuratea.com/faq.php#how_orderI dont see any problem in this, its pretty much how it works......

Link to comment
Share on other sites

Okay. All I know is, visiting http://www.site.com and clicking the anchor link makes the page refresh and then scrolls down. Visiting http://site.com and clicking the link does not refresh. I don't know why this is, but that's the fact of the matter. My page doesn't do that, and you might want to ask your server about it Virtualadz.

i will ask them about it. thanks :) and goodnight
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...