hackalive
Members-
Posts
652 -
Joined
-
Last visited
Everything posted by hackalive
-
How to combine the two to get the desired outcome. One link shows the outcome. One of the other links shows how you can do one aspect and the other shows the other aspect. So my problem is I have been unable to combine the two to get the outcome, so if someone could help with that it would be much appreciated. Hope that makes sense.
-
How can there be problamatic code when no one so far can exmplain how to constuct the data like the samples I have provided.
-
I want to know how I can construct a JSON array like what I showed above by using json_encode which will be populated from multiple mysql queries so how do i do the strucutre like that? and make it? Do i manually enter the [ and { etc?
-
I have solved the get bit, its just the recurring bit I need help with please guys.
-
Hi guys, I am after some simple code/tutorial that shows how to make an AJAX/jQuery function to fetch data from a PHP MySQL Database on a timed interval. So far I have not been able to find a simple example of this so if anyone can help out that would be very much appreciated. Cheers in advance.
-
I can do variable width using this code: http://jqueryui.com/demos/sortable/#display-grid but cannot do height. So I need advice and help please on how to combine the two to get my desired outcome Thanks all in advance.
-
Hi guys, I am using this code to allow me to swap divs of different heights. http://jsfiddle.net/ryleyb/Y5fzX/1/ However, I also want to apply it to divs of different widths, so I can do something like: http://www.askvg.com/get-windows-8-start-screen-look-like-metro-style-homepage-in-mozilla-firefox-ie-and-other-browsers/ (only live example I can find that sort of shows what I am trying todo.) So if anyone can help me with this, that would be much appreciated. Cheers in advance
-
Im looking how to output json like this from PHP {"menu": { "header": "SVG Viewer", "items": [ {"id": "Open"}, {"id": "OpenNew", "label": "Open New"}, null, {"id": "ZoomIn", "label": "Zoom In"}, {"id": "ZoomOut", "label": "Zoom Out"}, {"id": "OriginalView", "label": "Original View"}, null, {"id": "Quality"}, {"id": "Pause"}, {"id": "Mute"}, null, {"id": "Find", "label": "Find..."}, {"id": "FindAgain", "label": "Find Again"}, {"id": "Copy"}, {"id": "CopyAgain", "label": "Copy Again"}, {"id": "CopySVG", "label": "Copy SVG"}, {"id": "ViewSVG", "label": "View SVG"}, {"id": "ViewSource", "label": "View Source"}, {"id": "SaveAs", "label": "Save As"}, null, {"id": "Help"}, {"id": "About", "label": "About Adobe CVG Viewer..."} ] }} REF: http://json.org/example.html
-
Hi guys, I need to know how to json_encode a mysql output, so far the PHP ref manual for json_encode is not proving very helpful. Any help is much appreciated.
-
Hi Guys, This is my so far mod_rewrite RewriteEngine On RewriteCond %{REQUEST_URI} !-f RewriteCond %{REQUEST_URI} !-d RewriteRule ^([^/.]+)/?$ /index.php?page=$1 [L] Now I want to know how i can remove the .php extension from the end of SPECIFIC files (i.e., login.php so I can do login/xyz whith no .php) Cheers in advance
-
I found this http://wettone.com/code/clean-urls I think thats a good resource for anyone else who ever gets stuck with this Thanks thorpe for your help.
-
thrope, Thanks for pointing out my lack of information appreciated. I know basically how to get mod_rewrite to work and do like mydomain.com/me/friends which is me.php?action=friends (or similar) But how do I make the mod_rewrite work to do something more like mydomain.com/me/friends/adam which is me.php?action=friends&name=adam It how to do that which I am stuck with. Thanks again thorpe.
-
laffin, id greatly appreciate your help with this if possible It would be much and greatly appreciated.
-
Im not interested in using an MVC, and Facebook does not use a traditional MVC, I am after how I can implement this without an MVC and just Plain Apache and PHP. So if you could tell me how to do that it would be much appreciated.
-
@gizmola: Ok, that tells me how it works (sort of) but not how to make it work. Whats the PHP and whats the mod_rewrite to go with it to make the URLS like those of Facebook? Espeically the noted sample I posted.
-
If someone can provide an answer based on the above (for Q1) that would be much and greatly appreciated.
-
@gizmola: So how would you handle one like https://graph.facebook.com/me/friends/1207059 ? REF: https://developers.facebook.com/docs/reference/api/user/
-
Any one else have an answer to Q1 or Q2?
-
Hi Guys, I am working on my own API using OAuth 2, like Facebook. Now I have worked out all the OAuth part of the API exactly like Facebook has thier Graph API. My remaining issue is rendering data from a DB call in JSON. So two part question really: 1. Facebook API uses URLs such as http://api.facebook.com/me/name to get your name. Does it do this by having an index.php and doing an if on the url, for example if me and if name then .... or something else? How should I make this work? 2. How to render the output from MySQLi as JSON. Many many thanks in advance. Cheers
-
Hi guys, I can't find any code to help me out with this so I was hoping you guys can. I need some PHP jquery/AJAX code that allows me to do the following: Double click a disabled text box, edit the value and on click out (or whatever) it re-disables and makes the chages in the mysql DB automatically. Hope you guys can help me out. Cheers in advance
-
Hi guys, I am after some simple code that will do the following. As an AJAX pull data from a DB at regular intervals using PHP and MySQLi. Thats it So anyone help is greatly appreciated. Cheers
-
@PaulRyan, Perfect! Thanks heaps. Also a thanks to all those who made suggestions and helped out. Have a good one.
-
Absolute shameless bump
-
Yeah so store in a DB and replicate the AJAX calls the IM stuff usually does
-
@thorpe, Reflecting I can see that its not all that clear. I'll lay it out step by step ================================ 1. http://mydomain.com/ is open on PC1 and PC2 2. Same use (demo) has logged on on both PCs 3. PC1 and PC2 are allocated a "GUID" stored in $_COOKIE['guid'] and in DB. This GUID acts as the identifier of each device. You will see the purpose of this in a minute. 4. on PC1 I press a button "make PC2 blue" When I do this it should send a command to the AJAX listner on PC2 from PC1. The listner disects the command and then acts on it The only part i need help on is making the listner and sending commands to it. ================================= Does this make things clearer? or not?