Jump to content


gizmola

Member Since 06 May 2003
Offline Last Active Dec 10 2014 02:59 PM

Posts I've Made

In Topic: Confused

04 December 2014 - 03:16 PM

When you do a query, you fetch the results in your server side script.  Each row is going to have an id column, correct?  

 

Your script returns output in the form of html.

 

It is up to you to determine what the form of that output would be.  For something like this, a typical response would be in the form of a table with different columns.  Often people will include a column with one or more buttons like "ban", "edit", "password".  The buttons can be simple url's of the type Cronix just described.

 

You simply need to write the scripts for each of the functions, or perhaps a master script that took multiple parameters like:

 

 

user.php?uid=4&mode=ban

In Topic: Can you read in an image from a file into html without refreshing a webpage?

04 December 2014 - 03:11 PM

Hey greenace,

 

I saw you got some great advice already.  

 

It would really help you in getting answers if you were to try and boil down your problems concisely.  You provide a lot of detail and superfluous info that has nothing to do with your problems at hand. 

 

Try to make a mockup or other visual representation, or provide something as a point in reference if you can.  It would really help.

 

Javascript is a complicated language with huge differences from php, and the DOM and cross browser details make things exceedingly confusing in comparison.

 

With that said, I agree that the fastest way to get solutions to what you're trying to do visually is to use jQuery and one of the many compatible classes out there that will handle the animations you originally wanted.

 

There are probably hundreds of different slideshow libraries out there.  

 

Trying to do a pure css slideshow is still exceedingly difficult and limited, even with css3, which of course means it will not work in older browsers.  This article shows that it's possible, but there's a lot to it:  http://www.smashingm...ling-slideshow/

 

As to your original question, already answered:

 

For dynamic loading of content -- when a page is loaded, the connection to the server is ended.  Each individual component of that page will be loaded separately by the browser once it has gotten the html, however, eventually when all the components (html, javascript, css, images, flash etc) have been fetched by the browser, everything is completely client-side in the user's browser.  

 

The only options at that point are javascript or object embed techs like flash, which are again running on the user's computer in their browser.

 

The way to go beyond the basic HTTP request/response architecture involves using javascript to make dynamic requests (Ajax or the newer web sockets).

 

So at this point, you really have to get into javascript to get a rich multimedia experience with dynamic updates to content.  

 

I don't really know from your description whether or not you even need dynamic updates to the DOM based on your original objective.  You can generate a list of 'n' images randomly for each page view and provide enough so that your slideshow can work, and of course that would all be pre-determined when the page was originally server side in your php code.


In Topic: php self to include full url

04 December 2014 - 02:47 PM

That is some odd behavior.

 

If you omit the server portion in a url, your hostname will be inferred/filled in.  This goes for forms that don't specify a target as well.  They will post to themselves.


In Topic: db-passwd : port over from server to local machine

04 December 2014 - 02:27 PM

I'm not sure we have enough information.

 

Typically on your localhost install you will be running a local mysql server. 

 

For this reason people use a variety of different techniques to differentiate your environment.  These are some of the common environments:

 

 

'dev' - development

'prod' - production

'test' - for automated testing/unit tests

'qa' - for quality assurance

 

 

Many frameworks come with a configuration scheme that allows you to have different configuration variables for each, and then differentiates the environment based on something like a route or an environment variable.


In Topic: Getting 503 Error on page that loads every other part

19 November 2014 - 02:25 PM

Take out all of your suppressions (the @ sign before functions) and run it on your server.  What error(s) are you getting?


Cheap Linux VPS from $5
SSD Storage, 30 day Guarantee
1 TB of BW, 100% Network Uptime

AlphaBit.com