Help! with header of DatagridColumn

Hi all!

That's my problem... I have a datagrid with itemrenderers in the header of certain columns to filter the results. The item converter consists of a label and a custom control that displays a list of control to select multiple values. I want to allow the user can click on the header (with the itemrenderer) to sort the results, but when I activate the sortable column property, whenever I click on the list to select the records it also fires the event of sort of the header. I don't know how to define an event o centimeters events in the column header to avoid this problem.

Thanks for the comments of yous and ideas!

Hello

I tried mouseUp with priority of hieghr but it didn't work, I got the same result... the publication of header event fires first, that whole event within one of its...

I was able to solve my problem of work around the events... First... as always the header free lights up... when I'm in the service, I stop the propagation of the event... then in the his... after the mouseup event is raised to the top, I checked for the component and set a variable in the parentDocument. If after this I launch another function to sort the datagrid column...

Thanks for your help!

Tags: Flex

Similar Questions

  • Help with header & H1 tag

    Hello

    I put an H1 tag within a header tag. I want to do is to be able to move the H1 within the header tag. So I did the position of the 'absolute' header and the position of "relative" h1 tag What is the right way to do this?

    Hi.JPG

    HTML5 semantic tags with page layout example:

  • How can I get a google font (Capriola) in Muse. I pasted the code in the head of html, but the police will not be displayed. Can anyone help with teamviewer?

    How can I get a google font (Capriola) in Muse. I pasted the code in the head of html, but the police will not be displayed. Can anyone help with teamviewer?

    This is kind of a hack, but it will work.

    1. you will need to download a copy of the Capriola on your computer and install it as a system font. Google Fonts will allow you to install it as a system font in some methods (download a.) (ZIP file, synchronization with SkyFonts or downloadable on the project in Google Code). Edit: the simplest is to add the font to your collection of fonts in Google and then download one. ZIP file of your font collection.

    2. the font squirrel website has a generator of quality web fonts. It may take a font installed on your computer system and generate all the files of web fonts needed him. Place the web font files in the folder of your Muse project where you want to store the web fonts self-hosted. Use the add web fonts in Muse and select the tab fonts self-hosted.

    IMPORTANT: Please read the license terms for any font that you want to use on your website. Fonts Open source as Capriola may seem safe to use at first, but the developer of fonts may have some requirements, such as the display of a link to their web site somewhere in your own site. Other fonts may have monthly limit on number of pages seen.

  • Help please with header/footer includes

    Can someone please help with an easy to follow the answer?

    I'm building a site and want to use the header and footer as include files for easier maintenance of the links. In the header, navigation is graphics reversal. (I mention this because there is a problem with the paths of the image). I was able to get understands it appears and works, but my problem is that I want to use subfolders and here, I'm going along in circles. Graphical navigation is visible at the level of the root only.

    The structure of my site goes like this:

    Root has index.php and a few other pages, plus directories following, css, images, includes (containing my header.php and footer.php), subfolder1 (containing the index.php) and subfolder2 (containing index.php).

    The navigation works at the root level but not at the high school level. I tried to use the document and the location of links... / and / and / paths, but I cannot understand this.

    My navigation is WELCOME. SUBFOLDER1 | SUBFOLDER2. CONTACT | LINKS. Hope this is clear.

    If you want to PM me with your email and that you think it might help, I can send you one of my files and the file I use for inclusion so that you can see what works for me?

    Martin

  • A click on the shortcut to Chrome, was directed to a different Web site. Went to the McCaffee help, now headed to Google, but could not connect.

    A click on the shortcut to Chrome, was directed to a different Web site.  Went to the McCaffee help, now headed to Google, but could not connect. Not a techie, advice? On a laptop with a Router 2 son. Thank you

    original title: unable to connect to Google Chrome

    Hello


    What operating system is installed on the computer?

    You can contact the support of Google Chrome for better assistance.
    http://support.Google.com/chrome/?hl=en

    Hope this information helps.
  • Please help with the problems of Vista SP2

    So I spent all day on the forums here and I'm head over heels.  I had problems with Windows update and some other problems on my Dell Studio XPS.  It is a tower with double HDs in RAID mirror running Vista 64-bit with SP2.

    I got it for 3 years and I thought that I clean and correct certain defects to go back to the original Dell factory condition.  That did not fix the update install problem I did cleaning.  Now it's worse.

    I'm trying to install SP2 and get a catastrophic failure 0x8000ffff error-UNEXPECTED

    The onlychange is that several months ago, one of my WD 640 GB drives factory failed and I replaced it with a Seagate Barracuda 1 TB since I couldn't find a 640 GB drive.

    I tried to stop and restart all services BITS, etc. no luck.

    I tried to run among the MS FixIt for the problem of update, but it fails because it says that it cannot initialize the powershell.

    Help, please... I'm hopelessly lost and can not spend more money on this thing.

    Thank you!

    If you need additional help with the clean install, please start your own, new topic in this forum: http://answers.microsoft.com/en-us/windows/forum/windows_vista-system

    If these procedures look too complex - and there is no shame in admitting this isn't your cup of tea - take the machine to a local, good reputation and independent (i.e., not a BigBoxStore or a Geek Squad) computer repair shop & ask them to do the job.

  • Need help with the resolution.

    I want to fill the sreen of web browser why he left 2 to 3 inches from the corner. I know it's a silly question, but I really need help with this.
    Ty for your answer.

    JesterZ Hello,

    Please confirm if you use a fluid layout width or fixed width?

    Also, check if you have selected stretch for the option browser for your header bar width

    Like this

    Thank you

    Ankush

  • Need help with mobile layout

    Hello. Need help with my layout sensitive, using straight lines only html5 and css3 that I can understand and explain a novice level please - without any restart. Desktop and mobile are in a single html doc. The desktop version is 'ok '.

    current version (6_2)

    Try to match these mobile Office layouts

    On the mobile version:

    -Impossible to get the buttons nav blocks, vertical text button Align, and align the image of the product (square pictures) to the Center. (margin: auto; does not work)

    I used heights in the header because I'll have code for desktop, mobile and tablet in the CSS so it changes (and do not know how to support better). Also need to Add a link to the logo image background in header.

    Thanks in advance!

    TheOriginal150mph wrote:

    Hello. Need help with my layout sensitive, using straight lines only html5 and css3 that I can understand and explain a novice level please - without any restart. Desktop and mobile are in a single html doc. The desktop version is 'ok '.

    current version (6_2)

    Try to match thesemobile Officelayouts     

    On the mobile version:

    -Impossible to get the buttons nav blocks, vertical text button Align, and align the image of the product (square pictures) to the Center. (margin: auto; does not work)

    Commenting on just a habit of property changing the css if you have defined it for the desktop version. Your nav elements are not vertically Center because you have a bottom padding set on them for the office, there are only changes for mobile in your css media query.

    .main-nav a {}

    display: block;

    text-decoration: none;

    / * padding-bottom: 15px;   */

    Padding: 12px 0;

    }

    Change the properties for the .product-images for mobile boxes: you have float attached to them for the desktop version and which cascade down to the mobile version, unless you change in the media query:

    .product-image {}

    float: none;

    Width: 50%;

    margin: 0 auto 20px auto;

    }

    As I mentioned in one of my posts related to your project, you will probably have to make your product images a bit larger. They fill the area once they form a column to width of 768px screen or you could resist transform them to one column until a little more by using a media query extra set at a narrow screen width to evoke this action

  • Need help with the data storage store, local array and network connections

    Need help with my ESXi 4.1 installation

    My hardware:

    I built a server with an Asus P6T whitebox, i7 920, 12 Gig RAM, NIC, Intel Pro1000 PT Quad, 3ware 9650SE-12ML with 8 1.5 TB SATA green in a raid 6 array gives me about 8 + TB with a spare drive all housed within a NORCO RPC-4220 4U Rackmount Server chassis.  I also have a 500 GB SATA drive which will hold the ESXi and virtual machines.

    The network includes a firewall, Netgear Prosafe FVS336G, GS724Tv of Netgear ProSafe 24 port Gigabit Managed Switch on a dhcp cable modem internet service provider.

    I also have 2 old NetGear SC101T NAS disks (4to) I want to connect to the system how some - at a later date have... data on them and want to transfer to the new storage array. I always looking into the question of whether they will work with ESXi 4.1, or I might have to only access it through Windows XP.

    My Situation:

    I have already installed ESXi 4.1 and vsphere client with no problems and it is connected to a dhcp cable internet service.  I've set up host via a dynamic DNS service name give me a static hostname on the internet.  I installed three machines to virtual OS successfully at the moment and now want to first start by creating a multimedia storage server which will use some of this new 8 TB array, then separate data storage for use with a web server small overhead storage and a backup.  It is a domestic installation.

    Help with the data store and network:

    I was doing some reading, because I'm new to this, and it looks like I'll probably want to set up my table via ESXi as a nfs disk format.  Now, the data store is usually in another physical box from what I understand, but I put my readers and ESXi all in the same box.  I'm not sure that the best way to put in place with grouped network cards, but I want to make this work.

    I understand that in ESXi 4.1 using iSCSi LUN must be less than 2 TB, but nfs - I should be able to add a bigger partition then 2 TB (for my multimedia) in nfs, right? or should I still add it separately as a separate 2 TB drives and then extend them to get the biggest space.

    Any suggestions or direct resources showing examples on how to actually add some parts of the table as data warehouses separate nfs.  I know that to go to the configuration tab, and then select Add to storage, and then select nfs. I have not my picture, but it's here that I don't know what to do because ESXi 4.1 system already has an address, should I put the same thing to the new data store array also (will it work?), and what should I use for the name of the folder and the store of data... just do something to the top.  I thought to later install Openfiler (for a multimedia storage using this table server) as a virtual machine, use the table with esxi so that I can access the same storage space with widows and linux-based systems.

    I also know I have to find a way to better use my quad nic card... put in place of virtual switches, grouping, etc HELP?

    Any direction, assistance, similar facilities to sample, suggestions or resources that would help would be great. I did a lot of hunting, but still a little confused on how to best to put in place.

    You must think of VMDK files of large databases with records of random size guest go read some data (a DLL or an INI file), maybe write some data back, then go read other data. Some files are tiny, but certain DLLs are several megabytes. It's random i/o all and heavy on the search time. IO Opsys is small random operations that are often sequential (go read data, write data, go read other data,...) so that deadlines are critical to the overall performance. That's why people say OPS are / s of reference and forget the MBs flow. The only time where you bulk transfers are when you read media (ISO files).

    Well, now forget all this. Actually the disk activity will depend on the specific applications (database? mail server? machines compiler?), but the above is true for boots, and whenever applications are idle. You should see the profile to know.

    RAID 10 is faster (and often more reliable) than RAID 5 or RAID-6 except in certain specific cases. In General RAID 10 is ideal for many random writes, since the calculation of parity for RAID-5 and - 6 adds to the overall latency between command and response - latency is cumulative if a little slow here and a little slow it adds up to a lot of overall slow synchronous especially with e/s on a network. OTOH RAID-5 and -6 can produce faster readings due to the number of heads, so you can use it for virtual machines that transfer bulk. Test. You may find that you need several different types subdashboards for best results.

    You said 3ware, they have some good grades on their site, but don't believe it. With my 9650 that I found myself with only a couple of their recommendations-, I put the (simple) table for allocation size 256 k, nr_requests at 2 x the queue_depth and use the planner date limit. I had the habit for the Ext4 file system formatted with stride and stripe-width synced to the table and used the options large_files with fewer inodes (do not use the huge_files option unless you plan to have single VMDK files in the terabyte range). Use a cache of great reading in advance.

    Virtual machines use VMDK files in all cases except raw iSCSI LUN that they treat native disks. VMDK is easier to manage - you can make a backup by copying the file, you can move it to a PC and load it into another flavour of VMware, etc. There could be some features iSCSI to your San as a transparent migration but nothing for me. NFS has less chatter of Protocol if latency lower times to complete an operation. NFS is good to read and write a block of data, that's all it boils down to.

    UPS is good, but it won't help if something inside the machine explodes (UPS does nothing if the PC power supply goes down). If the RAID card has an option for a battery backup module, so it can contain some writings in memory and may end up the disk i/o after replacing the power supply. 3ware also limits the types of caching available if help is not installed, and you get just the right numbers with the module.

  • Help with the session variable PHP CS5.5 - Please

    Hi all

    I am needing a little help with the help of a session variable, and I hope someone can point me in the right direction.

    I created a PHP page that uses the Dreamweaver 'User authentication' feature and the basics of this works very well, to direct a user to the correct page depending on whether they are or are not a valid user. I want to customize the page 'user valid' with people, user name entered in the authentication of the user table... a seemingly simple task using a session variable, but I just seem not to be able to make it work!

    The generated code for the AU on page 1 is the following:

    <? PHP

    Validate request to connect to this site.

    If (! isset {})

    session_start();

    }

    $loginFormAction = $_SERVER ['PHP_SELF'];

    If (isset($_GET['accesscheck'])) {}

    $_SESSION ['PrevUrl'] = $_GET ['accesscheck"];

    }

    If (isset($_POST['txtfirst_name'])) {}

    $loginUsername = $_POST ['txtfirst_name'];

    $password = $_POST ['txtsurname'];

    $MM_fldUserAuthorization = "";

    $MM_redirectLoginSuccess = "member_update.php";

    $MM_redirectLoginFailed = 'login.php ';

    $MM_redirecttoReferrer = false;

    @mysql_select_db ($database_panto, $panto);

    $LoginRS__query = sprintf ("SELECT firstname, name OF web_access WHERE firstname = %s AND family name = %s",

    GetSQLValueString ($loginUsername, "text"), GetSQLValueString ($password, "text"));

    $LoginRS = mysql_query ($LoginRS__query, $panto) or die (mysql_error ());

    $loginFoundUser = mysql_num_rows ($LoginRS);

    If {($loginFoundUser)

    $loginStrGroup = "";

    If (via PHP_VERSION > = 5.1) {session_regenerate_id (true) ;} else {session_regenerate_id() ;}

    Declare two session variables and assign them

    $_SESSION ['MM_Username'] = $loginUsername;

    $_SESSION ["MM_UserGroup"] = $loginStrGroup;

    If (isset($_SESSION['PrevUrl']) & & false) {}

    $MM_redirectLoginSuccess = $_SESSION ["PrevUrl"];

    }

    Header ("Location:".) $MM_redirectLoginSuccess);

    }

    else {}

    Header ("Location:".) $MM_redirectLoginFailed);

    }

    }

    ? >

    First of all, the text highlighted in red above seems to be setting the session variable that I need. Is this correct?

    If so, what is the code that I need to put on page 2 to use this session variable? or

    I have to do something else on the page 1 to correctly assign the session variable?

    Would be very grateful for your expertise

    Mark

    It seems that you put the columns incorrectly in the user authentication server behavior. This is the SQL query that checks the credentials of the user:

    $LoginRS__query = sprintf ("SELECT firstname, name OF web_access WHERE firstname = %s AND family name = %s",

    GetSQLValueString ($loginUsername, "text"), GetSQLValueString ($password, "text"));

    You are looking for first name and last name, while you should look for the user name and password of the user.

    $_SESSION ['MM_Username"] is a session variable that stores the login name of the user. To use it in a page, all that is needed is the page start with session_start(). You can then echo the value to display.

    If you want to display the person's true name, you must create a recordset in the second page, use of $_SESSION ['MM_Username'] to search for the first name and the patronymic. Alternatively, you can change the code like this (I copied only part of it):

    $LoginRS__query = sprintf ("SELECT firstname, surname OF web_access WHERE firstname = %s AND password is %s",

    GetSQLValueString ($loginUsername, "text"), GetSQLValueString ($password, "text"));

    $LoginRS = mysql_query ($LoginRS__query, $panto) or die (mysql_error ());

    $loginFoundUser = mysql_num_rows ($LoginRS);

    If {($loginFoundUser)

    $loginStrGroup = "";

    $row = mysql_fetch_assoc ($LoginRS);

    $_SESSION ['full_name'] = $row ["FirstName"]. ' ' . $row ['name'];

    If (via PHP_VERSION > = 5.1) {session_regenerate_id (true) ;} else {session_regenerate_id() ;}

    Declare two session variables and assign them

    $_SESSION ['MM_Username"] = $loginUsername;

    $_SESSION ["MM_UserGroup"] = $loginStrGroup;

    You can then use $_SESSION ['full_name'] in a page which begins with session_start().

  • 1st time scripter... needs help with conditional step 2

    Never write the script in any form. JavaScript can be Cuniform as far as I know.

    Really want to understand such things.

    Download all guides... they make my head ache. Would like any suggestions on a good starting book. entry level stuff.

    Should I go to learn Javascript, then it'll all be easier?

    This is the purpose of the script that I want to write.

    I have a folder folders containing main/artist name/backup / retouched / * this is the lie of the images *.

    also / intact / * this is the lie of the images *.

    I would like to write a script that sends Photoshop thanks to all subfolders looking for files.

    Open the file.

    Determine if the file is grayscale.

    If this isn't the case, close the file.

    If grayscale determine the longest side of the image and resize it to 300 DPI maintaining proportions making long side 10 inches.

    Save the file in the folder '_8x10' file name added

    Save the file in "' C: / getty /" add "_8x10" file name "

    Close the file without saving changes

    OTHER IMPORTANT FACTS

    Emphasizing the need that the originals should not be harmed in any way.

    99% of the files are .tiffs others would jpg - I can't ignore jpg files in order to remove a variable.

    I worked on it for 2 days, trying to teach me, and it is not just by clicking. I can't pick it up quickly.

    Here's what I wrote and tried to patch all of the other scripts on the web in the hope that I understood why I was picking up this code.

    I'm short on time and would like advice on this.

    Here is my code:

    GrayscaleThenLandOrPortTo10Inches300dpi.jsx

    Copyright 2012

    Written by Brian Shupe steal shamelessly on the net

    /*

    Description:

    This script finds the folder and all subfolders for images.

    Check to see if they are grayscale

    If so, he trims the long side at 10 inches at 300 dpi

    */

    turn on double click of the

    Macintosh Finder or Windows Explorer

    #target photoshop

    Make Photoshop the frontmost application

    where we double clicked on the file

    app.bringToFront ();

    ///////////////////////////

    //       SET-UP          //

    ///////////////////////////

    Close all open documents

    so that {(app.documents.length)

    app.activeDocument.close)

    }

    Create the dialog select parent folder

    var imageFolder is Folder.selectDialog ("select a folder with images to treat");.

    Set variables naming for easier coding

    var doc = app.activeDocument;

    set the units to inches

    Save current preferences

    var strtRulerUnits = app.preferences.rulerUnits;

    var strtTypeUnits = app.preferences.typeUnits;

    Adobe Photoshop CS4 use pixels and display without the value dialog boxes

    app.preferences.rulerUnits = Units.INCHES

    app.preferences.typeUnits = TypeUnits.INCHES

    app.displayDialogs = DialogModes.NO

    Recursively process all subfolders

    If (image! = null) processFolder (imageFolder);

    function processFolder (folder) {}

    List of files of the var = folder.getFiles)

    for (var i = 0; i < fileList.length; i ++) {}

    var file = list of files [i];

    }}

    Check if the active document isn't in grayscale. If this is true do nothing

    If (doc.mode! = DocumentMode.GRAYSCALE) {}

    } else

    Check if the document is higher than it is wide

    If (doc.height > doc.width)

    {

    Perform this action if the IF statement is true. Action of sizes both height to 10 inches and 300 DPI

    doAction ("Port", "Getty");

    }

    on the other

    {

    Perform this action if the IF statement is false. Action sizes two length of 10 inches and DPI to 300

    doAction ("Land", "Getty");

    }

    Create a folder to contain a file duplicate

    myFolder var = new Folder("c:/Getty/");

    myFolder. Create();

    saveFile = new file ("C: / Getty /' + imgName +"_"+"8 x 10")

    var CurrentFolder = activeDocument.path;

    var ParentFolder = decodeURI (activeDocument.path.parent);

    saveFile = new file (parentFolder + ' /' + 'CONTAINER BACKUP' + ' /' + imgName + "_" + "8 x 10")

    app.activeDocument.close (SaveOptions.DONOTSAVECHANGES)

    I think that, right now, the problem is when it gets to the point where he seeks an image open... There are jumps to zero and it.

    Anyone can see that for my clumsy attempt and course correct me?

    would be happy to discuss tutoring services.

    This is a full version that could help with all of the necessary steps...

    #target photoshop
    app.bringToFront();
    main(); //call the main function
    function main(){
    var folders =[];
    var topLevel = Folder.selectDialog("Please select top level folder");
    if(topLevel == null) return; //if cancelled quit
    folders = FindAllFolders(topLevel, folders);
    folders.unshift(topLevel);
    var outputFolder = Folder("/c/Getty/");
    //create output folder if it does not exist
    if(!outputFolder.exists) outputFolder.create();
    for(var z in folders){// loop through all subfolders
    var fileList = folders[z].getFiles("*.tif"); //get a list of all tifs in this folder
    for(var a in fileList){//loop through all files in folder
        app.open(fileList[a]);//open file
        var doc = activeDocument;
        if(doc.mode != DocumentMode.GRAYSCALE){//if not greyscale close and get next doc.
            doc.close(SaveOptions.DONOTSAVECHANGES);
            continue;
            }
        if(doc.width > doc.height){//landscape
            //resize document, only one value is required otherwise it might distort the document.
            doc.resizeImage(new UnitValue(10,'in'), undefined, 300, ResampleMethod.BICUBIC);
            }else{//portrait
                doc.resizeImage(undefined, new UnitValue(10,'in'), 300, ResampleMethod.BICUBIC);
                }//end resize
            //get the name without the .tif extension
            var Name = app.activeDocument.name.replace(/\.[^\.]+$/, '');
            //create the output file path and name
            var saveFile = File(outputFolder + "/" + Name + "_8x10.tif");
            //save and close
            SaveTIFF(saveFile);
            doc.close(SaveOptions.DONOTSAVECHANGES);
        }//end filelist
    }//end folders
    }//end main function
    function FindAllFolders( srcFolderStr, destArray) {
     var fileFolderArray = Folder( srcFolderStr ).getFiles();
     for ( var i = 0; i < fileFolderArray.length; i++ ) {
      var fileFoldObj = fileFolderArray[i];
      if ( fileFoldObj instanceof File ) {
      } else {
             destArray.push( Folder(fileFoldObj) );
      FindAllFolders( fileFoldObj.toString(), destArray );
      }
     }
     return destArray;
    }
    function SaveTIFF(saveFile){
    tiffSaveOptions = new TiffSaveOptions();
    tiffSaveOptions.embedColorProfile = true;
    tiffSaveOptions.alphaChannels = true;
    tiffSaveOptions.layers = true;
    tiffSaveOptions.imageCompression = TIFFEncoding.TIFFLZW;
    activeDocument.saveAs(saveFile, tiffSaveOptions, true, Extension.LOWERCASE);
    }
    
  • Help with effect

    Hello.

    First of all; I'm not English, so sorry for the possible errors in writing.

    Well, to understand my doubt, you must watch the following video:

    http://www.YouTube.com/watch?v=6h1QsRcxmzs & feature = youtu.be

    As you can see, this is a clip of Battlefield 3. We're making a movie, but... some soldiers have a blue icons over their heads. So, I'm trying to remove these icons... but I can't. I tried all kinds of videos on Youtube, but no one is certainly good.

    That's all... I need help with it, I don't know if it is easy to do but I'm begineer with this programs (I have AE CS4)

    Go to the window - timeline and press play to check and make sure that your animation plays correctly.  Then go to file - export - rendered Video.  Choose the settings that match the rest of your film.

  • PHP, help with the site of the legacy database

    Hope someone can help with this, although I might be a little vague. (But will be happy to post any code which may help.)

    Basically, I'm doing a few sites for a company, and everything comes together nicely any movement towards a new reseller hosting account where all can site. Basically, I'm doing some redesign and new work of database for them.

    But there is a site that I am basically just try to hover over, which already has a database. I copied the site on the new hosting, copied from the database through and created a new connection file.

    I admit that the code is all PHPO a little heavier than what I am used to working with. If you have encountered a problem trying to understand what data is not displayed due to failure of queries. I can say that the connection is working, and queries have not changed.

    In any case - the homepage is here, where you should be able to click on the images of furniture to go to the product page:

    http://www.miradatravelmedia.com/lusty/public_html/index.php

    But when you click on through the product page request fails:

    http://www.miradatravelmedia.com/lusty/public_html/products.php?category=1

    The products page is mainly PHP and looks like this:

    [PHP] <? PHP

    If (! @empty($_REQUEST["img"])) {}

    require_once("..) ("/ includes/hft_image.php");

    $img = new hft_image($_REQUEST["img"]);

    $img-> resize(200,180,"-");

    $img-> output_resized("");

    "exit";

    }

    $page = "products";

    include("..) ("/ includes/header.php ');

    include("..) ("/ includes/db_open.php");

    $sql = "SELECT 'id', 'name', 'CATEGORIES' WHERE 'id' = '. $_REQUEST ['category']. "'";

    $result = mysql_query ($sql) or die ("failed query: $sql to the line". "") __LINE__);

    $category = mysql_fetch_assoc ($result);

    ? >

    < div id = "trail" > < a href = "shop.php" > shop < /a > & gt; "" Lloyd Loom <? PHP echo $category ['name']? > < / div >

    < div class = "clear" id = "divider1" > < img src = "images/spacer.gif" alt ="<? PHP echo keyword()? ">" / > < / div >

    Lloyd Loom < h1 > <? PHP echo $category ['name']? > < / h1 >

    <? PHP

    $sql =

    "SELECT *". "."

    ""PRODUCTS.

    "WHERE"category"= '". $_REQUEST ['category']. "' " .

    ' ORDER BY 'order ';

    $result = mysql_query ($sql) or die ("failed query: $sql to the line". "") __LINE__);

    If (mysql_num_rows == 0) {}

    ? >

    < p > to come... < /p >

    <? PHP

    } else {}

    $n = 0;

    While ($row = {mysql_fetch_assoc ($result))}

    $n++;

    ? >

    < a href = "product.php? id = <?" PHP echo $row ['id']? ">" class = 'product' <? "php if ($n == mysql_num_rows ($result)) echo" id =-'last\' "?" > >

    <? PHP

    If ($file = glob ("images/products / '. '")) $row ["id"]. "_*.*")) {

    ? >

    < img src = "img.php? img = <?" PHP echo $file [0]? > & width = 200 & height = 180 "alt =" <? " PHP echo $row ['code']? ">" / >

    <? PHP

    } else {}

    ? >

    < div id = "no_image" > no image found < / div >

    <? PHP

    }

    ? >

    <? PHP echo $row ['code']? >

    < /a >

    <? PHP

    If (is_int($n / 4)) {}

    ? >

    < div class = "clear" > < img src = "images/spacer.gif" alt ="<? PHP echo keyword()? ">" / > < / div >

    <? PHP

    }

    }

    }

    ? >

    < div class = "clear" id = "divider2" > < img src = "images/spacer.gif" alt ="<? PHP echo keyword()? ">" / > < / div >

    <? PHP

    include("..) ("/ includes/footer.php ');

    ? > [PHP]

    If someone could shed some light on what goes wrong again, that would be much appreciated.

    Thank you.

    Iain71 wrote:

    OK - changed the line of the query and get the error message: no database selected...

    The answer lies in the connection of database script, db_open.php. There should be a call somewhere to mysql_select_db().

  • Need help with project

    I've been all over the web looking for help with an intervention in an e-card Bday I do and find tutorials that go above my head, or who are too simple for what I have in mind.

    I did the animations in flash before, but have no experience with interactive features (ie the buttons). I'm currently working on Flash CS4 and using Actionscropt 3.0. What I wanted to do seemed simple enough:

    Having a birthday cake with flames in movement on the candles, is reproduced at the top asking you to blow out them. You can click on these flames and when you do, they come out (with a small animation of smoke) and when the last candle you click turns off, it cuts to a page with a text saying happy birthday ect.

    I can't find any specific actionscript on the web to have these flames act as buttons that disappear when you click on, and then have the last button clicked (not necessarily always the same button) to activate the final scene.

    If someone can give an example of specific script, or direct me to a location (s) that would have the info I need, I would be very happy.

    It is unlikely that you will find a tutorial or lesson plan built around do you anticipate making... it is all pretty basic, so here are a few items to help you get started.  Beyond (or before), you should look for tutorials on basic actionscript, that whether your project or not.  You need to familiarize yourself with the use of code.

    You don't need to use the buttons, but you can.  MovieClip symbols will be probably more appropriate, so that you can have each led to being blown out when it is selected.  Assign instance names to them after place you all of them at the scene to do react to be clicked.  Assuming that you want to use the same animation for each, you could each add you assign a different name such as candle1, candle2 candle3, etc...  Instance names are assigned in the properties panel-> select the object on the stage and fill the field containing the "" in the properties panel.

    With instance names assigned, you must assign listeners events for each event handler functions and candle for each listener, although you might share the same function handler for different listeners.

    Let's say that the animation of your candle is a movieclip that is normally stopped at frame 1, using a stop() command, where an another movieclip within its Framework 1 ensures animation of the flame.  When you click on it, you want the animation of the candle to go to the frame 2 where the animation of blow.  Here's an event listener for one of the candles, and an event handler function that would work for all the candles...

    var blownOutCount:int = 0; keep track of how many get blown

    var totalCandles:int = 10;  you decide

    candle1.addEventListener (MouseEvent.CLICK, blowItOut); This is the event listener

    function blowItOut(evt:MouseEvent):void {/ / this is the handler function}

    Note: "evt.currentTarget' is the object that was clicked - the flame of the candle.

    evt.currentTarget.gotoAndStop (2);  animation of blow?

    evt.currentTarget.mouseEnabled = false; prevents all that is clicked again

    blownOutCount += 1; Add on to the County

    if(blownOutCount == totalCandles) {}

    GoTo which image has the end

    }

    }

    You are the best solution to get more help is to dig and start creating.  When you come across something, start a new assignment, and explain what you did and the code that doesn't work and that someone can probably help.

  • Actionscipt helps with a botton

    I need help with a botton

    I want the botton1_btn to scale when the mouse is on and adapt again when the mouse is released

    How can do with actionscrpt?

    mouseout.jpg

    You can search by using the Tween class.  It is the integrated approach actionscript to animate the scale of an object.  There are several third-party tweening classes as well.

    To begin, search for scope of protection with the help of "AS3 Tween tutorial" and see what you can start with.  Then, if you have any problems of implementation of something, head back and ask questions specific to your application.

    In case you would be dealing with change the properties scaleX and scaleY of objects simultaneously.  According to me, at least one third tweening classes allows you to use a line of code for interpolation of multiple properties of an object at the same time.

Maybe you are looking for

  • Satellite Pro L4500 x 12 broken screen.

    I have the above laptop model, who appeared to be when you run ok, until the day when the screen was opened to use machine, a crack appeared on the screen (at the bottom right). I sent this machine here, only for a report back that damage to the scre

  • Canvio portable HDD driver won't install

    Hello I hope someone is able to help me. I try to use a portable hard drive Toshiba (HDTB110AK3BA) on a laptop computer of other manufacturer that has a Windows 7 operating system. However, I keep just said that the device driver has not been install

  • 750-103D want: I want to install a 3rd HARD drive but the system will not start

    Desktop motherboard has 5 heads SATA (of which 2 were used for the first DvD and HARD disk in the original Setup) and the box has 3 bays for HARD drive, but there is no additional power from the PSU cable. I installed a new SSD as my main and designa

  • 550-111na Pavilion: motherboard

    Hi I have HP pavilion 111na 550 and want to update my chart, but I need a new power supply, I was just wondering if the motherboard that I would survive a new diet that is higher that the one 180w i have now? The motherboard I have is now called the

  • Note 15-r100nia k0X54EA #BH5: How can I get the driver for my laptop

    Good afternoon friends Please, how can I download drivers for my "note 15-r100nia HP.