« first day (760 days earlier)      last day (4192 days later) » 

8:00 AM
@eicto ah i gotcha
the setTimeout method works
but not the $(this).find() method
 
haha nice, they are the SO police
 
i believe the problem is the open event gets called before all the elements get rendered to the page
err all the new dialog elements i guess...
wow @eicto the setTimeout method works even with the interval is set to 1/100
what does that mean??
so setTimeout(function(){ $('form #entry_mark').last().focus();},1/100); works but $('form #entry_mark').last().focus(); does not
ok actually an interval of 0 works even
i am thoroughly confused. i mean that solves my problem... but im confused
 
8:22 AM
fyi, the interval uses milliseconds and is usually restricted to a 4ms delay or slower; depending on the browser
 
Hey guys has anyone here used JW Player?
its a movie player
 
@AndyPerlitch try temporary remove grayout
 
@AndyPerlitch Thief has a point. It can't possibly be 0 milliseconds
 
@ThiefMaster ok so if some action() fails but setTimeout('action()',0); works, its because something is being fired after that statement that allows action() to work
 
Could be that it simply required a callback because it's asynchronous?
 
8:24 AM
@eicto like make it not modal?
 
@AndyPerlitch yes, remove the trigger on line before that
 
Can someone please have a look at my question at: stackoverflow.com/questions/13375066/…
Im having some trouble.
 
0
Q: JW Player Movie Database service does not work for safari (all other browsers work)

NecroI have a script that plays a movie given to it by a service. <div id="player1">Loading the player ...</div> <script type="text/javascript"> jwplayer('player1').setup({ file: "downloadvideo.aspx", width: "296", height: "240", type: "mp4", ...

 
How did you make my question big like that lol?
thanks anyway.
 
@Necro the chat engine does it automagically
 
8:27 AM
@Necro place the link to question alone
 
@eicto still no luck
 
@eicto I see, thankyou.
 
@AndyPerlitch ok, it may be something with change focus from canvas.... may be bug in chrome, try to make this standalone and as a q-n on Stack Overflow
 
@AndyPerlitch: NEVER pass a string to setTimeout()!!!
 
btw dialog seems focus automatically to first input element, before open()
 
8:30 AM
@ThiefMaster argh i never do! my attempt at pseudo code...
haha
 
@ThiefMaster he did ? i see there function()
 
what i meant was if some action() fails but setTimeout(function(){action();},0); works, its because something is being fired after that statement that allows action() to work
:D
@eicto hm im not seeing that... what browser are you using?
 
@AndyPerlitch chrome
i mean in simple fiddle
 
@ThiefMaster you mean like eval('setTimeout("eval(\'alert();\'", 500);');?
2
because I do that all the time ;)
 
@mmmshuddup you just blew my mind
 
8:37 AM
lol imagine an entire application like that :S that would be worse than using goto
 
You mean that isn't normal?
 
haha
 
goto is a great way to keep code organized
 
not to mention optimised
 
mmmm spaghetti
 
8:40 AM
and its an anagram for togo, and they make some damn good sandwiches
 
@SomeKittens Whadya mean?
 
thats three great reasons
 
never heard of them
 
@Nile There's /urban
@phenomnomnominal Yep. Either check out the docs or do /listcommands
 
@AndyPerlitch although anything is better than subway at this point ha. I haven't enjoyed subway in many years
 
8:42 AM
Know this is for JS... however can anyone assist me with a @mediaquery call into WP please :)
 
!!/listcommands
 
@mmmshuddup truth. all the sandwich places are really going downhill
 
that doesn't work :(
 
erm, sorry. thought rlemon ran his. try again
 
@AndyPerlitch why do you say that?
 
8:44 AM
Ive basically got the style sheet for resizing my browser... however its not calling it in the WP header... and im wondering how to amend it... so if there is any lovely people who would be able to assist i would be extremely happy :)
 
!!/listcommands
@Zirak Available commands: help, listen, live, die, forget, ban, unban, regex, jquery, choose, user, listcommands, define, norris, urban, parse, tell, mdn, get, nudge, ring, roll, spec, todo, convert, stat, google, beautify, hang, learn
 
