408 Posted Topics
Re: Erm.. Yep! I did it, too. It goes by faster than you think. The real kicker is gonna be running disk cleanup on all the archived win7 stuff. :) Enjoy that. If you're a drinker, grab something tasty. | |
Re: How are you calling settdelete(trankey)? Also, you may want to check support for .ico as a valid image type in firefox... Also, in javascript: var String1 = "a" + " string"; is the same as var String2 = "a".concat(" string"); | |
Re: You seem to be doing a post, but sending a get. Line 19 and 20, try: xmlhttp.open("POST", "inc/getTeh.php", true); xmlhttp.send("q="+str); unless you are in fact doing a get, in which case, change line 19 to: `xmlhttp.open("GET", "inc/getTeh.php?q="+str, true);` good luck! Ryan | |
Re: That says, I believe, that in the database jstudent0, the table BOOK doesn't exist. Are you sure that's the table name? Is it BOOKS? | |
Re: So what you are asking is, is there a way to check a networked SQL connection for status without having a network connection? Perhaps reword your question a little? | |
Re: Disclaimer: you made this into a mental exercise for me.. I think that all three below will give you the desired result. Anyone is welcome to correct me, especially on the last one... If I understand your rule (Im grasping here), you want the number of records from all the … | |
Re: You can have PHP and HTML intermingle, so the form can post to the page that it is resident on, then simply re-render.. <?php //input.php if (isset($_POST['formdata'])) { //do some input cleaning/error checking/sql stuff here }; ?> <html> <head> <title>My page and form!</title> </head> <body> <form action="input.php" method="post"> <input type="text" … | |
Re: :-/ what is the problem you are facing? I assume home/search/1 is mod_rewite for a php page? | |
Re: I also think that MSoft has done a great job in protecting its OS/systems as of late, and people have also become more aware of what they shouldnt be opening or downloading, or clicking... Also, everyone who gets viruses generally has a nerd friend who they lean on for help. … | |
So... had a bit of trouble logging in with IE11 (32 and 64 bit) on windows 8.1 pro. Even tried spoofing UAS and changing the compatability modes. There were no script errors, and the "information" in the console for FB and g+ are no different than the ones I safely … | |
Re: If I understand the question correctly, I believe you are trying to use PHP as an intermediary between two systems. If that is the case, this may help: http://forums.devshed.com/php-development-5/help-using-fopen-and-fwrite-with-a-url-53394.html | |
Re: the "placeholder" attribute (while not supported in all browsers) is a fancy way of giving a "hint" to the user as to what is supposed to go into the field. A place holder is usually something like "First Name" or "Phone Number" so when the user clicks the field, they … | |
Re: Line 20 says action='search.php' where your script Name for the processing page seems to be Update.php Try changing it and see if that helps. | |
While it may certainly seem "lazy" I spend a large portion of my time in javascript and I like the syntax for arrays. I cant seem to figure out if I can "prototype" the array "object" and give it methods that simply returns the appropriate function: i.e. $aMyArr = array(); … | |
Re: The only way I can think of doing it is to submit a file (via ajax or iframe) and then the callback or whatever method you prefer sets the value of a variable. Javascript is abstracted from the OS/File System for security reasons. The user needs to "give" you the … | |
Re: I don't know how to do it in JQuery, but the XMLHTTPObject has an abort method. Im sure you can look into jquery's version of that method. Also, look into using the Date() object to get a random number instead of Math.random() as it's possible (however unlikely) that you get … | |
Re: function onLoad() { makeDisable(); } <body onload="onLoad();"> ... </body> Should do the trick... Ryan | |
Re: the two mentioned here (for php) are quite well done. http://stackoverflow.com/questions/6019139/php-socket-tutorials | |
![]() | Re: parseInt and parseFloat does not guarantee a number. If either of those return undefined and you do any arithmetic on it, you will get NaN. You have here a product of bad code design. declare your variables. check them for values after assigning them. Then do math. ex: var fVal; … |
Re: Im not very good with JQuery, but Im guessing it's this fine feller: $(document).ready(function(){ //This keeps track of the slideshow's current location var current_panel = 1; //Controlling the duration of animation by variable will simplify changes var animation_duration = 2500; $.timer(6000, function (timer) { //Determine the current location, and transition … | |
Re: are you sure that id is a column in the myaduan table? is it upper cased? ID? is it rowID? Also, I would encourage you to sanitize your data before inserting it into your database. <?php include'e.php'; if(!isset($_POST['submit'])) //this is confusing { $id = mysql_real_escape_string($_GET[id]); //since the data you seem … | |
Re: you can use javascript and check the inputElem.value.length > 0 you can use PHP to check isset($_POST['pw']); //validates false if empty lastly, you can use ^$ to match an empty string... I hope that helps... Ryan | |
Re: interesting cereal... I get that you are doing that because they would validate, but wouldnt this require that it compares each record by hashing (and reading, anyway) it in order to compare? How would hashing the string be faster than simply checking if the string is the same, especially when … | |
Re: ... erm... is this remote server a database? an api? So many questions :-/ | |
Re: I hated ODBC on PHP with GoDaddy's windows servers, so much in fact that I abandoned it even after I got it working. This worked for me, I am assuming it will be a starting point for you. If not, I appologize for wasting your time. PHP5 has spotty support … | |
Re: only thing I can think of is that cellak does not contain any elements, and since you are starting at 1 you are essentially doing: null.getAttribute("id"); I don't know why you are doing it that way anyhow since id is a directly accessable property. edit: alternately, since you initially did … | |
Re: I took the O'Rielly classes for Python and I loved them. The guy I worked with was amazing, easy going, and was very open to discussion. In fact, I learned quite a bit from him. The down side is that it's a "pay to learn" service. The upside is that … | |
Re: the other option is to simply submit the page to the URL you want to move to and use POST as the method instead of a GET. If you plan on allowing bookmarking, then I can see the issue... otherwise: <form method="POST" action="/search/whatever.html"> <input type="text" name="myVar" value="" /> <input type="submit" … ![]() | |
Re: Your "question" is very confusing. Are you looking for AJAX only website examples? A specific problem you are trying to tackle with AJAX? Please clarify. Thanks, Ryan | |
Re: empty is a function to check the state of a variable. you can use it as such: <?php if (empty($_SESSION['MM_Username'])) { echo ("<h4>please log in before adding to BASKET</h4>"); } </php> see: http://php.net/manual/en/function.empty.php however, most people use isset() instead of empty, as it checks for a variable being NULL as … | |
Re: Is this for a class? I would assume that you have guidelines for what is expected. If not, feel free to ask your teacher :/ | |
Re: so... soap box moment... using flash as your only method of displaying information is probably not a good idea. While it is now pretty much all over the place, I know for a fact windows phones will cause you problem, and Im pretty sure iOS may cause you some grief … | |
Re: Heh.. welcome to the world of "stored" values and URL management. Since you are doing a GET (or a POST), the value gets stored in the URL. When you refresh the page, you are basically resending the URL with the parameters still in place. So, your session variable (where you … | |
Re: That would likely be the HUGE margin from the media query. Your CSS is a little broken. I would encourage you to revisit it, and rethink the use of media queries if you can. Start simple and get the site working on a PC as you need, then worry about … ![]() | |
Re: Without a working model and an actual step by step view of what you are doing, this is hard to figure out what exactly is going on. If you are saying that you fill out a form that posts to a new page, then after the post you hit the … | |
Re: well.. couple things... without knowing how you make $opt_count, Im gonna make a wild assumption that you are going to be missing an item as arrays start at 0, and you are starting $i at 1 (so your first item will be missing. If that's expected then ignore this). As … | |
Re: I work in a microsoft shop, and I can't sing praises for visual studio express enough. Some people don't like it, but it's super simple in my humble opinion. As for books... html and css is pretty repetitive... so the books you got are getting you in the right direction. … | |
![]() | Re: So... what you seem to have just asked is "How do I make a premium membership for a service that emails me when my server goes down using php and paypal." Im going to assume, then, that you are instead asking how to use paypal to accept payments using PHP. … |
Re: By the sound of it... you seem to know the answer... Yes. Use an HTML table. Use CSS to style it. If you really want to do something off the wall wonky, you can use DIVs and all the other HTML dohickeys and make it look all pretty.... Maybe ask … | |
Re: looks like line 14 has an extra comma... erm.. of the output php (server 2 ajax.php). ... 'web' => 'http://jonemaxtest.com', ); | |
Re: There is no single answer for this... It all depends on what you are doing... If you are making a web-app that is hosted on the device: use JAVA for android, but you will then need to port over to iOS and C/C# If you are doing a web-app, performance … | |
Re: just because you output JSON from your PHP code it does not mean the variable will automagically evaluate to JSON Object notation. It is, as far as I know, still just a string. It needs to be parsed or evaled. You can, before loading, run an AJAX script and eval … | |
Re: ***My take*** in a nut shell: There are certain camps in programming -- those who like complete control, and those who don't mind trusting others to do some of the annoying work. C/C++ --> Meant to be compiled. You are forced to do memory management. It runs very close to … | |
Re: select e.employee_id --get the ids from employees e --from employees table aliased as e where ( --begin sub query... select count(*) --get the total number of rows from employees f --from employees table aliased as f where f.employee_id < e.employee_id -- where.. I believe this will return n-1 results where … | |
Re: You are very likely going to be ignored as this is a "do this for me" "question" as opposed to you trying it first and getting help when you get stuck. The purpose of the classes you are taking is to apply what you have learned... These are pretty straight … | |
Im working through sprocs with MySQL and I came across something that made me quite uncertain... I learned sprocs with MSSQL and I am used to declaring as such: create ... myProc (@var type, @var2 type(xxx)) as .... and for declares, we declare vars as declare @var3 type(xxx), @var 4 … | |
Re: heh.. Im guessing your problem starts on line 31 and ends on line 65... why are you doing a self-executing function before the window has loaded? I get it's top down, but you're defining and running code as it's being read. You're not getting very much speed boost by doing … | |
/* also, read the edit */ So... after painful MySQLi intro to working with MySQL Stored procedures... I have come to the conclusion that the only good way to pass variable length binds is to use eval() Is this a poor choice? The way I am using it is: $Conn … | |
Re: Im pretty sure this is what you are looking for... http://www.microsoft.com/en-us/download/details.aspx?id=36843 This will allow T-SQL editing, and allow you to hook up and browse a database. If youre trying to connect to a MySQL server, you will need to download the mysql tools, but the TSQL editor does not work … |
The End.