|
Lumpy posted:Ah, OK, so it's like Adobe AIR, but windows-only. You have absolutely no clue what AIR is! edit: I stand by my point since you argue that all the extra "stuff" (i/o, state, etc) that AIR provides to Flex is somehow comparable to a few static html files bundled together. And if you want to use all that extra "stuff" you're going to have to go with a more complex language like C#. That makes no sense at all because that's exactly what AIR does: gives you functionality that would be pretty drat useful if you wish to write a true application in flash. karms fucked around with this message at 16:27 on Mar 11, 2009 |
# ¿ Mar 11, 2009 16:12 |
|
|
# ¿ Apr 30, 2024 06:26 |
|
Actionscript . There's always Rhino.
|
# ¿ Apr 7, 2009 16:07 |
|
Why not call initializationStuff yourself? No need to muck about with events because the DOM has already been initialized.
|
# ¿ Aug 8, 2009 11:10 |
|
I don't know if it would help if you'd fix it, but your setinterval is wrongly defined.code:
edit: to clarify it's not wrong per se, but not very good practice. karms fucked around with this message at 00:03 on Mar 6, 2010 |
# ¿ Mar 5, 2010 23:58 |
|
php:<? <select id="a"> <option>1</option> <option>2</option> <option>3</option> </select> <script> obj = function() { this.change_now = function() { console.log('Where does /this/ point to?'); console.log(this); this.say_hooray(); // hj;alp } this.say_hooray = function() { alert('Hooray!'); } } an_object = new obj(); document.getElementById("a").onchange = an_object.change_now; </script>?> I know I could do an_object.say_hooray(), but in the real world that doesn't work since I don't know the variable name beforehand. Is there a way to grab a reference to the original instance of obj even if this points to something else? karms fucked around with this message at 14:54 on May 21, 2010 |
# ¿ May 21, 2010 14:48 |
|
Gah!
|
# ¿ May 21, 2010 15:04 |
|
Lumpy posted:You can also use private methods which will execute in the scope of the parent and avoid using "this" altogether if say_hooray is only accessed interally. That's even cooler! Hmm, letss see if crockford can give me some great examples of this..
|
# ¿ May 21, 2010 15:49 |
|
code:
code:
karms fucked around with this message at 16:01 on Aug 4, 2010 |
# ¿ Aug 4, 2010 15:58 |
|
If you have to ask, it already is.
|
# ¿ Jan 16, 2011 00:23 |
|
How about embedding js in a png and execute it? http://www.pouet.net/prod.php?which=59298
|
# ¿ May 31, 2012 15:04 |
|
There's always crockford's java script:the good parts and his website.
|
# ¿ Sep 6, 2012 14:38 |
|
Show code.
|
# ¿ Oct 4, 2012 18:15 |
|
It could be that ecmascript standard defines variables with more bits than the css' standard does for the rgba function.
|
# ¿ Nov 18, 2012 04:30 |
|
edit: nvm.
|
# ¿ Dec 14, 2012 21:41 |
|
Don't even try to do something based on that ofuscated piece of jibber jabber. Use your browser's development tools (Chrome: press F12, firefox: install firebug then F12, IE: install another browser since its devel tools are balls) and figure out a way to get at the inputs you want. Because filling in a form though js is primarily navigating the DOM tree I'd use jQuery to make that part way easier, but it's up to you.
|
# ¿ Jan 11, 2013 21:46 |
|
gandlethorpe posted:The environment is created by an external company (Oracle Corp). My job, as a lowly data entry operator, is to assist with testing databases, usually by entering lots of test (fake) data. In the past, I've had to enter 100 identical subjects into a database, which I accomplished with a crude AutoHotkey script. I'd like to learn how to create a more sophisticated script. Good! gandlethorpe posted:Might be tricky, since supposedly the interface is only supported by IE, although I think I was able to log in on Chrome in the past. Either way, I'll have to wait until I go home to try a different browser than IE. If I am able to, how would I go about de-obfuscating it? Don't worry about the existing javascript. Anything it does to change the site it has to go though the DOM (aka the site's structure), which your javascript has access to just the same. The biggest problem you're facing is viewing the DOM after the oracle js has its way with it. Doing a view > source just shows you the before picture, which is not useful in the least. IE's developer console is definitely the worst out of the bunch because it likes to go slow as balls and/or crash for no reason at all at random intervals, but it still enables you to view the DOM as it is right now. The HTML tab is where that information lies. The Console tab allows you to input (single) lines of javascript and see its results immediately. Also, if your external javascript has a console.log(PUT SOMETHING HERE); it will show its output in this tab. Very useful.
|
# ¿ Jan 12, 2013 00:13 |
|
Wardende posted:Hi all, You don't? I don't see anything beyond "use our js stuff on an html page"?
|
# ¿ Jun 30, 2013 02:43 |
|
Bognar posted:
Also to my knowledge you can't know if the file has been ajax'd in and eval()'d.
|
# ¿ Aug 23, 2013 00:35 |
|
Raskolnikov2089 posted:Newbie javascript here. java script:void(0) does literally zilch. What you're after is clickWoman in /static/js/views.js that gets attached to the actual dom object when a new instance of GenderView is instantiated. That page is made with a javascript framework and I highly suggest you step very far away from that particular train wreck (ed note: the negative view on js frameworks is the sole personal opinion of the author and does not reflect the professional opinion of this publication). If you still want that behavior, it's far easier to get some jquery and a tiny little smidgen of js to do what you want. An example: code:
JavaScript code:
HTML code:
I wrote it here, untested, see how far you come with making this work for you!
|
# ¿ Nov 16, 2013 21:24 |
|
stoops posted:64799 358.500 89.500 800.325 271.256 66.543 Does one pixel position equal one line of text, or is it possible that it has more? How do the two columns correspond to the x/y coordinates of the image?
|
# ¿ May 9, 2014 19:48 |
|
stoops posted:Yes it does. Awesome thanks, I'll try that. JavaScript code:
Any questions?
|
# ¿ May 10, 2014 02:40 |
|
Nope, that's pretty much it.
|
# ¿ May 26, 2014 11:33 |
|
CuddleChunks posted:Thanks to everyone who peeked at this. I was going nuts trying to get it to work and am too new to this JSON stuff to know the difference between my own messup and the remote site. Save this as passthrough.php in the same folder you have your html: php:<? echo file_get_contents('http://www.macvendorlookup.com/api/v2/'. preg_replace('/[^a-z0-9\:\-\.]/i', '', $_GET['mac'])); ?> JavaScript code:
|
# ¿ Nov 4, 2014 19:46 |
|
Maybe set maxWindow to be slightly bigger than what maps thinks it needs to be?
|
# ¿ Nov 15, 2014 12:26 |
|
HappyHippo posted:That's right, toUpperCase returns a new string and leaves the old one alone Note: even if toUpperCase did change Stuff in-place, the array still wouldn't be updated because Stuff points to a copy.
|
# ¿ Apr 1, 2015 10:56 |
|
edit: nm
|
# ¿ Apr 10, 2015 21:24 |
|
That would be stupendously simple if arguments was an array. So let's make it one with Array.apply: function merge(){return Array.apply(null, arguments).join()} Boom. To be submitted you really need to check if an arguement can be converted into a string so you don't end up with a bunch of [Object object]s (and NaN's probably?) but at least its not using a nested loop to copy over one length strings one by one. edit: or be fancy like the guy above me.
|
# ¿ Jan 25, 2016 14:44 |
|
|
# ¿ Apr 30, 2024 06:26 |
|
qntm posted:You've both misunderstood the prompt. Look at the example output darthbob88 supplied, your code doesn't do that. You're right. Yeah, I don't see an easier way of doing it then, my bad.
|
# ¿ Jan 25, 2016 15:11 |