|
Hi I am a Snake posted:Two alerts come up: the first reads "undefined" and the second reads "100". Why aren't they the same? Because this does not refer to bob. I'm not sure why you think it would, really. The onclick event you specified has nothing to do with bob at all.
|
# ¿ Apr 7, 2009 05:48 |
|
|
# ¿ May 3, 2024 23:59 |
|
Anyway, if you want something like bob.test() you need to specify test as a method:code:
|
# ¿ Apr 7, 2009 05:59 |
|
noapparentfunction posted:I appreciate the help. I was looking at my code and I realized that I wrote my tables mainly in plain HTML. How do I add overflow: hidden in that case? Give them ids or classes. Or come up with a CSS selector that targets only the tables you want, e.g. code:
|
# ¿ May 13, 2009 19:10 |
|
noapparentfunction posted:Thanks for the suggestion. I just tried creating a second set of links at the bottom using onClick containing the same functions as the buttons. They don't seem to work though. Any other ideas? Look at the number of quotation marks in this (underlined for emphasis): pre:<a href="#" onclick="function() { $(".widearea").animate({ marginLeft: "0px" }, 500">art.</a>
|
# ¿ May 22, 2009 18:59 |
|
noapparentfunction posted:Thanks for the help. Should I get rid of those quotation marks or replace them with a different character? I tried removing them and the links did not work. Also, I don't know how to assign an ID to the links like I did the buttons, so if you could help me with that I'd appreciate it. You can use single quotes if you like. Also, adding an ID to an "a" tag is exactly the same as adding one to a "button" tag: id="butts". As usual, each ID must be unique on that page.
|
# ¿ May 22, 2009 19:57 |
|
Ether Frenzy posted:Here's what did the trick: A-are you seriously doing validation on the client side?
|
# ¿ Jul 7, 2009 21:26 |
|
royallthefourth posted:Seems fine to me if it's there to complement existing server validation. Yeah, I don't think "putting the list of valid (presumably secret) codes in Javascript" counts as "complementing server validation".
|
# ¿ Jul 7, 2009 21:56 |
|
ronin109 posted:However, all of this is moot if you actually intend to do (presumably secret) reference code checks since, as Avenging Dentist points out, that should be a server-side only check to avoid putting the "secret" answers in the source code of the page. Secret-code validation done on the client side would make a pretty good captcha for a programming website though.
|
# ¿ Jul 8, 2009 05:49 |
|
G-Dub posted:Is there an equivalent function to unescape or tostring(16) in VB? And does the ^ symbol mean to the power of, or does it have another use? Apologies for not having a clue. 1) That code is awful, and trying to replicate it in VB will make it at least as awful (probably more so). 2) The entire CharCode function is stupid and unnecessary 3) ^ means bitwise XOR, as the Encrypt function implies. 4) Do you mean VB6 or VB.NET? EDIT: For fun, this is how I'd do that (which requires JS 1.8 but if you aren't using Firefox 3, you don't deserve encryption) code:
Avenging Dentist fucked around with this message at 21:20 on Sep 7, 2009 |
# ¿ Sep 7, 2009 20:27 |
|
Comedy "make your own scrollbar in HTML and synchronize everything so it updates simultaneously" option.
|
# ¿ Nov 25, 2009 21:04 |
|
A cursory look at MSDN says the Matrix property should work.
|
# ¿ Dec 30, 2009 04:17 |
|
|
# ¿ May 3, 2024 23:59 |
|
awdio posted:Sorry, I didn't mean to leave the "eval" in there in the 2nd example. Anyway, OddObserver, your example works. Thanks! Please tell me there's a good reason that transVideoCopyToCopies isn't just an array.
|
# ¿ Feb 19, 2010 00:06 |