HTML - Post Does Not Work After 'playing' With Enable/disable Button
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 Similar TutorialsOk I need to dis-able a sign up button for right now, what can I do to it to just disable/remove from everyones view? </tr> <tr class="button"> <td style="text-align: center;" colspan="2"> <div class="buttons" style="font-size: 18px; padding: 15px 10px; margin-left: 10px;"><a href="/sign_up.html" title="Click here to Sign Up Now!">Click here to Sign Up Now!</a></div> </td> Everyone, An XHTML class project is posting to an e-mail address. The code works in FireFox, Chrome, and Safari, but not in IE v9. Here's the first several lines of the document, down to the <form> tag: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> <head> <meta http-equiv="Content-Type" content="text/html;charset=utf-8" /> <link rel="stylesheet" type="text/css" href="../style-sheets/assignments-styles.css" /> <link rel="shortcut icon" href="../images/favicon.ico" type="x-icon" /> <link rel="icon" href="../images/favicon.ico" type="x-icon" /> <title>Site Opinion Form</title> <style type="text/css"> <!-- legend {float: left; color: #00008b; font-style: italic; font-size: small} --> </style> </head> <body> <form method="post" action="mailto:fname.lname@student.swic.edu?subject=Student's Assignment Input"> TIA. 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 Hi guys, As a person with VERY little HTML knowledge I getting very frustrated with a situation "I'm sure its a simple fix" that I hope you can help me with - there are 2 issues:- 1 - when you click on the Orange button on my website in IE the link doesnt work "it works when you right click - open link in a new tab" 2 - when you click on the Orange button on my website in Firefox - 2 tabs open instead of 1?? Any help would be very much appreciated - the link is http://www.twessential.com/newhome.html. If any files are need please let me know Many thanks Hi! I have created a simple site that I uploaded on freespacia.com and then used co.cc to give it a shorter name. I have a form on my site, on the first page. When I load the site directly from freespacia the submit button works, but when I access the site on .co.cc, the submit button does not work. What could be the problem? I've created a layout in css and it works in Safari, Chrome and IE but not Firefox. I thought IE was the odd one out. Anyway I seem to have narrowed it down. It's the logo in the top left, if it has a link on it it seems to move the margin a lot to the right. Try it out. Code: body { margin: 0; padding: 0; text-align:left; color: black; font: medium Arial, Helvetica, Verdana,sans-serif; } ul, li { list-style-type: none; } #header { margin-right: 10px; margin-left: 10px; border: 2px solid black; position: relative; filter:alpha(opacity=80); opacity: 0.80; height: 62px; background-color: white; } #sidebarleft { float: left; margin-left: 10px; margin-top: 10px; height: 600px; border: 2px solid black; position: relative; filter:alpha(opacity=80); opacity: 0.80; width: 170px; background-color: white; } #sidebarleft b { position: absolute; left: 0px; right: 0px; background: #d9eaff; } #sidebarleft a:link { color: black; text-decoration: none; } #sidebarleft a:visited { color: black; text-decoration: none; } #sidebarleft a:hover { color: black; text-decoration: underline; } #sidebarleft a:active { color: black; text-decoration: underline; } #sidebarleft ul { margin: 0; padding: 0; border: 2px solid white; } HTML Code: <html> <link rel="stylesheet" type="text/css" href="style.css"> <!-- header start --> <div id = "header"> <a href="index.htm"><img src="images/logo.png" align="left" height="61" width="262"></a> </div> <!-- header end --> <!-- sidebarleft start --> <div id="sidebarleft"> <center><b><u>Navigation</b></u></center> <br/> <ul> <li><a href="index.htm">Home</a></li> <li><a href="link1.htm">link1</a></li> <li><a href="link2.htm">link2</a></li> <li><a href="/link3/">link3</a></li> <li><a href="link4.htm">link4</a></li> </ul> </div> <!-- sidebarleft end --> </html> How can I make it work in Firefox? what is the best way to play videos in an html page?? i need to play videos in my site... what is the fastest way to play videos in a normal speed (not slowly) hi. on my site i want to play a uploaded movie file. i'm searching a suitable player but not win media player. is any there? how i place that on my site. thanks in advance chel-1 Hello, stuck again!!! Right well i have an swf file and it's playing fine in safari but not in firefox - the place where it's supposed to be is just blank. Any ideas? http://www.absolute-websites.com/portfolio#animation Here is the code: HTML Code: <object id="peepShow" type="application/x-shockwave-flash" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,28,0" data="video/peep_show.swf" width="550" height="400"> <param name="movie" value="video/peep_show.swf" /> <param name="quality" value="high"/> </object> Hi, I am a newbie to HTML. I am making this web page. I wan to place a link where people can click on it and listen to my music. So in the <body> I type in this : <a href="music/music_1.mp3" target="_blank">Song 1.</a>. It does play the music when the link was click, but it pops up a blank page with on the QT control bar in the middle. How can I make it not to pop up another page? or if it has to pop up something perhaps just a QT player rather the blank page. Thanks in advance. MacPC I have problem with playing wav file in mozilla. but working fine with internet explorer. I am using <embed> and <bgsound> . is there any way to play sound in mozilla urgent. please help Hello, Do you guys know any workaround or have any solution for my problem: I'm trying to embed a swf object into an IFrame element which has the designMode turned on. I successfully did that in Firefox, Safari, Opera, Chrome, but for IE8 and IE7 the swf is not autoplaying. To play it I have to double-click it and then if editing the IFrame the swf stops playing when losing focus. My code looks as follows: HTML Code: <html> <head> <script type="text/javascript"> function populateIframe() { var ifrm = document.getElementById('myIframe'); ifrm = (ifrm.contentWindow) ? ifrm.contentWindow : (ifrm.contentDocument.document) ? ifrm.contentDocument.document : ifrm.contentDocument; ifrm.document.open(); ifrm.document.write('sdasdasdasd <object classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\" width=\"40\" height=\"40\"><param name=\"movie\" value=\"flash_heart01.swf\" /><param name=\"play\" value=\"true\" /><param name=\"loop\" value=\"true\" /><param name=\"flashvars\" value=\"playerMode=embedded\" /></object> asdasdasd'); ifrm.document.close(); ifrm.document.designMode = 'On'; } </script> </head> <body onload="populateIframe();" width="1000px" height="700px"> <iframe id="myIframe" width="1000" height="700"></iframe> </body> </html> You can try it with any swf. My swf is a simple flash with 3 frames in the main scene, nothing special. You can try that code with any swf in IE8 and shall see my problem. Please notice that current code(which I displayed above) doest work at all with FF, Opera, or others since it only targets the IE browser and its problem just to show the issue. Please advise or help Thanks I have made a site for someone and now they want the music player to play throughout the site, it's s fully fledged turn off etc. one so that's not the problem. The problem is, I have no idea how to get it to work. I have never used frames and I am not sure if what I want it right for frames, and then there is the pop up idea, what happenes if they have a pop up blocker? I want to get it so that only the player is in a frame, like an insert or something...this is the link http://www.chrisjenningsmusic.com I have tried using an Iframe too, but then I realised that the whole site would have to be in one leaving the player outside and I really don't want to do that. This is how I wanted to frames to work... I ahe to play a wav file. I am using <embed> and <bgsound> tag to play the wav file. it works fine in internet explore. But showing missing plug-in problem in mozilla. is there any ways to play sound in mozilla similar to <embed> tag works I ahe to play a wav file. I am using <embed> and <bgsound> tag to play the wav file. it works fine in internet explore. But showing missing plug-in problem in mozilla. is there any ways to play sound in mozilla similar to <embed> tag works Hi, I'd really like to put an MP3 player on my website to play music mixes, but I'd like it so that even if someone goes to another part of the site, the music keeps on playing, Like Reverbnation have... http://www.reverbnation.com/ Can I take the code from their site or do I need to start from scratch? Given that Reverbnation supply the widget to put your music in, I'd just need the ability to have it keep playing even when someone links to another part of the site. Thanks! Greetings. I have a basic html page, and want to embed audio. I am using: <BGSOUND SRC=myfile.mp3 LOOP=1> So that when my main index.html page loads, that file plays. Two things I want to do: 1) Let it continue playing when I click on another page within my site (it currently stops when I navigate away from index.html) 2) Assuming I can do #1, make it stop playing when I navigate to one page in particular. This possible? Doing a google search, and that's actually how I came up with that code, but cant seem to find anything in regards to making 1 & 2 work. I do not want to do frames, and definitely do not want to do a flash site, which I undertand may be the only way. Any ideas on how to make this work with html? Thanks in advance! Hi there, well, the title basically says it all. I have a site that consists of like, 8 .php pages... and I need to play this ambient sound at the background. ( I know, but well.. orders from above) So I was wondering if there is a way to manage this, without having to hear the song all over again when you click on a link. Thanks I am very new to writing HTML and a friend wrote this code for me to upload videos to a webpage I am making. Unfortunately the videos load and play automatically when the page is opened. I cannot figure out what is going wrong and I cannot get in touch with the friend who wrote the code in the first place. Does anyone have any suggestions on how I can edit the code below so that the videos will only load when a person clicks the "play" button? <TABLE BORDER="0" CELLSPACING="15"> <TR> <TD> <object width="360" height="270"> <param id="video-param" name="movie" value="movies/ell.mp4"> <param name="controller" value="true"> <embed id="video-embed" src="movies/ell.mp4" controller="true" type="video/mp4" width="360" height="270"></embed> </object> </TD> <TD> <object width="360" height="270"> <param id="video-param" name="movie" value="movies/esl.mp4"> <param name="controller" value="true"> <embed id="video-embed" src="movies/esl.mp4" controller="true" type="video/mp4" width="360" height="270"></embed> </object> </TD> </TR> <TR> <TD><i><div style="text-align: center;"><big>Long</big></i></TD> <TD><i><div style="text-align: center;"><big>Short</big></i></TD> </TR> </TABLE> Thanks in advance for any advice you can offer! 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 |