HTML - Post Button Open New Background Tab - Firefox
Hi,
I'm currently trying to get a submit (post) button to open the target page In a background tab in firefox, i.e. not auto switching to the new tab. I have heard something about firefox not supporting "focus ()" (at least i think thats it, im kind of a newb) due to security reasons, so is there any way around this at all? Thanks, Dani Similar TutorialsHello all. Our Website runs wordpress with a standard header, body and one sidebar template. We need to be able to have an image in the sidebar that when it is clicked, a different image is then opened at the top of the body. Is this possible? Thanks for your time. kevin I am very new with HTML and PHP and the code below I have a drop down select box and a submit button which uses PHP (this is from an example) But I need help on how to allow the user to select a report name from the drop down and click the Submit button and open a excel spreadsheet. If there is a simple way to do using HTML - that is OK. I just need some help getting started.... If "Position" is selected user clicks Submit button and the Excel file opens. First of all is that possible? And second then how do I accomplish? Thanks in advance. </body> </html> <ol> <form method="post" action="yourscript.php"> <select name="Reports"> <option value="Positions">Position <option value="Employees">Employees <option value="Transfers" selected>Transfers </select> </form> <td> </td> <td><input type="submit" value="Submit"></td> </tr> </form> </table> </form> Hello, this may sound like a dumb question: Is there a way build a button that on rollover makes an image appear beside it? thanks Hi, I have been searching around but am unable to find what I'm after... I am currently using the following code to open a new window (the new window needs to be 800x600). It currently does what I want it too. But instead of clicking on the word 'enter' to open the new window, is it possible to make an image do this instead? So when the user reaches the site and clicks the image a new window will open up (but at 800x600, not just a new window). If so I would be grateful if somebody could direct me to the correct coding to use. CSS: #enter { /* border:red solid 1px; */ margin-top:-300px; margin-left:auto; margin-right:50px; height:600px; width:800px; HTML: <a href="index2.html" target=open1 onClick="myRef = window.open('','open1', 'left=50,top=0,width=800,height=600,toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars =0,resizable=0,copyhistory=0');"> enter </a> Thanks Tom i want to create a button in html and when i click it i want to see an image but i want to see this image in a new window. how can i do it? Hey guys, I'm brand new to HTML and am teaching myself. I'm right in the middle of studying and have run into a problem. I've been working on my PC up until now but had to transition over to my Mac because it has Photoshop installed on it. I've been trying to open my HTML in Firefox but it isn't working. When I open with Firefox, all it does is bring Firefox to the front but doesn't open my HTML. I've done the same thing in Safari and it displays my code with no problem. Does anyone know what is causing this? Thanks in advance! How can I make a white background for my paragraph so it will be blended with my image ? ( the post that has white/red roses ) I tried background color code but it moves my paragraph under my image ! Please help ! http://www.asianlabrys.com/forum/ind...20&#entry71823 Hello! I've got a form called 'register_form1' on my website and, at first, the submit button is disabled (whether with disabled="true" or with a short javascript mybutton.disabled='true'). After inputing text in a few input areas, I would like the button to enable. And that is done by a short javascript. But, when submiting, the POST array is empty... $name, $username, $date are null strings (I suppose). the php file ....: PHP Code: <?php $name = $_POST['inputname']; echo($name); .................. and so on ?> On the other hand, if the button is enabled and never disabled, the POST method works. I've also tried the following: I changed the type of the button to 'button', not to 'submit', and then, when it was enabled, at a given moment (onClick event), I called myForm.submit(). Same results, nothing happened. Any help is welcome. Thank you in advance. Andrei I have this site I designed, of course I like it perfectly in Internet Explorer but when I tried it in FIREFOX something gets messed up. http://idesrecordings.com/testindex.htm Basically, you scroll over the cagalogue numbers [ID03] etc. If you click on one, a new smaller window opens. This works perfectly in IE for me. In Firefox, when I click on it, the smaller window opens, and the background window a few seconds later follows and displays the small page fullscreen as well. Basically, I want the homepage to always be in the background, and these seperate pages to always be in the smaller windows. I'm on a PC, I notice in Firefox it works properly if you RIGHT click on the items, but most people are going to LEFT click, so... I need it to work the same as it does in Internet Explorer. What do I do?! Code: <div id="Layer2" style="position:absolute; width:394px; height:291px; z-index:2; left: 93px; top: 165px" class="greenlinks"> <p><font face="Segoe Media Center"><font size="2"><b><font face="Arial Unicode MS">TAPE SERIES DISCOGRAPHY <br> </font></b><font face="Arial Unicode MS">[click on cataglogue number for more info]</font><font face="Arial Unicode MS" size="2"><br> </font></font></font></p> <p class="links"><font face="Arial Unicode MS" size="2"><a href="01cribdeath.htm" class="hoverlink" onMouseDown="MM_openBrWindow('01cribdeath.htm','','width=350,height=450')">[ID01]</a> CRIB DEATH "Nursery" c26<br> <a href="02climaxdenial.htm" class="hoverlink" onMouseDown="MM_openBrWindow('02climaxdenial.htm','','width=350,height=450')">[ID02]</a> CLIMAX DENIAL "Sexuality is Curse" c32<br> <a href="03skullerection.htm" onMouseDown="MM_openBrWindow('03skullerection.htm','','width=350,height=450')" class="hoverlink">[ID03]</a> SKULL ERECTION "Towards Failure" c20<br> <a href="04panicsville.htm" onMouseDown="MM_openBrWindow('04panicsville.htm','','width=350,height=450')" class="hoverlink">[ID04]</a> PANICSVILLE "Psychosexual" c40<br> <a href="05waltercarson.htm" onMouseDown="MM_openBrWindow('05waltercarson.htm','','width=350,height=450')" class="hoverlink">[ID05]</a> WALTER CARSON "Three Ellipticals" c30<br> <a href="06glassbath.htm" onMouseDown="MM_openBrWindow('06glassbath.htm','','width=350,height=450')" class="hoverlink">[ID06]</a> GLASS BATH "Grey Gardens c40<br> <a href="07chambers.htm" onMouseDown="MM_openBrWindow('07chambers.htm','','width=350,height=450')" class="hoverlink">[ID07]</a> N. CHAMBERS "Reciprocity" c30<br> <a href="08sixes.htm" class="hoverlink" onMouseDown="MM_openBrWindow('08sixes.htm','','width=350,height=450')">[ID08]</a> SIXES "Slit Ritual" c30<br> <a href="09caves.htm" class="hoverlink" onMouseDown="MM_openBrWindow('09caves.htm','','width=350,height=450')">[ID09]</a> CAVES "My Kingdom" c60<br> <span class="hoverlink"><a href="10kites.htm" class="hoverlink" onMouseDown="MM_openBrWindow('10kites.htm','','width=350,height=450')">[ID10]</a></span> KITES "Deny 1" c40<br> <a href="11raglani.htm" onMouseDown="MM_openBrWindow('11raglani.htm','','width=350,height=450')" class="hoverlink">[ID11]</a> RAGLANI "Oneism" c30<br> <a href="12sabuse.htm" onMouseDown="MM_openBrWindow('12sabuse.htm','','width=350,height=450')" class="hoverlink">[ID12]</a> SECRET ABUSE "Master I Have Desire" c30</font></p> hoverlink is the name of my CSS for rollover links. Hopefully this makes sense. I've noticed that *sometimes* my background image won't show up in Mozzila Firefox. My website is he http://www.surrealsource.com. Note that I said *sometimes* so it might download fine for you. But anyway, if you want to see the code, the only relevant part is this: Code: <body style="background-image: url('background.jpg');"> Hi, I have searched the forums for an answer to this question, but I couldn't find anything that solves my problem. I have designed a site in Dreamweaver. http://www.dirt-e-riders.com In IE 6 and IE 7 it shows correctly, but in firefox the backgound image for my table doesn't show. In effect I have two main tables, each sized at 100% width. Table 1 is at the top of the page and contains a bg. in jpg format Table 2 is just below that and also contains a bg. in gif format I didnt make the bg for table1 a gif cause the quality is too poor. The bg for table1 does not show, but the bg for table 2 does. I have already tried to read the bg from my CSS with no repeat but it does the same. Could someone please help me. I'm new to web design. Your help will be greatly appresiated. Thanks HI is there any way to disable the maximise button in mozilla firefox. I use this code and this is able to disable the maximsie button in IE but not in mozilla. Code: <SCRIPT LANGUAGE="JavaScript"> function popUp(URL) { day = new Date(); id = day.getTime(); eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=0,width=200,height=200,left = 540,top = 412');"); } </script> <body> <form> <input type=button value="Open the Popup Window" onClick="javascript:popUp('testme.html')"> </form> <body> I have a BUTTON element in which I am placing and image. It looks fine in IE, but firefox is adding some extra left padding to it. Setting margin and padding to the img does not help. Anyone know of a workaround? See the page at http://newsite.mortgageisrael.com/sh....asp?pageid=18 (2 places) HTML: Code: <button type="submit" class="formButton" style="width:77px"><img src="images/submit.gif" alt="Submit"/></button> CSS: Code: .formButton{ font-weight: bold; margin-top: 10px; cursor: pointer; height:25px; border:1px solid black; padding: 0px; text-align:center; } .formButton IMG{ padding: 0px; margin: 0px; } Thanks My tables background color (done with dreamweaver) isn't showing correctly in Firefox. but is in internet explorer. Code: <td colspan="2" rowspan="4" bgcolor="de8801">TEXT</td> is the code I'm using to define the background color? Can anyone help?! Anders For complicated reasons having to do with getting some Javascript to submit a form properly, which I won't get into here, I need to create a "do nothing" input button, whose mere presence lets the Javascript function work. Since this button does not do anything when you press it, I want it to be invisible. In IE I can get it to be invisible just by setting its width to zero using the line below. However, Firefox insists on giving it some finite width, even if there is no label on it (see below). How do I create a zero width button in Firefox - and is there any other way to hide input buttons? <input type="submit" name="control" value=" " style="width: 0px" title="No function" /> i have written a simple html form code the problem is that this code is working fine when run in interner explorer, if i run in mozilla firefox form reset button work as submit button it show submit validation code when reset button press, can any one help me here is the code <script type="text/javascript"> function validation() { alert("submit buton has pressed"); return true; } </script> <body> <form id="form1" name="form_feedback" method="post" onsubmit="return validation();"> <table width="488" border="0"> <!--DWLayoutTable--> <tr> <td width="85"><span>Name:</span></td> <td width="393"><input name="txt_name" type="text" id="textfield2" size="35" /></td> </tr> <tr> <td><span>Email:</span></td> <td><input name="txt_email" type="text" id="textfield3" size="35" /></td> </tr> <tr> <td><span>Address:</span></td> <td height="0"><label> <textarea name="txt_address" id="textarea" cols="45" rows="2"></textarea> </label></td> </tr> <tr> <td><span>Phone No:</span></td> <td height="0"><input name="txt_phoneno" type="text" id="textfield4" size="20" onkeypress="return numeralsOnly(event)" /></td> </tr> <tr> <td><span>Comments For:</span></td> <td height="0"><input name="txt_commentsfor" type="text" id="textfield5" size="20" /></td> </tr> <tr> <td><span>Comments:</span></td> <td height="0"><label> <textarea name="txt_comments" id="textarea2" cols="45" rows="5"></textarea> </label></td> </tr> <tr> <td height="0"><label> <input type="submit" name="btn_submit" value="Submit"/> <input type="reset" value="Reset" name="btn_reset"/> </label></td> </tr> </table> </form> </body> Here is the case. I have an HTML page that opens a pop-up. Within the popup I need upon click to open a new window. The code is as it should be according to all references: <a href="some url" target="_blank">text</a> Everything is ok with IE6 and IE7 - a new window is being opened. What happens in Firefox is very strange - tabs are shown and the currently opened popup becomes one of the tabs and the new window opens in a new tab of the pop-up window instead in a new normal window. Did anybody encounter the same problem? Any solutions? Okay, with frames, whenever there is a link that you want to open up in the parent browser rather than inside the frame, all you have to add to the link code is "target="_parent"". However, for INPUT BUTTONS(not links) this doesn't seem to be the case. This is my input button code: HTML Code: <input id="button" type="button" value="Submit!"> the input button is INSIDE A FRAME, and because of that, when I click on it- the link goes inside the frame... how do I make it so the input button links to the PARENT browser? Hello all mates! I am working with my forum trying to properly edit the html for the posts so that they will display any custom script/html of my choice. I want this to appear in ONLY the first post in every thread. I am also trying to find out how to make a bot that automatically posts another second post in every thread, with my own custom scripts/html. At the moment I am trying to add some adsense ads this way. What I am looking for is two things: 1 - How to get the adsense ad aligned to either right or left of the text within the first post. 2 - How to get an adsense bot autopost an ad as post number 2 in any thread (including being applied to all threads already existing) I am using IPB3. I previously used Adsense Bot for IPB2, and that worked fine, but it is not supported for IPB3. It uses the Universal Mod Installer, and in IPB3 there is a new "hook" feature to ass custom mods etc, but I do not know how to alter the code for the Adsense Bot to work with IPB3 so I am trying to get it done from scratch by adding codes directly into the templates. If anyone know how to configure / modify the old Adsense Bot to work with IPB3 that would be great of course, so I am attaching it here just in case someone wants to take a look at it and its documentation and scripts. But primarily I am looking for the two mentioned features, one is how to get the script running in ONLY the first post of every thread - at the moment I got it running, but it is global and implements into all posts not only the first. I also have figured out how to make a script appear, such as an ad, between posts, but not after ONLY the first post, nor how to make a bot that posts a post just like any member, which is what I am really looking for when it comes to that part. This is the code I have entered into the topicViewTemplate in Topic View: Code: {parse template="aip" group="topic" params="$post"} <div style="display:block;float:right;margin: 0px 10px 0px 0px;"> <script type="text/javascript"><!-- google_ad_client = "pub-3737464431076938"; /* forum posts large recnt */ google_ad_slot = "6548059149"; google_ad_width = 336; google_ad_height = 280; //--> </script> <script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"> </script> </div> This works perfectly for adding my desired custom script embedded within the posts. The problem is that it gets embedded in ALL posts and not only the first as I would want. Here is a link to my forum for an example on how it looks: http://www.conspiraciesforums.com/fo...ic/3-atlantis/ I know I have to edit/add some code regarding post counts etc to configure it to only affect the first post - my question is how to do that? And as seen, the second post shows the ad as well, here I would want a bot to post a post containing another ad - between the first and third post of every thread (which will be standard members posts). I have messed my brain with this for more than a week now trying different things, looking around at forums, googling, trying scripts and so on, mods etc, but as of yet have not found the solution to these things for IPB3. Any help here would be extremely greatly appreciated and I'll buy you a beer if you're ever around my part of the world! :p Thanks and bless you! -M |