-
Posts
4,362 -
Joined
-
Last visited
-
Days Won
11
Everything posted by Zane
-
Look at the image Some code stuffs with too makes this Some code stuffs with too [attachment deleted by admin]
-
Just reading up on it http://en.wikipedia.org/wiki/HTML_5 Looks like a big change. audio tags! video tags! All it's missing is a flash tag. http://www.alistapart.com/articles/previewofhtml5 I wouldn't expect it to do anything else. All they've done is dropped some tags and added some tags. Looks a lot cleaner to me. http://www.alistapart.com/articles/previewofhtml5
-
I'm clueless on this one. Although I am curious to see what it looks like. This'll mean new doctypes and everything. Hopefully this will be the catalyst that finally annihilates IE6 or IE5 and other predecessors.
-
You'll have a very hard time decrypting with brute-force..you'd need a super-computer to decrypt it. Albeit, it's not even supposed to be decrypted. You encrypt the input and compare it to the encrypted data/password. So, you are wrong is assuming MD5 is easy to crack. I've always used MD5. There's also sha-1. And like it was mentioned before, you can add a simple salt to the hash anyway. You should sleep fine using MD5.
-
because it's just easy...that's why
-
Q> How to Delete Records in the database when the COOKIE has expired
Zane replied to merck_delmoro's topic in PHP Coding Help
good point, but that raises another question.. does the op really need cookies? in short...there is no function called onCookieExpired (although you can write a cron job for it) but if you use session's you can tell who is active (logged into the page) much easier -
Q> How to Delete Records in the database when the COOKIE has expired
Zane replied to merck_delmoro's topic in PHP Coding Help
check out the onLoad event with JavaScript and use AJAX to do your database thing. EDIT: oops I mean onUnLoad http://www.w3schools.com/jsref/jsref_onunload.asp -
Q> How to Delete Records in the database when the COOKIE has expired
Zane replied to merck_delmoro's topic in PHP Coding Help
why do you need to delete it? if the timestamp is expired then they just flat out shouldn't be logged in anymore. if you delete your records then what's the point of putting them in there...having all those records are good for statistics and such. -
yeah but you have to have a testing server running to parse it. Which is a pain IMO
-
My state fuckin blows. Seems like all the money goes to the roadways and all the while, the roads still suck. North Carolina will take you driver's license in a drop of a hat...without warning. (Well maybe a week at the most.) Fuck North Carolina. The funny thing is, is that I live literally 20 minutes from both Georgia and Tennessee. Yet I'm confined to the Strict State Residence rules or I'd get a license from all three.
-
Yeah it definitely is a work in "progress" and by progress I mean...on hold. I've been working on this http://www.zanedockery.com/p2 for the last few months for my class project. I guess I should have put up a link or..."blog" for it. Thanks for all the suggestions/comments
-
I code on newspaper with a crayon...a white crayon. I parse what I write as I write it just because I'm that l33t and then I scan it into mspaint. After that I name that to a .php and it works perfectly...poof.
-
Woohoooo after searching forever on the horrible documentation they have I found the live() function so now instead of this... $('.result').click(function() { alert("Thou hast clickethed") }); I have to do this $('.result').live("click", function() { alert("Thou hast clickethed") }); schwew..I feel so much better now.
-
Using this $('#searchterm').keyup(function(){ $.post("get.php", {func: "getCustomers", s:$(this).val()}, function(data) { $('#content .results').html(data); }); }); I grab the customer list from the database using get.php $sql = "SELECT a.name, a.phone, CONCAT( a.address, ' ', b.city, ', ', b.state_prefix, ' ', a.zip ) AS address, c.builder as builder FROM customers a INNER JOIN zip_code b ON a.zip = b.zip_code LEFT OUTER JOIN builders c ON a.builder = c.id WHERE a.name LIKE '%$y%' ORDER by a.id DESC "; $q = mysql_query($sql) or die(mysql_error()); if(mysql_num_rows($q) >= 1) { while($r = mysql_fetch_array($q)) { $block .= ""; $block .= "" . $r['name'] . "" . $r['builder'] . ""; $block .= " Phone: " . $r['phone'] . ""; $block .= "\n"; } } echo $block; Works perfect....as far as getting the data and displaying it.... but when it is displayed I can't "click" on it. If in the initial HTML I have a some bull and I write the following jQuery code $('.result').click(function() { alert("Thou hast clickethed") }); I can click it just fine, but if I populate the container for .result using jQuery like this $('.result container').html("some bull") then I can't "click" it....can I repeat myself anymore? I don't understand what is going on with this. Does anyone else?
-
well it would be if I didn't write this myself...but I did I should have said I used the jQuery API. either way...I'm stuck on this.
-
Ok..still I find myself going back to Javascript (or jQuery..whatever). I'm trying to get the Search to work on the keyUp event. It works fine so far. I can view all the matches and yada yada...doesn't look pretty yet but yeah...it works. My only problem is the same problem I was having earlier. If I use Javascript to edit the innerHTML of something. I can't have any onClick triggered. Mind you that I'm having them triggered via jQuery with $('div.new').click(function() { $('#body').fadeTo('fast', .33); $('#popup').show(); }); On the page load the div click works just fine but when the search fails to yeild results...I have it show the two ONLY CLICKABLE divs and they aren't clickable. Why? check it out http://zanedockery.com/p2 The Add New buttons are the click able ones
-
Well apparently I just shouldn't use AJAX for that dropdown. don't know why I wanted to use it so bad. either way.. I cheated and did it strictly with PHP with an include
-
if you go here http://zanedockery.com/p2 I can begin my question easier. Click either button for Add New Customer or Builder even use the Zip Code box and check it out....it should be working. But what my main problem is...is with the Choose Builder dropdown. This is the way it is supposed to act. http://zanedockery.com/p2/index2.php Now the only difference between these two examples (code wise) is that I am using AJAX ... the jQuery $.get function to get a list from the database. What's bugging the living hell out of me is that whenever I do use $.get...like the first example page. It doesn't register the clicks on the LIs If you have firebug you'll notice things aren't working right. Why can't I get my list and register their clicks?
-
sounds like you want to make a e-mail grabber/Spamming system
-
I believe you're on that cracky rock CV Also, this thread has officially been raped
-
if you have a submit button, the enter key will be activated to submit it instead of a submit button you could use just a regular button and it would solve your ENTER button issue
-
results is most likely an array so print $obj->[results][0]['shortUrl']; NEVERMIND
-
You need to count what >>--(???)-->