www.webdeveloper.com

Search:

Type: Posts; User: b3nj4m1n

Search: Search took 0.01 seconds.

  1. Replies
    8
    Views
    639

    Of course it will restart, you are restarting the...

    Of course it will restart, you are restarting the code by refreshing the page :-)

    What is the purpose of refreshing?

    And are you able to use php, or another server side scripting language in...
  2. Replies
    1
    Views
    2,695

    Dynamically resize images

    This question has been asked a hundred times, but I haven't been able to find the perfect solution, -yet.

    I have a page where i load pictures dynamically when user clicks <- or -> buttons, with...
  3. Replies
    17
    Views
    10,766

    This is not necessary

    This is not necessary


    <td align=\"center\">".(isset($_SESSION['user_id']) && $_SESSION['user_id'] == $row['user_id'] ? "<a href='/index.php?menu=status&delete={$row['ordre_id']}'>Delete</a>" :...
  4. Thread: Google Maps

    by b3nj4m1n
    Replies
    2
    Views
    1,016

    If you need the map to be interactive, you should...

    If you need the map to be interactive, you should find the coordinates for your location, and then add a marker directly in your javascript.


    <script type="text/javascript"...
  5. Replies
    17
    Views
    10,766

    This should help: if...

    This should help:


    if (isset($_SESSION['user']['id'])) {

    if (isset($_REQUEST['delete'])) {

    if (!eregi("[0-9]{4}", $_REQUEST['delete'])) {

    die('Invalid ID');
  6. Replies
    17
    Views
    10,766

    if (isset($_REQUEST['delete'])) { if...

    if (isset($_REQUEST['delete'])) {

    if (!eregi("[0-9]{4}", $_REQUEST['delete'])) {

    die('Invalid ID');
    } else {

    $mysql->query("DELETE FROM ordrer WHERE ordre_id='{$_REQUEST['delete']}'");}

    }
  7. Replies
    3
    Views
    1,641

    If you use jQuery, you can do stuff like that...

    If you use jQuery, you can do stuff like that very easily

    $("#ButtonId").click(function(){$("#TableCellID").animate({width: "200&#37;"},1500 );});
    Substitute "200%" with any % or px value.
    1500 is...
  8. Replies
    17
    Views
    10,766

    No, it's the SQL statement, or the way you call...

    No, it's the SQL statement, or the way you call the databse that is screwing around.
    The last post was just a good thing to do under any circumstance :-)

    Can you post the whole page? Or send me a...
  9. Replies
    17
    Views
    10,766

    You could also consider doing something like...

    You could also consider doing something like this, if you have a lot of parameters in the URL


    $query_str ="";

    $count = count($_GET);
    $i = 1;

    foreach ($_GET AS $var => $val) {
  10. Replies
    17
    Views
    10,766

    You probably need it to be

    You probably need it to be

    <a href='/index.php?menu=status&delete={$row["ordre_id"]}'>Delete</a>
    You should set a standard value for menu in the top of your page, so it will always be set (doesnt...
  11. Replies
    17
    Views
    10,766

    Do you have rewrite-engine turned on? If not,...

    Do you have rewrite-engine turned on?

    If not, you will have to call status.php?delete=xxxx, instead of /status/?delete=xxxx

    Remember that validation of the $_REQUEST parameter is CRUCIAL when...
  12. Replies
    17
    Views
    10,766

    You could do one of two things. If you want to...

    You could do one of two things.

    If you want to delete without reloading the page, then i would recommend that you get a javascript library with ajax capabilities, like jQuery

    It will make your...
  13. Replies
    1
    Views
    2,731

    jQuery Does facebook gallery reload or not?

    Hi.

    I am developing a picture gallery, where pictures are dynamically loaded with jQuery (Like in the facebook picture gallery - prev/next button)

    Everything is working fine, but there is one...
Results 1 to 13 of 13
HTML5 Development Center



Recent Articles