408 Posted Topics
Re: Develop for what your customer base is likely to be using. I still support IE9, but I have to keep current with changes, and develop new features for future browsers. caniuse.com is an excellent resource. Use it. Know why you are implementing things, and how to fall back when you … | |
Re: Im confused... nav ul li a.submenu should only affect anchor tags that have the class submenu. That's a pretty specific selector... Can you put up a fiddle with your issue so we can see more clearly what you are struggling with? Personally, with your current structure.. my CSS would be … | |
Re: Proper HTML markup says anchor tags cannot be children of anchor tags (basically, which one are you clicking?) which is why the commented out block isnt working. You will have to make a more complex structure to do what you are trying to do, and will likely require some javascript … | |
Re: All of them will benefit you depending on what you want to do... For embedded systems (from my very little experience with it all), Java seems to be king, since they have a ton of code already out there to support various hardware configurations. If you write in C/C++, you … | |
Re: Logically, dollars is just the floor(total/100) and the cents is total modulo dollars. Of course, you get in trouble when dollars is 0 so just do a check and make it modulo 1 instead. I would also do a check to make sure those ints are unsigned otherwise you get … | |
Re: try stream_get_line instead. http://stackoverflow.com/questions/16560755/fgetsstdin-automatic-line-break | |
Re: If I understand what you want to do, then you are correct - you have hit the limit of SVG as a free form drawing tool. If you want more fine pixel control, you will have to work with a canvas instead - but that also has some serious drawbacks … | |
Re: Define "fully loading." Are we talking about a page built dynamically with AJAX? All server side? Are you doing redirects inside your script when you change to the new page? Just a refresh? Is it with all pages or just specific pages? If specific pages, are you doing something to … | |
Re: If the initial values when the page is parsed are blank, you can use the .reset() method of the FORM (not the individual inputs), which should revert everything back to what the values were at page render. If you don't have a form, or are looking for a specific input … | |
Re: As I understand it, the php module sits and listens to ports and creates an instance for each request. Therefore, without some sort of data caching, there should be no appreciable difference between the two methods you describe other than the overhead for traversing a directory. | |
Re: So you are seeing <?php ... ?> as the responseText of the ajax call? Are you using htaccess for a redirect? Does your rule apply here? | |
Re: Responsive design, when done "right," is usually 90-100% HTML and CSS. JavaScript is used for accent work and/or for data manipulation/management. From there you need to learn server side code - PHP would probably be the easiest to pick up and run with, but Python, ASP, Perl, Ruby... whatever server … | |
Re: Is the data coming in exactly the same? I cant imagine that two finger print readings are completely identical. I don't know enough about your device or their API (or, really, the whole physical security thing as a whole), but I assume that the proper mechanics of this would be … | |
| |
Re: If you have a demo page of this it would help. Otherwise, are you sure youre actually sending and receiving? If so, you may have to send headers making the ajax call use the same enctype as a for post and the php will receive it. Depending on your server … | |
Re: Well.. the way you are doing it is requiring 11 digits exactly. This means you are expecing an area code that is in a "proper" format, being 1 first, then the area code, then the 7 digit number. Not all people do this, and this is doomed to be a … | |
Re: Yeah. Don't use z-index. Instead, just do the opacity shift on both elements. The only way to make this work, though, is to make sure they are absolutely positioned, one on top of the other. | |
Re: Sounds like you need to learn how to read argvars, open a file handle, read a file handle, parse a string in a buffer, and increment a value. Good luck! | |
Re: Any HTML form has all of the values acessable through javascript. In your particular case, you have a form with the name "payment_form" so you can do something like this... <script> var Form = document.querySelectorAll("form[name='payment_form']"); var TextArea = document.querySelectorAll("textarea[name='outputtext']"); for (var i = 0; i < Form.elements.length; i++) TextArea.value = … | |
Re: Personally, I don't think you should be using the sesson variable like this. It is likely the root of your problem as well. If you need a "stateful" system, that's what the database is for - even for temporary things. It's ok to delete from the database. | |
Re: Consider why you would get this result logically -- Your check states that if $rows is not an array, or the length of the array is NOT 1, then it's a failure. In PHP, var_dump() is your friend (your best friend. Take it out to dinner and treat it nice … | |
Re: in: .thumbnail .info with the negative margin, also add "position: relative" | |
Re: https://jsfiddle.net/6jbgqz0g/ <div class="parent"> <div class="bottom"></div> </div> .parent { position: relative; display: block; width: 300px; height: 200px; background-color: #25f; } .bottom { position: absolute; width: 50px; height: 10px; left: 50%; margin-left: -25px; bottom: 0; background-color: #4ff; } | |
Re: All I see there is a container div and 3 child divs. Two relative positioned divs are block with height and width, one is absolutely positioned with appropriate margins / positions set (either with calc() on margin or top/left) - it also has a border radius of 50% I am … | |
Re: So I assume you know *why* this happens, but if not (and for future readers), I will state it: Any text output from PHP will also send along headers. Once this is done, headers cannot be modified or resent. This is just the way the PHP world works. Now, to … | |
Re: Disclaimer: This is my understanding of how all this works - if I am mistaken, or uninformed, I would love to be better educated on the topic. So the way you as a programmer defensively do this is to use a method similar to oAUTH 2. You have a package … | |
Re: you have no height, therefore the propery should be ignored. If it is not, then the ones adhering to your markup are likely at fault, or "figuring out" what you meant. Try adding height 100% to body, html and see if that fixes your problem. | |
Re: I am a little confused as to what you are trying to do... You have the solution to your question in your original code, it seems. Can you show an example of your expected output, please? | |
Re: I also question the need for making a file for each email sent, especially by name of the sender.. If you have database access, you should probably use it. You can templatize a single php page, and get the values from the database for that user. That way, you also … ![]() | |
Re: Im not sure what you are asking.. If the column is varchar, what is being passed in as the value? Is it NULL? A number? Are you getting a SQL error? Have you tried doing a var_dump on $r and seeing what is actually in there? Are you sure buy_temp … ![]() | |
Re: Is your table column a varchar utf-8? When you set it up, did you use this syntax: `myColumn varchar(10) character set utf8` | |
Re: Looks like StefanRafa is not a valid column name in your table kladilnica Try adding quotes around '{User}' on line 18. | |
Re: I believe you capitalized "Submit" on line 10: ` if (isset($_POST['Submit']))` Make that lower case, and see if that helps. | |
Re: Well.. since no one else is saying it... ASP and CSS are completely independent technologies. ASP is a server side language that *CAN* produce HTML. In that HTML, since you are in control of your ASP, you can output classes, etc... Those classes can then be used to control layout … | |
Re: You can use a combination cookie/ip as well as javascript localStorage. You can hold a session in localStorage that will re-initialize regardless of cookie or ip change. However, localstorage can be wiped out just as easily as cookies. Most people dont bother clearing cookies anymore, however. The only way you … | |
Re: You are not asking the function to return the set, you are asking the function to return the second element of the set. (return x[1]) If you want the set returned, simply return x | |
Re: There are multiple tutorials on this. Use google - "php and ajax" The W3Schools one is pretty easy to follow, and many others will help you learn what you need to know. Since you will have user id's and other such security, PHP sessions will help you. Feel free to … ![]() | |
Re: Im sorry if this is not helpful, but why not just use tinyMCE? They have already gone through all the headaches that you are currently dealing with. Ranges are weird, and are inconsistent across browsers. If you plan on being backwards compatible at all, you will find that your code … | |
Re: It's likely something you will have to contact the host to help you with. Most of the time, shared VMs will have a hard cap limit on what they can execute and how many resources they can take up, based on what you pay for. As an alternative, how about … | |
Re: Well... you have strings... you can store those strings and associate them to a player. You have a comma delimited list of card numbers. You can have a table that has the columns: id, playerID, gameID, cardNo and insert them individually, or use a stored proceedure that takes the comma … | |
Re: As a second year CS student, you should know code. You know your types, and you likely are aware of objects and their implementation. If you have written in any language other than C++ (which, as a 2nd year CS student I certainly hope you've had some exposure, even if … | |
Re: I have never used SQLite, so I cannot comment on that one - however, if you are going to be using an internet based system of data management, MySQL is a fine choice. Without some sort of pre-processing, and making some sort of tokenized batch and sent to either a … | |
Re: including stdlib.h and time.h... srand (time(NULL)); int iRand = rand() % 20 + 1; //give me a random number between 1 and 20 More info can be found here: http://www.cplusplus.com/reference/cstdlib/rand/ Note, however, that this method is only pseudo random, as noted in the link. Other options that can better support … | |
Re: For modern browsers you can look into making ajs socket but you will need to write a custom socket server based on the spec (rfc). | |
Re: You cannot, in any fast way, compare objects directly in JS. The only way to check values is to iterate through the object and compare values directly for what you are looking for (or, as you pointed out, simply check the value directly). Since all an object really is on … | |
Re: since there really isnt a whole lot of documentation (at least that I could find) I will make an assumption -- PDF files are basically a collection of "pages" and it seems that you are simply running the create image function on the first "page" I would encourage you to … | |
Re: You... Have an unexpected if.. You can't concat with a logical step like you are doing... And if you read your code closely you will see you are not actually doing a logical operation at all, as there is no outcome. Instead of doing dot notation to concat, try writing … ![]() | |
Re: So.. not gonna lie.. but your echo's really hurt my eyes and my head.. I don't understand their purpose... for example, this line: `echo $insert = mysqli_query($connection, "INSERT INTO packages (pkg_name, pkg_price, month_price) VALUES ('$pkname', '$pkgprice', '$mnthprice')");` I read this to say "please output the result of the action of … |
The End.