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

08:00
@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
08:22
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?
08:24
@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
08:27
@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()
08:30
@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
08:37
lol imagine an entire application like that :S that would be worse than using goto
You mean that isn't normal?
goto is a great way to keep code organized
not to mention optimised
mmmm spaghetti
08:40
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
08:42
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?
08:44
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
08:45
@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
08:50
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
08:51
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?
09:00
@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
09:03
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 :)
09:05
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
09:06
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
09:07
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?
09:10
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?
09:16
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.
09:18
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++.
09:20
@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"?
09:24
@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
09:25
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
09:27
@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.
09:30
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.
09:33
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 :)
09:36
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
09:38
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
09:39
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
09:40
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
09:42
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
09:44
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
09:45
@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
09:46
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" />
09:47
omg
bloginfo
what? :P
@Necro just calm down a bit... breathe! lol
please sorry guys if im being dumb here!
09:47
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
it's part of WordPress
ok
09:48
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.
09:49
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)
09:51
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)
09:52
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
09:53
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
09:56
Thats the function
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
09:56
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
so what is your concern with all this?
09:58
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
09:59
<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 (4413 days later) »