« first day (321 days earlier)      last day (4612 days later) » 
01:00 - 22:0022:00 - 00:00

10:05 PM
ahaha it is ingenious
 
user132748
I love beer and I love squirrels. But for $700, I would rather buy a lot of beer and enough peanuts to lure the whole neighborhood's squirrels.
 
Anyone here any good with JQuery Mobile and has a few minutes?
 
user1385191
is it possible to be "good" with that?
 
apperently not.
 
user1385191
from my experience, it was copy + paste + hope it works
 
10:10 PM
want to see some weird stuff?
username: foo
password: bar
login, then logout
login, navigate ANYWHERE, try to logout
reload the page, logout
my current conundrum :S
 
10:24 PM
This language is so wrong
And yes this will be used in debug builds :O
because people violate this kind of stuff all the freaking time
 
user1385191
10:52 PM
closures in as3 = big help + awesome
 
@rlemon ... is it getting confused because of the relative URL in your submitLogout() function?
 
It's not firing the event. I have also tried

$(document).bind("mobileinit", function() {
$("#btn-logout").live("click",function(){
$.post("../server/log.php", { uaction: "logout" },function(data){
window.location = "/index.php"; // forces refresh of the data on the page
});
});
});
it is also important to mention, if i place an alert in the function It is never fired.
if you look in FireBug however, you do see the style on the button changing. Which leads me to believe the click event is registered. but my function is never called.
 
well, it's different from the login button, which has a real href.
My jQM app uses plain old HTML links and forms, and works great. I haven't messed with Ajax posting.
 
then why would it work if you don't navigate away, or if you reload the page.
 
So, it's never executing the callback, prolly because it is sending the POST to the wrong URL?
 
10:57 PM
unless you disable ajax, by default all pages are loaded via ajax (if the device/browser supports it)
 
Can you see the logout POST from the webserver logs ?
 
nope, if i prepend alert('here'); i don't see that either.
the click event binded to the anchor tag via jquery is not registered. Nor is the onClick event defined by the tag itself. strange isn't it
 
Try using an absolute URL for the POST, e.g. '/server/log.php'
or try just <a href="/server/log.php">
 
i could. give me a second. lemmy try that on my test server.
 
Chrome's inspector shows onclick="submitLogout()" on the logout anchor for me...
 
11:01 PM
yes, it is there on the live demo. and if you look in the function or add a breakpoint there in FireBug you will see it is never called after you navigate to a page, after logging in of course
and i applied your suggestion in its most exact interpretation. I changed the href from "#" to "bin/server/log.php" and now i am logged out, but the login dialog appears again :) hehe so it definitely has something to do with the hash symbol in the href attrib.
nevermind. removed the href attribute completely and still same results.
 
user1385191
calling it does nothing either
 
user1385191
and you want your anchors to point to valid links, so stripping the blank hash would be a good idea
 
doing so did nothing. it's like no methods other than the ones defined by the framework are being fired
the logout button does not need to point to any apperent page. it just needs to post to the server so i can clear up the session, then reload the page.
 
11:24 PM
for further discussion see stackoverflow.com/questions/7288115/…
 
could someone help me with this unanswered quandry
0
Q: Resizing and centering an img in an "overflow: hidden" div

yourfriendzakI want to create a javascript/jquery function which will resize an img (while maintaining aspect ratio) of any set dimensions so that it fills a parent div (that has overflow:hidden set) of any set dimensions without gaps. The image should resize to parent along whatever dimension (width or heigh...

 
11:39 PM
anyone active in here?
 
01:00 - 22:0022:00 - 00:00

« first day (321 days earlier)      last day (4612 days later) »