|
prom candy posted:I'm so glad I'm not the only one that uses stuff like "poop" and "butt" when I'm writing psuedocode or test-cases. I spend all day at work resisting the urge... the Cavern of COBOL is Lumpy's time!!
|
| # ? Jul 3, 2012 01:09 |
|
|
| # ? May 24, 2013 19:03 |
|
Lumpy posted:function poop() { I wish my entire comp sci textbook was written in this tone.
|
| # ? Jul 3, 2012 01:10 |
|
prom candy posted:I'm so glad I'm not the only one that uses stuff like "poop" and "butt" when I'm writing psuedocode or test-cases. When I was doing up a test case for a new system, I gave it a client alias of "LOLButts", short for Land o' Lakes Butter Products, headed by proud CEO L. Oliver Butterman. Didn't go anywhere beyond that, but it was fun.
|
| # ? Jul 3, 2012 05:38 |
|
prom candy posted:I'm so glad I'm not the only one that uses stuff like "poop" and "butt" when I'm writing psuedocode or test-cases. I mean here yeah okay, but at work no...
|
| # ? Jul 3, 2012 22:15 |
|
I also do dumb stuff like test with 'poop' or 'alert("you poop butts");' Right now I'm having an issue with a .load(). code:The alert also works works. includes/login.inc exists and has inside it: code:Now, I've just changed it to load 'test.html' in the same directory, and that worked. I then changed it to 'test.inc' in the same directory, exact same contents: code:
|
| # ? Jul 5, 2012 12:47 |
|
Sulla-Marius 88 posted:I also do dumb stuff like test with 'poop' or 'alert("you poop butts");' Your are blocking requests for .inc files, then you make a GET request for an .inc file with JavaScript, which you block. This has nothing to do with jQuery or .load() knowing about or doing something 'different' with .inc files.
|
| # ? Jul 5, 2012 13:06 |
|
Hm, I hadn't considered that. I'm not great at .htaccess, is there a way to limit it so that it can only be accessed through index.php? I need the main page to be able to include from it, but I don't want users to be able to access the files directly...
|
| # ? Jul 5, 2012 13:18 |
|
Why not?
|
| # ? Jul 5, 2012 13:23 |
|
Because the files run/display different things that shouldn't be accessed out of turn.. I can load the .inc files perfectly will within php, it's just jquery (or maybe javascript) that is restricted by the .htaccess limitation.
|
| # ? Jul 5, 2012 13:26 |
|
Thanks for that in depth explanation. I used Suspicious Dish's suggestion to just get the project done, but I'm sure I'll use that in the future and/or rewrite this project when I have time.
|
| # ? Jul 5, 2012 13:35 |
|
The Merkinman posted:Thanks for that in depth explanation. I used Suspicious Dish's suggestion to just get the project done, but I'm sure I'll use that in the future and/or rewrite this project when I have time. I wouldn't do that. jQuery.each is perfectly sane. Sulla-Marius 88 posted:Because the files run/display different things that shouldn't be accessed out of turn.. I can load the .inc files perfectly will within php, it's just jquery (or maybe javascript) that is restricted by the .htaccess limitation. Everything that JavaScript can do, somebody else can do. They can build their own HTTP client, or simply capture the traffic and send it to the other side. What does the .inc file contain that you really don't want people to access?
|
| # ? Jul 5, 2012 13:42 |
|
Well it was just a lazy way of ensuring that users can't access pages or trigger functions/code that they shouldn't, by having all the divs load content from within index.php and have that be subject to a central authorisation/function-calling process. Otherwise I have to spend far more time and energy ensuring that each process + display page is wrapped inside a conditional that breaks if the permissions aren't met (i.e. actively counteracting potential abuse, rather than just passively blocking it and only allowing calls from a single source that has already confirmed whichever (varied) conditions that it needs. I mean the first thing that springs to mind is, if I have to remove the .htaccess file, just reproducing it by wrapping the code of every include in a conditional that checks for the existence of a variable only generated by index.php. And then that has to exist at the top of every page, which is annoying.
|
| # ? Jul 5, 2012 14:13 |
|
Sulla-Marius 88 posted:Well it was just a lazy way of ensuring that users can't access pages or trigger functions/code that they shouldn't, by having all the divs load content from within index.php and have that be subject to a central authorisation/function-calling process. Adding PHP code:
|
| # ? Jul 5, 2012 16:07 |
|
Even if you do that, calling an AJAX load is going to produce the same result as trying to go to the .inc file in your browser is it not? It's not being filtered through index.php at that point, your PHP has already executed and generated your front-end content, and now your front-end content is making an AJAX call to a different file.
|
| # ? Jul 5, 2012 16:25 |
|
For some reason I cannot access a select tag in a sharepoint page using jquery via IE. Works fine in Chrome, not in IE. Why the hell would this be happening?
|
| # ? Jul 5, 2012 16:49 |
|
A few details would be nice. IE version, jQuery code excerpt, HTML source excerpt, what your debugging shows. Things like that.
Gazpacho fucked around with this message at Jul 6, 2012 around 01:22 |
| # ? Jul 6, 2012 01:07 |
|
Physical posted:For some reason I cannot access a select tag in a sharepoint page using jquery via IE. Works fine in Chrome, not in IE. Why the hell would this be happening? This has nothing to do with jquery but yesterday at work we noticed that IE 64-bit doesnt work well with sharepoint, toolbars etc go missing. Try using 32-bit and see if that makes a difference. It won't necessarily help your usability but it might help tracking down a fix.
|
| # ? Jul 6, 2012 02:26 |
|
Gazpacho posted:A few details would be nice. IE version, jQuery code excerpt, HTML source excerpt, what your debugging shows. Things like that. Debugging shows nothing because IE debugger is slow as balls and impossible to use (I did check it however and there are no errors or warnings). Sharepoint Designer 2010, IE9 32-bit. And Like I said, works perfectly in chrome. I then decided to use old school DOM getElementById and even that doesn't work. The html is a standard select with some options. code:code:Wierd thing is, I swear this worked a week ago. And I don't know or think anything changed in-between then and now. Sulla-Marius 88 posted:This has nothing to do with jquery but yesterday at work we noticed that IE 64-bit doesnt work well with sharepoint, toolbars etc go missing. Try using 32-bit and see if that makes a difference. It won't necessarily help your usability but it might help tracking down a fix. I realized that a while ago and so I've been using 32-bit.
|
| # ? Jul 6, 2012 03:21 |
|
If I fix value to "Opt2" then I get the missing alerts and the other options are removed, in IE8. I don't think the selector is the problem.
|
| # ? Jul 6, 2012 03:49 |
|
Gazpacho posted:If I fix value to "Opt2" then I get the missing alerts and the other options are removed, in IE8. I don't think the selector is the problem. edit: Well wait my alerts never fire. Are you running this in sharepoint? Because the same code works in IE9 on a non-sharepoint page. I tested it at JSfiddle. And that's what confounds the problem. The same code works in a non-sharepoint page. edit2: Yea what you said still doesn't work for me. I think its a sharepoint problem or a configuration problem with this site. Because when you isolate this code in another page it works just fine. I wish we kept better logs of changes, because I could have sworn (and my co-worker as well) that this worked a couple weeks ago in IE. I wonder what, if anything, changed since then. Physical fucked around with this message at Jul 6, 2012 around 20:00 |
| # ? Jul 6, 2012 03:58 |
|
I have this big image, not a map, just a picture. I need to be able to point to any part of the image and get some coordinates. Right now i'm using Jquery to get the X and Y axis. Is there any way I can get the latitude/longitude? Any help or point to the right direction is appreciated.
|
| # ? Jul 17, 2012 22:30 |
|
stoops posted:I have this big image, not a map, just a picture. I need to be able to point to any part of the image and get some coordinates. Pretty sure images don't have latitude & longitude there fella. If you are looking to do a "given a rectangle of height H and width W, if I'm at coordinate x,y in that rectangle, I want the latitude 'lat' and longitude 'lon' if the image were a map of a globe" type thing, then there's a whole lot of other questions about projections and so on to answer. Here's a Wikipedia article talking about this stuff, since I don't know squat about it: http://en.wikipedia.org/wiki/Geodetic_system
|
| # ? Jul 17, 2012 23:34 |
|
e: removed, not helpful
Gazpacho fucked around with this message at Jul 18, 2012 around 01:10 |
| # ? Jul 18, 2012 00:43 |
|
The problem I mentioned earlier had nothing to do with jquery, apparently IE and sharepoint render DropDowns that have 20+ options in a very esoteric way! Oh my god it is so stupid. http://sympmarc.com/2010/05/19/two-...orms-dropdowns/
|
| # ? Jul 18, 2012 19:15 |
|
Is there anything unusual with the Animate function, specifically regarding changing the color property? I'm using [url=http://jsoverson.github.com/jquery.pulse.js/]jquery.pulse.js[/url[ to loop an animation to change the color of some text. It's specifically shown in the examples, and works great on the sample page. When I try to do it on my sandbox page, it's not working how you'd expect. If I tell it to animate the opacity, it works fine. If I tell it to animate the color, nothing happens. The script triggers and runs for the correct amount of time, I've confirmed that with callbacks, but nothing changes on the items I'm trying to change. It happens even if I add color into an opacity one -- the opacity doesn't change, nor does the color. It just sits like a lump. Seeing as pulse is basically a loop for animate, I decided to try that out to see if anything happens there. Still no joy -- the animate works fine for opacity or fontSize, does not change anything for color. Same thing for background-color -- doesn't do a damned thing. At this point, I'm stumped. Barring it being Bootstrap related, I have no idea what could be causing colors not to trigger. code:
|
| # ? Jul 20, 2012 11:19 |
|
Casao posted:Is there anything unusual with the Animate function, specifically regarding changing the color property? My memory is terrible, or it might have changed in the last couple years, but I don't think you can use 'named' colors in animate.
|
| # ? Jul 20, 2012 11:36 |
|
Casao posted:Is there anything unusual with the Animate function, specifically regarding changing the color property? including something like this would make it work without any changes to your code.
|
| # ? Jul 20, 2012 12:25 |
|
Lumpy posted:My memory is terrible, or it might have changed in the last couple years, but I don't think you can use 'named' colors in animate. I've tried the hex codes (no luck) and using the rgb(#,#,#) which just returns "rgb is not defined" as well.
|
| # ? Jul 20, 2012 12:26 |
|
Alligator posted:jquery doesn't support color animation on it's own. Thanks a ton. I don't know how the hell the examples are working, I looked through the page for any other plugins before I asked. This works perfectly.
|
| # ? Jul 20, 2012 12:44 |
|
Hi jquery thread! So I got my first ever job programming, and there's a bit of jquery involved. I've been teaching myself to get up to speed, but now have a question. I have a page (ASP.NET MVC 3) that will either have 2 or 3 tables on it, which is dependent on one field of data from our database. I want to show or hide that third table dynamically based on the value of that field. I know how I would do it in C# codebehind: C# code:edit: \/will that work if I'm using the datatables plugin? also, my main question was how to access the "polmast" variable, which is instantiated outside the script aBagorn fucked around with this message at Jul 23, 2012 around 19:01 |
| # ? Jul 23, 2012 18:46 |
|
Javascript code:
|
| # ? Jul 23, 2012 18:58 |
|
MVC3, use ViewModel to set a bool ShowACH or whatever, bind this in your ModelBinder or before you return your view. In your view code:
|
| # ? Jul 23, 2012 21:13 |
|
Should I be using .prop() now instead of .attr() for things like "disabled" and "checked" ?
|
| # ? Jul 24, 2012 18:49 |
|
Neither, they both have an exposed property for the DOM element. el.checked = false; el.disabled = true;
|
| # ? Jul 24, 2012 20:03 |
|
Funking Giblet posted:Neither, they both have an exposed property for the DOM element. what? do you mean to say that this: Javascript code:Javascript code:
|
| # ? Jul 29, 2012 07:19 |
|
Deus Rex posted:what? do you mean to say that this: elem.checked is easier / safer than $(elem).prop("checked") If it comes to multiple elements, the first way is safer and quicker, the second way easier to write. Choose safer each time.
|
| # ? Jul 29, 2012 09:56 |
|
Guys, I'm a goddamn jQuery mess ![]() I just can't seem to wrap my head around it, and I don't know why. The long and the short of it is that I have a page with a table listing all the claims made on an insurance policy. I want to create a link on the claim number that will open a modal that will display details about that claim. So I know I'm going to have to do something like code:
|
| # ? Jul 30, 2012 18:45 |
|
aBagorn posted:Guys, I'm a goddamn jQuery mess First of all, take a look at this demo, which should help you get started with creating an embedded dialog form: http://jqueryui.com/demos/dialog/#modal-form Second of all, the dialog itself doesn't really take parameters, it simply opens the dialog. It sounds like what you want is to pass along the claimID before the dialog actually opens, either through .data or just by modifying the form itself. In the latter case, perhaps something like this, assuming that the demo is modified like so:
Then we can do: code:
|
| # ? Jul 30, 2012 19:15 |
|
Hello, I am having a problem with code that checks a value passed through a URL. The url looks like this:code:code:code:I've tried a break to outside of the for loop, I've tried removing .value from after the var. I'm just lost at this point. Apok fucked around with this message at Jul 30, 2012 around 21:07 |
| # ? Jul 30, 2012 20:46 |
|
|
| # ? May 24, 2013 19:03 |
|
Is that the actual code or just a quick mockup of it? If I'm reading that correctly, you want to set Temp_HOUSTON_STORE_EMAILS_FIELD to checked if the zip does exist in the array, and set Temp_ONLINE_NATIONAL_EMAILS_FIELD if it's not in the array. You also want to set 4 other fields to checked but I'm not sure why they're in the loop body. There's far better ways to structure that loop, but because the array and what you want to do with it is so simple you can forget the loop entirely and just do this instead: Javascript code:Bhaal fucked around with this message at Jul 30, 2012 around 22:01 |
| # ? Jul 30, 2012 21:55 |






