@mmmshuddup quiznos used to be the gold standard in my book
now its all gone to hell in a handbasket
 
indeed. quiznos was really good in my opinion
 
@eicto i see that
i give up for the night
thanks for the help man
 
@AndyPerlitch Sometimes that's the best thing you can do. I worked on a gmaps bug last night for 8 hours and couldn't solve it. I woke up this morning and had it fixed in 20 minutes
 
8:45 AM
@mmmshuddup true that
 
you can delete it
 
@eicto your profile brought me to bitcoin. i am incredibly confused and intrigued
also slightly humored
 
All clean, good day.
 
lol looks like you got it
 
@AndyPerlitch I understand.
It shall be done.
But on a serious note, do you guys know why my javascript movie player workes on everything besides safari
its driving me mad
 
8:50 AM
hmmm ask a question in a room that aint active.... ARGH! lol
 
ripping good laugh. alright gents im outty. @mmmshuddup im hoping for that aha moment tomorrow. @Necro i messed with jw player a looong time ago. wish i could help but im fried
 
@AndyPerlitch No problem.
 
@eicto thanks again for the help
 
haha yeah good luck wiht that
 
night yall
 
8:51 AM
night Andy
 
goodnight!
 
Is there any nice people who can assist moi pretty please on this? stackoverflow.com/questions/13375127/mediaquery-call-in-css/…
 
@KirstyHarris Your question is a bit confusing
<quote>Please see below header of my document referencing the other stylesheet but its not appearing to call it when browser is different (however it is effectively resizing in different resolutions)</quote>.... what are you trying to say here?
 
sorry
@mmmshuddup basically i have designed this ok and i want it to resize as per a responsive design
and i have included the media query CSS however it doesnt seem to be resizing
 
so you want it resized based on browser size?
 
9:00 AM
@KirstyHarris I do not see any code in your question that would format your website for a mobile device.
 
yes
well on the demo it called the media queries stylesheet into the header?
 
you need to post what is inside of media-queries.css.. maybe the path to that file is wrong
 
@KirstyHarris Have you added anything like this? :
<meta name="viewport" content="initial-scale=1.0, width=device-width" />
 
well thats the thing, ive have used the following demo .. one sec
 
@KirstyHarris what @Necro suggested won't resize the actual HTML elements, but rather it shrinks the entire page
 
9:03 AM
see i dont want that
basically i got a demo using responsive design
and put it all in a 980px wrapper... and that it called a stylesheet when it was a certain size
 
I understand what you want but You need to be certain media-queries.css is being parsed by the browser
 
@KirstyHarris What do you actually want then? how can you fit the elements into a page WITHOUT shrinking them.
on a mobile device.
 
@KirstyHarris go to view source in your browser, if you're using firefox or chrome you'll see media-queries.css as a clickable link. Click that link. If you don't see CSS then your path is wrong
 
@mmmshuddup Whats he trying to do?
 
ok i will double check that
im a she :)
 
9:05 AM
she
haha jinx
 
Its the Internet, were all males until proven female.
 
1 min ago, by mmmshuddup
@KirstyHarris go to view source in your browser, if you're using firefox or chrome you'll see media-queries.css as a clickable link. Click that link. If you don't see CSS then your path is wrong
 
im just checking this now
 
@Necro LOL
 
9:06 AM
ah... that makes sense... the link is there... but the path is wrong
 
:)
i never thought, a mean i just put this in the main theme folder!
 
@Necro still LOLing
 
@mmmshuddup You know its true.
 
@Necro haha yes that's partly why I laughed so hard
 
9:07 AM
so if i change this path.....
should it fix it?
lol
 
I don't remember the location of the themes folder in WP as I never use WP. but something like /wp-content/themes/media-queries.css
 
@mmmshuddup I have been sweet talked by to many 55 year old(male) night elf girls to assume someone is female again.
 
yh.... its similar to that :)
well put it this way im not 55#
well not last time i checked
 
@Necro lmao
 
@mmmshuddup Seriously though, what is @KirstyHarris trying to do?
 
9:10 AM
she just wants her media-queries.css file to load. her path is wrong
 
ok
 
