User Profile

Collapse

Profile Sidebar

Collapse
bushnellweb
bushnellweb
Last Activity: Dec 4 '10, 01:36 PM
Joined: Jan 28 '10
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • How to check the data on the next row while looping through a query?

    I am looping through a query and I am wondering if there is a way to access data on the next row of the query I am looping through.

    Heres some code:
    Code:
    <cfquery datasource="#ds#" name="myQRY">
       SELECT pic_src FROM pics
       WHERE pic_id = 2
    </cfquery>
    
    <cfoutput query="myQRY">
       <cfif myQRY.row[thisRow + 1].pic_src IS "">
    ...
    See more | Go to post

  • user Cmaza is correct, assuming that the id attribute of your form is exactly "myform"
    See more | Go to post

    Leave a comment:


  • bushnellweb
    started a topic How can I turn selected text into a URL?

    How can I turn selected text into a URL?

    I am using the contentEditable and designMode attributes to let a user update a blog. Is there a way to detect a start index and end index of text that has been selected? or anything similar?
    See more | Go to post

  • bushnellweb
    started a topic Has anything deprecated from MX 7 to 8?

    Has anything deprecated from MX 7 to 8?

    I saw on the livedocs site that there were some tags and attributes and attribute values that were deprecated as of MX7 but it did not list any that had dropped as of 8, are there any that I should be concerned about when upgrading from MX7 to 8?
    See more | Go to post

  • bushnellweb
    replied to How to send mail using Coldfusion
    you know what would be helpful, some code that tests it for failure. Is there anything out there that would do that?
    See more | Go to post

    Leave a comment:


  • bushnellweb
    replied to Multiple image upload form
    I usually just put all 10 file fields on the page and then if they want to only use 1 then my server-side code checks to see if that field's value is an empty string.

    Client Side:
    Code:
    <input type="file" id="fileImage1" name="fileImage1" class="small_text" size="60" /><br />
    						<input type="file" id="fileImage2" name="fileImage2"
    ...
    See more | Go to post

    Leave a comment:


  • Is there a nameconflict for cffile action=move?

    I am using ColdFusion 8 and I am moving files with
    Code:
    <cffile action="move">
    it seems that if I am moving a file into a folder where the file is named the same thing, it overwrites.

    I know that with
    Code:
    <cffile action="upload">
    there is a nameconflict attribute. Can I use that on action="move" or will I have to manually check to see if the same file name exists BEFORE...
    See more | Go to post

  • you are a king among men, CAST(@fld_def_i d AS VARCHAR(20)) and using '+' did the trick. Thank you
    See more | Go to post

    Leave a comment:


  • bushnellweb
    started a topic how do i concat a string with a number?

    how do i concat a string with a number?

    I need to join:
    'SELECT enum_value FROM user_fld_enum WHERE fld_def_id = '
    with: @fld_def_id
    and: 'ORDER BY seq_num ASC'

    this is the error:
    Syntax error converting the varchar value 'SELECT enum_value FROM user_fld_enum WHERE fld_def_id = ' to a column of data type int.

    This is what I am looking at:
    Code:
    SET @value_source = 'SELECT enum_value FROM user_fld_enum WHERE fld_def_id = ' &
    ...
    See more | Go to post

  • obv there is no trinary data type, I've been explaining that was what i was trying to do is create a user defined data type. I need an example of someone's code that explicitly defined a new data type.
    See more | Go to post

    Leave a comment:


  • Any Insight on CREATE TYPE in management studio?

    Hello, I am trying to create a data type trinary. acceptable values are -1, 0, 1. I found the CREATE TYPE code in the help menu, but cannot find a good example to help me. I am stuck at contraints. I know I need a CHECK constraint but the help makes it seem like I need to make a column contraint and I'm not sure how I implement that into the CREATE TYPE script!? any help would be greatly appreciated.
    See more | Go to post

  • If your concentration is web-based than PHP or ASP(VBscript) would be good. A lot of tech companies are microsoft camps and ASP(VBscript is good to know) SQL, javascript for AJAX, etc. You sound like you're on the right track if you STARTED with JAVA, I started with BASIC and I graduated 3-4 years ago, Im glad I learned what I did on my own or I woulda been screwed. Keep chugging along.
    See more | Go to post

    Leave a comment:


  • bushnellweb
    replied to Overflow cell in a table
    Code:
    |-------------|--------|
    |_____desc____|        |
    |__address____|        |
    |____phone____|  img   |
    |_____fax_____|        |
    |___spacer____|________|
    is this what you table looks like? if so, then you can make it so that the spacer cell resizes with the img cell and the other cells stay in tact. if this is NOT what it looks like then post some code so we can help better
    See more | Go to post

    Leave a comment:


  • bushnellweb
    replied to Overflow cell in a table
    @johny10151981 - i realize this will be deleted for not actually applying to the question BUT, i think its hilar that you are using hitler.jpg as your image
    See more | Go to post

    Leave a comment:


  • bushnellweb
    replied to Big gap in div
    make <div id="middle">: <div id="middle" align="center">
    then under that div make another div <div align="left">
    and i couldn't sift through all the code to find where to put the </div>(end tag) but make sure you place it correctly. I also noticed towards the bottom of the page you might be missing a quote or a carrot so just check that out.
    See more | Go to post

    Leave a comment:


  • how do i make text wrap in a text box, not textarea

    Is it just a simple css or is it more complicated with javascript, etc. I want to limit a description input to 500 characters. <input type="text"> makes it easy with maxlength="500" but the text doesn't wrap. I'd rather write a function for limiting a textarea to 500 chars than a function for adding line breaks in a text box. SO, is there an EASY attribute to wrap text inside a text box?
    See more | Go to post

  • coldfusion is another server side language that is very easy to learn. If your server/host can/does support coldfusion you'd probably have an easier time coding that yourself. it looks like HTML so it makes learning easier. feel free to e-mail me @ [edit] and I can help you out
    See more | Go to post
    Last edited by gits; Aug 8 '10, 11:50 AM. Reason: email address removed from thread

    Leave a comment:


  • How do I get/read/manipulate an elements position?

    OK, heres the deal...I know how to document.getEle mentById('id'). style.position and .top and .left. My question refers to the elements position on the page how the client sees it. for example: I need to find the .top of an element that has been placed inline and has no set .top. Is there like an absolute x or y position I can look at?
    See more | Go to post

  • thanks, haha I've used it before. I don't know what I was/wasn't thinking...
    See more | Go to post

    Leave a comment:


  • bushnellweb
    started a topic How do I display dynamically named fields?

    How do I display dynamically named fields?

    In my form I named the check boxes "chk_img_" & #i#.
    So I get how to use it in IsDefined, but how do I get it to display the value of that FORM.check_img_ 1 without hard coding the number 1? Sometimes it might be like up to 1,000 and I'm not going to hard code a 1000000000 options. This is probabyl a very easy fix, but i've been up all night working on this code and now I'm dead in the water, with no brain power. Thanks in advance...
    See more | Go to post
No activity results to display
Show More
Working...