408 Posted Topics
Re: Yes, it's simple if you are only targetting CSS3 compatable browsers, which IE9 is definitely not :-/ Soon, transitions will become common place, but not until windows 7 has gone byebye.. in an age where XP is still extremely common, it may be some time. If you have this as … | |
Re: I can't see any reason to ever do this... what's the point of a checkbox if you can't interact with it? However, with js you could just <html> <--! doctype is whatever you want... --> <head> <title>Perpetual Checkbox</title> <script type="text/javascript"> function onload() { var ChkBx = document.getElementById("mycheckbox"); ChkBx.checked = true; … | |
Re: You have a few options... In your content area you can have your pages pre-populated in container divs with an ID and set to display:none. Then, with selections you "unhide" them, and hide the other(s). You could even keep a global to know which one you are on... Alternatively, you … | |
Re: Im not sure how the generic buttons work, but you could put a "disabled" class (or attribute if it's an actual submit button) on the button, and wait for your callback to determine what happened... Im not sure that's even a possibility for you... You could do something like... var … | |
Re: what format? I believe wp supports mp3 for streaming audio, not ogg :-/ may be a place to start. | |
Re: it would be dependent on a few things.. what is the query you are using for the retrieve? Are you doing some funky joins or parsing? Also, how are you doing the call to the data? Are you processing before or after the query for anything? How are you iterating? … | |
Re: I think the way I would handle that is through some sort of extrapolation... the flv would have to keep track of it's own coordinates (which shouldnt be hard), which would then be added to the offsetTop and offsetLeft of the flv element or container (again, not too hard) which … | |
Re: you have a series of ids that do not have quotes... for example: line 54: <tr><td>Name:</td><td><input id=cust onfocus="if(this.value=='Name'){this.value='';}" value="Name"></td></tr> id=cust --> id="cust" You have tons of these.. fix your quotes, you will probably fix your issue. Also, I recommend, for readability and so youre not inlining a ton of if … | |
Re: a table cell is like any other block element in regards to what you are talking about... I think.. Just like you would set the innerHTML of a div or span, you can set the innerHTML of a table cell (<td>); Alternatively (and some would argue more correctly) you could … ![]() | |
Re: in php, you would use echo. <?php $myVar = "A String"; echo ($myVar); ?> there are others... it all sort of depends on what you are trying to do. If you want users to input data and put it on the screen, there are many ways to do that... it … | |
Re: :-/ assuming you have connected to the database correctly... $result = mysql_query("select * from table1 where id=$_POST[ID]"); while ($data = mysql_fetch_array($result)) { foreach($data as $k=>$v) echo ($k . " = " . $v); } or.. something to that effect... but since we are all moving to mysqli, this is already … | |
Re: If my cursory google glance has served me well, least requires more than 1 input to function properly... Is your result returning multiple rows? If not, least may not be what you are looking for, but floor() maybe? | |
Re: you need to attached a handler to the window object and get the event's keyCode. If they keyCode is equal to the enter value (42 or something? I don't know off hand), then you create a new "listener" row. Since the window is listening, you can figure out the keyCode … ![]() | |
Im hoping someone could fill in a few blanks for me, so I can better understand how I need to tackle a personal project. Obviously, it's about our wonderful friend video streaming. As I understand it, it works as follows: Video is taken from it's raw state (whatever the input … ![]() | |
Re: ------------------- | padding | | | | | | | ------------------- margin Padding moves items inside the element away from the border of the element. Margin moves items away from other items. ![]() | |
Re: not to be a jerk... but... http://www.w3schools.com/php/php_mysql_intro.asp you're asking for a web app to be made for you... people get paid for that. If you wish to do it on your own, there are resources to help you. ![]() | |
Re: you have a couple options... none of them are particularly appealing... the easiest is to do some media queries and change objects on the page as necessary. The other way is to make a "fluid" design, and redo everything with % or javascript resizing. | |
Re: if an input field is flagged disabled it will not post in a form submission. So.. <form method="post" action="whatever.cfm"> <input name="a" type="text" /> <input name="b" type="text" disabled="disabled" /> <input name="c" type="text" disabled="disabled" /> <input type="submit" value="submit"> </form> in javascript you can add or remove the attribute like so: <script> var … | |
![]() | Re: have you tried inline styles on the html elements? ex: `<div style="height:100px; width:100px; box-shadow:2px 2px 5px #000000;">A div</div>` The other option is to try and pu the stylesheet directly on the html in style tags like a script tag... not sure how Wix works, but whatever you control you can … |
Re: The answer is "probably." The reality is that no one will want to publicly help you because doing so would do 2 things: 1) break the law. (why?! Because you are using copyrighted material for whatever you plan on using it for) 2) piss off google. (why?! By changing it … | |
Re: I think that this is a fundamental misunderstanding of PHP and how it works. When you "view source" on a web page created with PHP, you won't see any PHP code, but instead you will see the HTML that is rendered from the PHP. The ONLY way to view PHP … | |
Re: Javascript is based on ECMAScript, which is then intepreted in a "sandbox" which is controlled by a browser to interpret the script. Javascript exists solely as a client side language, which means it requires a browser to function. This is, of course, ignoring server side javascript, which is (for the … | |
Re: alert is an object, which happens to be of type function, of the window. Anything in the window can be called directly, and in a "global" scope. window.alert and alert are essentially the same thing. | |
Re: or, just don't put anything for display and it's natural state will take over. At least, I believe that to be the case... | |
Re: Have you seen this done somewhere? pdf files are simply text with an XML structure to define visual attributes (at least, as far as I know), and javascript has nothing to do with any of it.... What are you trying to accomplish? | |
Re: Without seeing the html along with it, preferrably in a working state, this may be difficult to pin point... At a quick glance, you have a bunch of stuff absolutely positioned... could you be inadvertantly collapsing an element by removing it's content from the flow of the page? | |
Re: First.. I don't see a checkbox anywhere.. so you may want to check your html.. Second, to me you are using php incorrectly... PHP is a back end system, which allows for "secure" actions. You can easily move most of what you are doing to the front end with pure … | |
Re: may just be a stylistic thing... but Im not sure why you do `loadingPage = setTimeout(....); ` I do not believe setTimeout returns anything... however, that's also not your problem. While doing a setTimeout('string', number) will essentially do an implicit eval on the string, it's "bad mojo" and may be … | |
Re: Im 99% sure this site is HTML front end with JavaScript for dynamic page enhancements (all the fun animation stuffs), CSS to make it pretty, with a PHP back end most likely drawing content fron a MySQL database. The HTML is what gives the page "structure" CSS tells the browser … | |
![]() | Re: IFrames do not resize happily with javascript, last I tried it... You may need to force attribute changes by doing iFrame.setAttribute("height", number); //you may need number+"px" I forget ![]() |
Re: depending on your back end... this seems like it's more of a database/sort issue... but if really all you need to do is append +whatever to the url... function submit() { var mySelectBox = document.getElementById("mySelectBox"); var myWord = mySelectBox.options[mySelectBox.selectedIndex].text; var URL = document.URL; if (URL.lastIndexOf("/") != URL.length) /* this assumes … ![]() | |
Re: so to summarize what the two posters above so eloquently stated: PHP is a server language, which means it's called before a page renders, and the browser is given control over content. So, PHP itself cannot possibly "know" that there is javascript on the page, and that it is trying … | |
Re: feel free to look into: http://en.wikipedia.org/wiki/Luhn_algorithm also, this page will help a lot :) http://stackoverflow.com/questions/72768/how-do-you-detect-credit-card-type-based-on-number | |
Re: I think the IFRAME is technically "outside" the control of the window (for security reasons). You can try removing the http: and instead do: window.open("//test/forms/....."); this way, you are not "leaving" the server to come back to the server, thus creating a security hole. If the double whack doesn't work, … | |
Re: The only good ways I can see this working is if you control the input method (i.e., data flow that builds the div). Alternatively, if you control the source (the database), you can use whatever method you use to push the data to also keep track of activity, and push … ![]() | |
Re: So, the exercise is meant to get you to problem solve. Think about HOW you would go about doing this. What is the process? What is the minimum number of columns you must have? Obviously it can't be 1 or 2. This about what it would look like to make … | |
Hi All! So, I have a shared windows host with IIS 7 with godaddy, so that I can use MSSQL/TSQL (which, as I understand it, is not available with Linux). However, my server configuration education was with Linux, and focused on the wonderful all encompassing .htaccess file to configure environment … | |
Re: Not to be a jerk, but not developing for IE is like asking a majority of PC users to simply ignore your website... As to your problem, you can use window.location. href = "http://mywebsite.com"; If you do not put in a protocol, it should append a relative path to the … | |
Re: At first glance, it would seem that your variables are not being cleared on refresh of the initial object. When you change "SelectManufacturer" you need to either clear the variables of the remaining values of your selector boxes. Since the page doesn't refresh, the variables are remaining set. You may … | |
Re: ok.. so if Im following along with you right -> You're pulling stock numbers from a database. Those stock numbers are individually posted on your page for ordering purposes. If that is correct, you have two options. Do the math in the database `"SELECT col1, col2, (SELECT SUM(col1, col2)) as … | |
Re: Try this first, at the top of workspace_files.php: session_start(); $nm = $_SESSION['username']; exit("The username in this session is $nm."); If you get "empty" or "Null" or "The username in this session is ." Then you have a whole different problem to handle. Then we can try below if necessary. I … | |
Re: this link, and the associated links within, will probably get you off in the right direction. http://www.w3.org/2010/05/video/mediaevents.html Ryan | |
So I have seen a few widgets around that make use of seemingly custom social media share buttons. Are these buttons made by simply extracting the URL being built from the API? Or is there a better way to do this? The iFrame versions are quite "invasive" and often do … | |
Re: a quick way I can think off the top of my head is to make an onchange function for the check boxes, that will take the particular check box being checked as a parameter. Each time it runs, it checks to see first if any boxes are checked. If not, … | |
Re: you can always try to see if your query running properly.. `Line 21 - $r = mysql_query($query) or die ("There was an error: " . mysql_error());` Before that, you may actually want to echo out what you are passing into mysql: Insert into line 20 - die($query); //this will exit … | |
Re: your best bet is to use F12 on the page after it's rendered, follow the DOM Tree, and find the class or id name of the object you want to affect, then attach your own CSS to make the changes you want. It looks like the params that are passed … | |
Re: You can make a javascript file in any text editor, and save the file "as" .js With Eclipse, you can find that there are a number of plugins. These are the top 3 results from The Google. ;) Last one is a video. www.eclipse.org/webtools/jsdt http://www.google.com/url?sa=t&rct=j&q=&esrc=s&source=web&cd=2&cad=rja&ved=0CCwQFjAB&url=http%3A%2F%2Fwww.eclipse.org%2Fdownloads%2Fpackages%2Feclipse-ide-javascript-web-developers%2Fheliosr&ei=ctB4UOL1M-O9yQH6_YD4Cw&usg=AFQjCNFE7XHw8mlqjqfpB5LOwpWZFCBl4A http://www.google.com/url?sa=t&rct=j&q=&esrc=s&source=web&cd=3&cad=rja&ved=0CDAQtwIwAg&url=http%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DFsnna6mmg5M&ei=ctB4UOL1M-O9yQH6_YD4Cw&usg=AFQjCNG_Tb_9OIltAbbJOn1ufrDQuMN1Og | |
Re: http://www.velocityreviews.com/forums/t346147-generating-pyo-from-py.html If it is not clear from the example, those are command line scripts; i.e., what you use to start up python in the first place. | |
Re: That first part (checking to see if a box is checked or not without any client side script) is a bit "impossible," assuming this is meant to affect some sort of data exchange. You would need javascript to do this (or any other of the very few client side scripting … |
The End.