i assume that WP wont have a fit at me if i put the correct file link?
and it SHOULD resize in browsers ie mobs
 
@KirstyHarris yes, try it.
@KirstyHarris any luck?
 
2 mos :)
 
@mmmshuddup @KirstyHarris would you guys mind up voting a question i have regarding a bug with safari?
 
9:16 AM
I already upvoted that question. but only because it's a good question
 
Thats what i mean, its not like i dont know how to do somthing.
Its broke.
 
sure :)
send me the link :)
 
1
Q: JW Player Movie Database service does not work for safari (all other browsers work)

NecroI have a script that plays a movie given to it by a service. <div id="player1">Loading the player ...</div> <script type="text/javascript"> jwplayer('player1').setup({ file: "downloadvideo.aspx", width: "296", height: "240", type: "mp4", ...

 
@KirstyHarris I posted a formal answer to your question.
 
There you go.
 
9:18 AM
heh, a really old answer just got upvoted
4
A: Get file contents in java script

Florian MargaineYou can use XMLHttpRequest in Javascript to fetch datas from an external URL. Here is a good resource : http://www.w3schools.com/ajax/default.asp (I usually don't recommend them, but the AJAX tutorial is really good). Also, this had to be there :

 
@Necro wow I haven't used VB in almost 6 years
 
a funny one.
 
@mmmshuddup Im just doing it for one of my works servers. Im an apple developer most of the time.
 
Oh right on
 
@mmmshuddup Next to doing php, c#, javascript, vb and C++.
 
9:20 AM
@FlorianMargaine LOL
I love that "you should really use jQuery. It's really great and does all things" LMAO
 
thanks @mmmshuddup :)
 
@KirstyHarris You're welcome
 
im just trying it now :)
 
That's so funny "you should really use jQuery. It's really great and does all things"
I get trolled with that all the time.
Its the rick roll of programming.
 
lol
@Necro what do you mean you get "trolled with that"?
 
9:24 AM
@mmmshuddup I will have a problem with something and someone will be like, "Oh i fixed it using jQuery" and i look it up to find out they were BSing me.
 
ok mmmsh... ive called the correct path....
and its still not resizing it on my mob browser
could it be due to the fact that WP calls stylesheets differently?
 
@KirstyHarris well but you're one step closer now
 
lol yh true :)
 
@KirstyHarris that is not possible lol
 
eh lol
 
9:25 AM
0
Q: Making Images Viewed By UIWebView Smaller

Necroi have a list of entries from a database and I'm feeding them in to HTML to a UIWebView that is making a list of the database entries on the page. (Much Easyer/Better then extending UITableView Cells) My Problem is with UITableView i was able to grab an image on a server as NSData and with UIIma...

@mmmshuddup look at my only comment.
 
If the CSS is included in your page via <link> then it doesn't matter how it got there.
 
well its not like jiggin it around... its linking to the stylesheet in the source... but for example my stylesheet for the main one is called completely different
even if WP calls the main CSS differently?
 
@Necro ahhhhhhhhhhhh I get what you mean now. LOL that's so weak
 
ah!
'<link rel="stylesheet" href="<?php bloginfo('template_url'); ?>/yourcssfilehere.css" type="text/css" media="screen" />'
thats how it calls CSS in WP???
or...
@import url(style2.css);
 
right, that's how the <link> element is added to the DOM, but it still is ultimately handled by your browser
 
9:27 AM
@Necro comment flagged
 
don't use @import
 
@Necro is your question still on?
 
right ok... so shall i try using the above method? with the link bit?
 
@FlorianMargaine @mmmshuddup Ignore that actual question now though, its fixed.
@FlorianMargaine Nah ill tick an answer of my own if you want.
 
@Necro oh, then you should post the answer yourself and accept it.
 
9:30 AM
looks like most of the tuts for multiple CSS calling in WP are using the 1st option :S
 
@KirstyHarris sure, see my updated answer. And don't use @import it's considered "bad practice"
 
okies... thats fine.. i will stay clear
 
@KirstyHarris is the CSS being rendered yet?
 
i have changed the path yet, (ie like WP... two mos)
 
@mmmshuddup @FlorianMargaine Thats done now.
 
