HTML - Html To Reload Current Page Without Anything After The Pathname (? Etc.)
I have need to include a button in a SharePoint page that will refresh that page, but strip out everyting after the .aspx in the URL (meaning "?blablabla"). I know the simple code <a href="#">click me</a> will load the current page. But is there a code that will strip out everything after the "?" portion?
Similar TutorialsHello I have an issue where I have two web pages generated from Java servlets in NetBeans 5.5. The first of these pages requires some user input and when the page's form is submitted, this input is sent to the server. The server processes the input to generate a text file which is used by a graphing tool to plot a graph as a 'png' file. This text file and graph are then displayed in the HTML generated for the second page using 'href's in a table. This works perfectly well but if the user wants to alter the graph, they have to go back to page one and change the options and resubmit the form. This is where the problem occurs; in Firefox all is well but in Internet Explorer and Opera, when they resubmit the form, page two displays the original graph rather than the changed one. A hard 'refresh' is required via F5 to force the displaying of the new text file and graph. I have tried various of the HTML: meta http-equiv=\"refresh\" content=\"0\"> alternatives and forcinf reload upon loading the second page but the graph and text file still show original data. Is there a way to force the browser to 'pick up' the new text and graph generated so that the page display is correct? I see this more as an HTML issue rather than a servlets one hence its inclusion in this forum. Thanks Martin O'Shea. I have plain HTML on the main page and <iFrame> tag on it, inside tag i have URL to other page that using some script that forces host page to reload and show page from frame instead of it. Can i somehow stop it from messing my entire main page? I have a page and need an image to load from the server whenever the page is loaded (even if the user hits the back/forward button). I am aware of doing it with a META tag, but I only want it with one image - not every image on the page. Thanks in advance for the help! I've got a page that, on starting, checks its URL for a hash extension and behaves accordingly. So the hash, or lack thereof, is important. I want this page to contain some hyperlinks to itself, with various hash extensions. It doesn't work! If the URL is just to the page (eg. mypage.html) it reloads fine. But if the URL is, for example mypage.html#&e=extrastuff, the page doesn't reload at all. Is there a solution to this? Hello, I'm not sure if what I'm asking is possible using html, but I'm going to ask anyway... I'm trying to figure out how to have a sidebar randomly cycle through a series of images each time the page is loaded/refreshed. I'd like the same image displayed at the top and bottom of my sidebar, one image each at the top and bottom of my menu list. But I want to make sure that the image displayed at top and bottom are the same one. Here's my current version of the site: http://home.comcast.net/~blayne81/l5rrpgweb/ You can see the menu on the left side of the page and the two images at the top and bottom of the menu. I have another eight or so images I'd like it to display randomly or cycle through in order (it really doesn't matter which), whenever the page loads/reloads so I don't have to manually pick which image appears every page I write, the code will do that for me. Thanks for your help, Brienprime Hi, I am working on adding non java-script buttons on my website using CSS style sheets. I used a technique given at http://builder.com.com/5100-6371-5323375-2.html. I modified the colors a little but it is basically using technique 2 at this link. Everything works well with the exception of one issue. In Internet Explorer, when I press a link and then use the back button on the browser to return to the previous page, the link for the previous page is still selected and the button appears to still be "pressed". You can see this by going to http://www.apexmoves.com with internet explorer, clicking one of the buttons on the left side of the site, and then using the browser's back button. You will see that the link that was clicked is still selected and this button appears to be stuck in the down position. If you click anywhere else on the screen, the button is released. This is because the link for the pressed button is has the status of active. Does anyone have any ideas on how to solve this. Is that a way to make the status of this link "visited"? Any Ideas would be greatly appreciated. Thanks Brad Hi-- I was hoping someone could tell me how to edit this contact form so that it does not redirect to another page (the php page)? I'd like it to just simply send the message without leaving the page. The trick here is that I am using a javascript link to submit the form, NOT a button... Any help would be most appreciated! HTML PAGE: <body> <script type="text/javascript"> function submitform() { document.forms["form"].submit(); } </script> <form id= "form" method="POST" name="form" action="mailer.php"> Name: <input type="text" name="name" size="19"><br> <br> E-Mail: <input type="text" name="email" size="19"><br> <br> Message:<br> <textarea rows="9" name="message" cols="30"></textarea><br> <br> <a href="javascript: submitform()" >Searchthis</a> </form> </body> PHP FILE: <?php $to = "info@abcsofufos.com"; $subject = "ABCs of UFOs"; $name_field = $_POST['name']; $email_field = $_POST['email']; $message = $_POST['message']; $body = "From: $name_field\n E-Mail: $email_field\n Message:\n $message"; echo "Data has been submitted to $to!"; mail($to, $subject, $body); ?> Hello; I have text box & submit button in page_1 & I have text box & submit button in page_2. I want when write text in text box in page_1 it go directly to text box in page_2 & I want when click on submit button in page_1 it is like click on submit button in page_2. Assume page_2 located in other site www.page_2.com. How to do that.?? Not even sure what to call this actually... I received this message from a friend whose site I just put up. ---------------------------- When you click on say the Home Page, and then you click on something else then go back to the prvious page, it apparently displays the previous page on the home page for example. I was not able to recreate this on my computer, but apparently, [another] web developer said this is a fairly common problem. Do you know what he is referring to, and can it be fixed? ---------------------------- Here's the site in question. Nothing fancy, just individual HTML pages. http://www.soundadviceht.com/index.html I gotta admit, I have no earthly clue what he's talking about, unless he's relaying the message wrong? Any ideas what he's talking about? Alright, I haven't been coding in a while, just got back into it. Well my question is, how can I make the Home button, light up, ONLY on the Home Page (Chat button light up on Chat page) etc etc. I already have rollover image buttons on my site. Here is my HTML: Code: <html> <head> <link href="style.css" rel="stylesheet" type="text/css"> <title>Decker Designs</title> <SCRIPT LANGUAGE="JavaScript"> image1 = new Image(); image1.src = "http://s2.postimage.org/gn90899g/home2.png"; image2 = new Image(); image2.src = "http://s2.postimage.org/gocp4l44/chat2.png"; image3 = new Image(); image3.src = "http://s2.postimage.org/gp1i6sis/gal2.png"; </script> <a href="index.html" onmouseover="image1.src='http://s2.postimage.org/gn90899g/home2.png';" onmouseout="image1.src='http://s2.postimage.org/gn5p5k9w/home1.png';"> <img name="image1" src="http://s2.postimage.org/gn5p5k9w/home1.png" border=0></a> <a href="chat.html" onmouseover="image2.src='http://s2.postimage.org/gocp4l44/chat2.png';" onmouseout="image2.src='http://s2.postimage.org/gohnqmlg/chat1.png';"> <img name="image2" src="http://s2.postimage.org/gohnqmlg/chat1.png" border=0></a> <a href="gal.html" onmouseover="image3.src='http://s2.postimage.org/gp1i6sis/gal2.png';" onmouseout="image3.src='http://s2.postimage.org/goy743j8/gal1.png';"> <img name="image3" src="http://s2.postimage.org/goy743j8/gal1.png" border=0></a> </head> <body> Thanks everyone! Hi guys, Basically, I have a .swf that I want to put on multiple pages that is capable of linking to different pages without having to customise the xml per page. I'll try and explain myself: If I inset the flash file on page1, then I want to have links coming out of the flash that direct to http://site/page1/A and http://site/page1/B. I'd then like to use the same flash on page two, and have the links point to http://site/page2/A and http://site/page2/B. I basically need to have the link address take into account the page the user is on and add an A, or B to the address. Is this possible? Perhaps it will require javascript? I can't get my head around this, so any help would be much appreciated! Thanks What I want is to use some html or javascript or something to show the user of my site the exact page they are viewing. Then i would set it up so they could either bookmark it or copy the link. So a normal bookmarking script is not what I want. I need to be able to display the link the user is viewing on the page they are viewing. How can this be done? Hello, I am a beginner at HTML. I am new to this forum so I am sorry if this is posted in the wrong section. I'm trying to create a website that consists of a name and message input, and after you click send message, it sends it instantly to the current page under this input. So far I have this for my form: Code: <form method="post" action="" > <textarea cols="25" rows="1">Name</textarea> <br> <textarea cols="200" rows="10">Message</textarea> <br> <input type="file" /> <br> <input type="submit" value="Send Message" /> </form> How can I edit this code so that when one sends a message, it appears directly under this form and will place above any previously made messages, so that basically the most recent message appears at top. This is much like facebook messaging, when you send the message it appears above the message box and appears instantly. Thanks for the help. I want to display the current page URL in an input box, so users can copy the url from the input box rather than from the adress bar. Kinda like this: HTML Code: <input type="text" readonly="readonly" value=" -PAGE URL AUTOMATICALLY APPEARS HERE- " /> I've seen a code that can display the URL, but it displays as regular text, rather than inside an input box. Secondly, I was wondering if the same thing could be done(in an input box), but the url will be displayed inside of a link- like this: HTML Code: <input type="text" readonly="readonly" value=" <a target='_blank' href='PAGE URL APPEARS AUTOMATICALLY HERE'>Click here!<a> " /> Is this possible to do? Dear colleagues, I'm new in Web design and I don't know all HTML reference. I need one HTML statement to include into a page code, that allow to obtain the file name (like "pagename.html") of the page I load into the browser. This value of "pagename.html" I will use to load in a variable. For example: When I load "home.html", I need that this page have a HTML statement that detect its own filename "home.html". Once detected, I will use this value in a variable. I hope I'm explaining clearly. Thank you for your help! GusSiglo21 hai, could anyone plz tell me, how to open window popup in current html page ( that means not in different window) without statusbar,locationbar,titlebar and menubar and scrollbar. Thanks®ards kelvin I'm a designer with a working but by no means expert familiarity with html and css. My products are bundles that include photo slideshows, video and audio clips, text and links to pdf and tif files. They are distributed on dvds and thumb drives. I've been using Flash to assemble them. I understand that Flash is on the way out, at least insofar as HTML 5 is already able to do the many of the same things without the need of a proprietary browser add-in. I understand it is already capable of doing everything I currently do with Flash. My question: which if any of the current browsers are capable of performing all of these functions? I currently bundle Flash Player with my products, but I'd much rather bundle a browser. Thanks in advance, P Hi, Background: I have a small page that need to be embeded into a bounch of other html pages. Help needed: 1. Please provide the html chunk that I can use to embed the small page in to other html pages. 2. Is there a way of not using iframe? Can I use <Object> or <embed>? How? --------------------------- mba colleges in london hospitality management diploma So how would I manage to do so? I just need a simple set up, thank you. Have a look at the page here . The navigation needs to adjust to the page being watched.. So when you press a link in the navigation bar, that link needs to change with a big white block behind it. thank you Hi, I was trying to get the system date on a form and an excel spreadsheet, but with no success.I am new to the web concept.Any help will be appreciated. Thanks, |