Is what I'm trying to do possible? I have a file hosted on a sharepoint server and want to read the contents remotely.code:
|
|
# ¿ Apr 20, 2012 22:07 |
|
|
# ¿ Apr 29, 2024 15:02 |
What do you guys think is the best way to handle this situation: The framework for some software my company is using has a ton of calls to retrieve a form field and then interact with it in some way, like this: getField(fieldName).interaction(); Unfortunately we want the customer to be able to remove any fields they want. This means that getField() will return null if the field isn't present. Considering I've been told not to mess with getField(), what would you do? My plan was to wrap it in a new function, sort of like this: code:
Oh, I should also mention we want that debug scenario in there, which is why I don't just do if (getField()) {getField().interaction()}. Polio Vax Scene fucked around with this message at 17:29 on Jun 13, 2012 |
|
# ¿ Jun 13, 2012 17:25 |
I want to let the user save their game but I'm not sure of what would be the best way to do this. I have three things which need to be saved: The current level name, a list of objects which persist between levels, and a list of objects which are permanently removed. Currently I'm saving this to a cookie but even with just a small amount of data I'm already over 1kb. I'm afraid that eventually I'll reach some cookie size limit and this will break it. I've done pretty much everything I can to make the save data as concise as possible. Is there some other method I can use for saving/loading? Saving a file on the server is out of the question.
|
|
# ¿ Jun 28, 2012 16:35 |
That works perfectly and is easier than cookies even. Thanks!
|
|
# ¿ Jun 28, 2012 21:09 |
Isn't results[0].geometry.location the same as results[0]['geometry']['location']?
|
|
# ¿ Jul 10, 2012 03:36 |
Do you want help formatting the date or help writing the javascript? http://msdn.microsoft.com/en-us/library/ff743760(v=vs.94).aspx Basically each part of the string in printd's first argument is replaced based on what letter you use. For your syntax remove the single quotes around sDate and you have a double quote in the first argument of printd().
|
|
# ¿ Sep 7, 2012 20:29 |
HClChicken posted:
Beaten to it already but you'll also want a semicolon after ("today").
|
|
# ¿ Sep 7, 2012 21:45 |
When are we getting a safe navigation operator for javascript? I'm so tired of null checking every part of a path / including a library as a dependency just for this.
|
|
# ¿ Sep 26, 2018 17:08 |
I want to use Notifications in my site, but some dumb script is overwriting the Notification object as defined by the browser. What can I do about this if I can't remove the script?
|
|
# ¿ Feb 18, 2019 21:23 |
The Fool posted:Have you done any custom development for Dynamics 365? I have. We use postMessage() to communicate between the D365 window and the cross-domain frame inside of it. https://developer.mozilla.org/en-US/docs/Web/API/Window/postMessage HappyHippo posted:If they're modifying the elements within the iframe, then it isn't cross domain, no? In D365 you can configure iFrames on the page to have a src that is a different domain so it's possible it's cross-domain to start with.
|
|
# ¿ Dec 12, 2019 15:45 |
Volguus posted:This is good. Ugly as hell, but good. Lumpy posted:It's already powering 12,874 e-commerce sites. Jazerus posted:please do not put my code into production. Honestly all three of these are great
|
|
# ¿ Jan 28, 2020 15:41 |
Trying to detect GSM-7 extension characters in a string using regexp. https://en.wikipedia.org/wiki/GSM_03.38#GSM_7-bit_default_alphabet_and_extension_table_of_3GPP_TS_23.038_.2F_GSM_03.38 Regex gods, what am I missing here?: code:
Polio Vax Scene fucked around with this message at 14:06 on Jun 18, 2020 |
|
# ¿ Jun 17, 2020 22:48 |
I must be missing something about module imports. In this page the green square is pulled towards or repelled away from your mouse when you hold left click or right click. This is done by checking MouseHandler.leftClicked and MouseHandler.rightClicked. here is the source code. The class TestBlock extends GameObject, and GameObject is intended to draw a yellow or red outline on the square based on the same mouse events. However, that part isn't working - the MouseHandler values in TestBlock are different from the values in GameObject for some reason. I'm still very new to modules, if I had to guess, it has something to do with importing the same module in both classes' js files.
|
|
# ¿ Nov 4, 2023 00:23 |
thank you. I ended up making the MouseHandler a non-static prop of GameHandler and passing it to the game objects as they are updated/rendered. I'm not sure if this is the best way to do it, but it at least gives consistent state to the TestBlock and its super.
|
|
# ¿ Nov 4, 2023 03:14 |
tuples were a mistake
|
|
# ¿ Nov 9, 2023 00:03 |
its probably been so widely used now that changing it in any way would cause chaos
|
|
# ¿ Dec 11, 2023 15:15 |
|
|
# ¿ Apr 29, 2024 15:02 |
Given I have a bunch of rectangular coordinates for blocks of text, what would be the best way to add them as selectable text blocks to a page and ensure their text content fits within the coordinates best it can?
|
|
# ¿ Mar 27, 2024 21:48 |