9:33 AM
just editting it now
 
what is "two mos"?
 
sorry lol two minutes :)
english slang
 
How do i add reputation to a question guys?
as a reward.
 
Nov 5 at 16:43, by rlemon
Please use proper English (or at least your best attempt at it), "MSN talk" is prohibited.
 
no, still not working.
oops sorry :)
 
9:36 AM
I need to add some sort of insentive to my question because i need it answered.
 
i will try the stylesheet directory one
<link rel="stylesheet" href="<?php bloginfo('stylesheet_directory'); ?>/hornady.css" type=text/css" />
 
but what's not working? the file isn't being loaded? WP is throwing a PHP error? The actual CSS isn't working?
 
like this... similar...
the file isnt loading
this is the CSS in the file
 
go to www.yoursite.com/path/to/media-queries.css in your browser and tell me what you see
 
/************************************************************************************
smaller than 980
*************************************************************************************/
@media screen and (max-width: 980px) {

/* pagewrap */
#pagewrap {
width: 95%;
}

/* content */
#content {
width: 60%;
padding: 3% 4%;
}

/* sidebar */
#sidebar {
width: 30%;
}
#sidebar .widget {
padding: 8% 7%;
margin-bottom: 10px;
}

/* embedded videos */
.video embed,
.video object,
.video iframe {
width: 100%;
sugar! not formatted :S
 
9:38 AM
that's ok
 
but thats basically the template
 
ok so at this point, nothing about how you're loading the CSS is going to matter
 
thats the thing... this is from a demo :S
 
chaging bloginfo('template_url') or whatever isn't going to matter. as long as it gives the right path
 
test the function
see what its actually returning
 
9:39 AM
well its deffo got the right path,
 
I don't think you're understanding what PHP does.
what is deffo?
 
sorry.
slaps hand
 
can you echo bloginfo?
and tell us what it gives
 
I'll be right back, I'm gonna go have a smoke.
 
ill take over for you :P
 
9:40 AM
yh sure :)
 
lol thanks @Necro :)
 
well tbf since i changed it the path isnt working :S
<link href="http://rusticblonde.hostizzo.com/wp-content/themes/350ppmSite/style.css/media-queries.css"
because now its added in an extra style.css :S
 
where is the closing >
 
this is what i put
<link href="<?php bloginfo('stylesheet_url'); ?>/media-queries.css"
rel="stylesheet" type="text/css" media="screen" />
 
yeha
 
9:42 AM
and it kicked out the following code in the source
<link href="http://rusticblonde.hostizzo.com/wp-content/themes/350ppmSite/style.css/media-queries.css"
rel="stylesheet" type="text/css" media="screen" />
which is wrong
 
paste what it should be
 
as its added in the extra style.css
 
ok
 
<link href="http://rusticblonde.hostizzo.com/wp-content/themes/350ppmSite/media-queries.css"
rel="stylesheet" type="text/css" media="screen" />
 
give me a sec
ok
so its adding style.css
 
9:44 AM
yh
 
i see what your saying
can i see the function
page
 
yh the function is above :)
rusticblonde.hostizzo.com
onesec... gonna try moving it to a diff directory... see if this works
 
wait
how far up is your function
 
towards bottom of header
 
i cant see it
 
9:45 AM
@Necro is @KirstyHarris proven female yet with that url? haha
 
:P
ok im having a look now
 
lol!
well it still dont work! ARGH lol
even when i moved it
 
@KirstyHarris this is your problem: `<link href="http://rusticblonde.hostizzo.com/wp-content/themes/350ppmSite/style.cssmedia-queries.css"
rel="stylesheet" type="text/css" media="screen" />`
 
its still adding in the style.css
 
that is what you are getting
 
9:46 AM
wait
 
yh....
<link href="<?php bloginfo('stylesheet_url'); ?>/scripts/media-queries.css"
rel="stylesheet" type="text/css" media="screen" />
 
you realise i cant see php dont you
 
style.cssmedia-queries.css is not a real file
 
you have to actually past the php function
 
oh i know
that is the php function :)
<link href="<?php bloginfo('stylesheet_url'); ?>/scripts/media-queries.css"
rel="stylesheet" type="text/css" media="screen" />
 
