Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums Back End Edit XML with PHP

  • This topic is empty.
Viewing 6 posts - 31 through 36 (of 36 total)
  • Author
    Posts
  • #78577
    Capt Otis
    Member

    It it because of your page variable in the url…?

    Try this instead

    Code:
    $_SERVER[‘REQUEST_URI’]
    #78579

    I actually tried ‘#’ (before I saw this) and surprisingly it works! Is there any advantage in using the other?

    #78580
    Capt Otis
    Member

    The method I gave carries over variables in the url…

    Instead of

    Code:
    about.php

    it would display the variables if they were there.

    Code:
    about.php?page=3
    #78581

    ok, now I would like to make the boxes sortable with jquery. this is what ive got but it’s not working. whats wrong here?

    Code:
    $(function() {
    $( “.postbox” ).sortable({ handle: ‘h3.hndle’ });
    var handle = $( “.selector” ).sortable( “option”, “handle” );
    $( “.postbox” ).sortable( “option”, “handle”, ‘h3.hndle’ );
    $(“.postbox”).disableSelection();
    });

    It’s even still selectable…

    #78586
    Capt Otis
    Member

    What do you mean by sort them? Can you show me the code for what you want to sort?

    #78587

    I want to be able to drag and drop field groups so if the user wants them in a different order he can simply drag and drop the package box containing the title, price, and description fields.

    http://jqueryui.com/demos/sortable/

Viewing 6 posts - 31 through 36 (of 36 total)
  • The forum ‘Back End’ is closed to new topics and replies.