@byf-ferdy Welcome to the JavaScript chat! Please review the room pseudo-rules. Please don't ask if you can ask or if anyone's around; just ask your question, and if anyone's free and interested they'll help.
@Connor ah ok..the image represents a large floor plan and rooms(markers) on it .. and we only show a part of the image..when the user clicks the room name..(some list of room names), the room (marker) needs to be centered in the viewport
suppose the image is 1200 x 1000 .. and we only show 500 x 500 part in the div.. given a room is located at location (700,800), i want to pan the div to that location
Oops! Google Chrome could not connect to jsfiddle.net Other users are also experiencing difficulties connecting to this site, so you may have to wait a few minutes.
<meta name="viewport" content="width=1280px" /> gives me Viewport argument value "1280px" for key "width" was truncated to its numeric prefix. I'm supposed to fix it by comma-separating the values, but there's only one value. What am I doing wrong?
Was it fun though? I'm really just looking for something awesome to play, I've been running stale for several months now. TES, Kingdom Hearts, some other FFs or Dark Clouds won't do (I've already done them).
This is my favourite game on my phone: http://en.wikipedia.org/wiki/Superbrothers:_Sword_%26_Sworcery_EP It's all atmosphere. Not really even any gameplay to speak of.
@BenjaminGruenbaum Pretty awesome CPU and RAM (GPU lagging behind, GT 430), I've got some time, and anything good. RPGs and shooters are always welcome (the former needs to shine, though)
Sims is boring. I made some houses, put some 2 families and pit them against each other, get bored and kill them all.
First time I played the sims, I let my computer run overnight so that they could continue about their business, I had no idea just how stupid sims were at the time, I woke up in the morning, nothing but ash and carnage, everything was dead.. I was sad..
I don't remember the name of the game, but you basically had to make trains and stuff to help economy and transportation and shit. So I got bored, and made 2 huge ass trains. Populated them with several cities. Then crashed them against each other.
For instance, I did like 60% of Dark Cloud 2 in a very short time. And then I had stuff to do. It weighed on me for about a month before I did everything else in nearly one sitting.
Maybe you should try skyrim, I think TES games are getting gradually worse with Arcanum being a peek and the new Fallout games being a blasphemy to the original series
need some advice please, im using a for loop (jQuery.each) to insert multiple iframe into the document, i am wondering if its possible to wait for the last iframe to load before carrying through the each to the next frame?
@BenjaminGruenbaum im the guy that had that uglu jquery script to order records on a table, you suggested to use a JSON array to do it on the client's side, im here to ask you if you can point me in the right direction to figure out how to translate my ugly script into JSON and dialog with the database (php/mysql)
@Stripps Welcome to the JavaScript chat! Please review the room pseudo-rules. Please don't ask if you can ask or if anyone's around; just ask your question, and if anyone's free and interested they'll help.
@BenjaminGruenbaum yes i can get the data from the server, i mean, i do have access to the particular talbe on the database where all the data is stored
@sebas ok, let's build a similar example together, I have a JSON with objects I picked from the database (only the fields that are relevant), and I want to build the table, so far so good?
So basically, when I first joined the SO chat and found the Android room, it was abandoned. The original room owner was inactive and I wanted to change something in the room description, asked a mod to do it for me (that moderator was balpha) which also appointed me as the new room owner.
@sebas It's a JSON for analysts, it contains analyst names, and ranks, let's ignore the rest of the data there for now, you can view it more clearly at jsonviewer.stack.hu
I've got a jQuery Mobile application, my problem is that i'm loading <li> elements dynamicly for the application. This results in that the first page's <li>-elements does not get their class-attributes = no css. I've tried element.trigger("create") but that didin't result in anything :/
@sebas it contains a basic object that represents our objects, with a single method that grabs those objects from the server. The bottom is Knockout, we'll get there
Back then I was still a Q&A community noob, I had no idea what a help vampire is and didn't know how to deal with them so I just continued to be a good host for them and let them suck my energy and knowledge.
Now the turning point. I was actively trying to get high profile users and Google employees to join the room, even succeeded in doing so but certain users that happened to be help vampires of course alienated the high profile users within hours.
@sebas The next thing we do, is add an observableArray which will be our array of actual analysts, observable arrays are objects in Knockout that automatically change their appearance in the DOM when they change. We'll also implement the fetch. jsfiddle.net/qpdcR/2
@sebas no, but every time we fetch new data from the db, or manipulate the data on the client side (sorting it for example) it'll automatically change what appears in the HTML for us
@sebas this is called 'Data binding', so far so good?
My first attempts to get things sorted out by asking them to keep their conversations to English and trim down on the help vampire lifestyle were met with ignorance.
@sebas now, we'll actually call 'fetch' when the object is created (and make it a member functions), jsfiddle.net/qpdcR/3 , if you check the network tab, you can see an AJAX call is now made
@sebas I know, this all seems "in the air" right now, let's add in some HTML so we'll see what we're getting it, we'll use a foreach binding (go through every element) and a text binding (change the text of this element). See jsfiddle.net/qpdcR/4 , if you have any questions, feel free to ask
He and his clique started to actively ignore what we were preaching and troll us, mock us and then insult us in their mother tongue which a regular and co-room-owner happened to speak as well.
It escalated to the point where said user and his clique threatened my co-room-owners life, they started to stalk his online activities, found out where he lived and so on.
@sebas Yes, we have a fetch method for the JSON which we call, and we're building a list by data-binding, even though the analysts are not there initially, as soon as they're fetched the list updates. The next example just applies some css jsfiddle.net/qpdcR/6
However that was met with a log of anger towards me, most uninformed people instantly believed I was Lucifer himself (or a equally bad character in their religion), suddenly I was a Nazi and all bad on earth because they believed it was a racial thing.
@BenjaminGruenbaum before you on, you must know that for my use case Im dealing with a ton of records (and data on each one) and then on the html output i will have 650 records showing, given these facts do u still think this is the best way?
At some point I got tired of all the disruptions and tired of explaining myself all the time to help vampires and users that were just here to disrupt and decided to become that bad rule everyone though I was.
@sebas jsfiddle.net/qpdcR/6 now we're returning computed analysts, note how we're binding to shownAnalysts which is just a function returning the analysts
@sebas now let's say we'd like to sort the analysts by rank, which is similar to your case where you wanted to sort based on something, we just change the function shownAnalysts returns
The situation wasn't over though, the other users, the locked out ones, started to create myriads of other Android related rooms which was met with confusion and incomprehension by other chat users that weren't even related to the room and the incident.
@BenjaminGruenbaum i see, but what if u have to BUILD that score/rank on the fly based on combinations of contains and not contains on each record (and the score is not in the db)
@sebas Just for a taste, here is a FULL BLOWN example, I made this in two days (most of which were server-side) for work as a proof-of-concept, in practice my work is a lot more polished :) However, given the time constraints I'm satisfied, tipranks.com/resources/finance.yahoo.com/MSFT.html