9:47 AM
omg
 
lol
 
bloginfo
 
what? :P
 
@Necro just calm down a bit... breathe! lol
 
please sorry guys if im being dumb here!
 
9:47 AM
bloginfo is a function.
what you pasted is a link
 
that is what in WP forums is said to call a extra file
0_o
 
@Necro she probably doesn't know where the PHP source for that function is
 
bingo
 
it's part of WordPress
 
ok
 
9:48 AM
end of the day all i want is the CSS to call lol!... and i googled how to call extra CSS files... and thats what it said :S
 
I hate wordpress. don't they know what OOP is? ugh
 
u are speaking to a wordpress newbie... once ive learnt this i wont bloody forget it!
 
where do you get stylesheet_url from?
 
@KirstyHarris You are misunderstanding the fundamentals of how this all works here. that is the real problem.
 
@mmmshuddup wordpress used to support PHP4 :)
PHP4 is still present in a lot of servers.
 
9:49 AM
i know @mmmshuddup
:(
 
@FlorianMargaine :P oh man. I sometimes forget that WP is old school
 
sorry, all im reading is how to import that CSS on the internet... and thats what it says to do!
:S
 
ok here I will explain briefly using an analogy.
 
i will try my best to understand :S
 
Imagine you are a patron (customer) at a restaurant. You go to the restaurant and order spaghetti and meatballs from your waiter (you're visiting the web page and thus your web browser is sending an HTTP request to the server)
 
9:51 AM
ok
 
o/
 
The waiter brings your order into the kitchen..
(the kitchen is the webserver)
 
then the cook prepares your spaghetti
but your waiter brings you a soup with salad.
 
so basically hes fucked up?
(wants a refund)
 
9:52 AM
at this point you don't who or what prepared your meal. all you care about is getting your spaghetti
 
PHP is the cook here. (pardon my erroneous analogy)
 
so u need to tell "the cook" exactly what u want right?
 
so here's what is happening
 
9:53 AM
PHP prepares HTML much the same way a cook prepares your food
but ULTIMATELY the customer gets food (the visitor gets HTML)
 
@mmmshuddup how do i format code in text.
 
likewise. your `<link href="<?php bloginfo('template_url'); ?>/media-queries.css"
rel="stylesheet" type="text/css" media="screen" />` is simply rendering HTML
using `
 
ok, thats understandable, i see that
 
more specifcally: <?php bloginfo('template_url'); ?> is simply printing text
it's like the sauce to your spaghetti
 
9:56 AM
Thats the function
 
oh ok,
 
ok this analogy has officially gone south.. :( lol
 
lol trust me... i get ur drift lol
 
how do i format text in this chat interface
 
what is "ur"? lol
 
9:56 AM
for code
your*
 
I know I was being fecicious
 
sorry .... i apologies prefusely
:P
 
ok so anyway. PHP doesn't do anything with CSS or javascript. all it does is fetch data and process things and eventually serves content like HTML or XML or JSON or wahtever
 
ah ok,
 
so what is your concern with all this?
 
9:58 AM
my concern?
 
well you're wondering why CSS isn't working when the CSS isn't even being loaded. Your first concern is getting the path to yoru CSS file correct. after that PHP becomes 150% irrelevant
 
ok
well i know that..
<link rel="stylesheet" href="<?php bloginfo('stylesheet_url'); ?>" type="text/css" />
 
ok so how do you check if the path is correct?
 
you refresh your website and view the source
 
9:59 AM
<link rel="stylesheet" href="http://rusticblonde.hostizzo.com/wp-content/themes/350ppmSite/style.css" type="text/css" />
 
what OS and browser are you using?
 
@mmmshuddup if here .phtml is:
<link href="<?php bloginfo('stylesheet_url'); ?>/scripts/media-queries.css"
rel="stylesheet" type="text/css" media="screen" />
how is she getting
<link href="http://rusticblonde.hostizzo.com/wp-content/themes/350ppmSite/style.css/media-queries.css"
rel="stylesheet" type="text/css" media="screen" />
 

« first day (760 days earlier)      last day (4192 days later) »