Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Recent content by stevelionbird

  1. stevelionbird

    how to 'toggle' a bit field (0 or 1)

    Hi everyone, I'm looking for a way with one statement to change the value of a tinyint field (named 'is_archive') in a table to either: zero if its current value is one OR one if its current value is zero Is there a way to do this without having to first query the table to get the current...
  2. stevelionbird

    how to access a popup's iframe parent

    I've figured it out... opener is not defined for modalDialog, instead, I found what I needed nested in the window.dialogArguments object. Thanks for your help Dan as what you posted will work in every other situation except for this special case with IE where showModalDialog() is used in place...
  3. stevelionbird

    how to access a popup's iframe parent

    Ok I think I've identified the problem. The HTML editor I'm using (FCKeditor) uses showModalDialog() to open the popup if it detects IE and after trying different variations of the window.opener syntax discussed above, it (opener) seems to be undefined every time in IE. So, does anyone know if...
  4. stevelionbird

    how to access a popup's iframe parent

    Thanks Dan, I was able to get the URL of the page I needed using the following:alert(parent.opener.parent.location); However this worked in Firefox but not IE.. Is there something syntactically wrong/non-standard with the above code, or at least another way to write it so that IE would...
  5. stevelionbird

    how to access a popup's iframe parent

    I'm trying to modify a js based html editor and what I need to do seems quite simple but I'm having trouble. The editor loads in an iFrame, and the iFrame launches a popup window. Within the popup window, I need to determine the URL of the page that contains the iFrame. I've tried...
  6. stevelionbird

    cfdocument PDF displays links improperly

    Thanks Lyndon .. Yeah I'm gonna have to make the move to 8 - it's time! -Steve
  7. stevelionbird

    cfdocument PDF displays links improperly

    Interesting .. I ran another test on a machine running CF 8 dev edition (Windows OS) and it displays fine. My prod server is running mx 7 (Linux) so it looks like rather then an Acrobat problem, it is a CF problem. Lyndon, what kind of setup did you run this on? I'm going to run a few more...
  8. stevelionbird

    Javascript inside a cfc

    Scope your variables in var structs. This will make it easy to dump / debug exactly what you need. For instance: <cffunction name=".....> <cfargument name=".......> <cfset var temp = structNew()> <cfset var results = structNew()> <cftry> <!--- do stuff --->...
  9. stevelionbird

    cfdocument PDF displays links improperly

    ok this one has been burning my brain. If I have html that contains links, and try to output it as a PDF using cfdocument, a huge space and elongated underline beneath the link is always displayed and I cannot figure out how to fix this. To my surprise, I haven't found anyone else complaining...
  10. stevelionbird

    application vs request scope in CFC

    Here is a quick workaround, but I'm still not sure if there is a better way since this loop, albeit a small one, runs on each request: <cfif not isDefined("request.app")> <cfset request.app = structNew()> </cfif> <cflock type="readonly" scope="Application" timeout="10"> <cfloop...
  11. stevelionbird

    application vs request scope in CFC

    Ok, I've having trouble deciding what would be the most efficient way to have variables accessible everywhere in an application. I'm using an Application.cfc with cfmx 7, so my original idea (to make a deep copy of an application-scoped struct with duplicate() on each request to a...
  12. stevelionbird

    2 CFCs, 2 functions with same name a problem?

    The extra 'which FOO' parameter would have to suffice if I need a workaround. What I meant by the super keyword not applying was that I can't somehow reference component1.FOO() like this: objComponent2 = createObject("component", "component2.path"); objComponent2.super.FOO(params); to use...
  13. stevelionbird

    2 CFCs, 2 functions with same name a problem?

    Thanks, I seriously don't think overriding is what this guy had in mind .. just an oversight. I was hoping there would be some way to refer (from the code where component 2 is instantiated) to component 1's FOO function, but as far as I know you can't. (super keyword doesn't apply there)...
  14. stevelionbird

    2 CFCs, 2 functions with same name a problem?

    Hi, I was going over someone else's code and was wondering if this may pose a problem. (I'm not sure how CF deals with this internally) Component 1 has a function named FOO. Component 2 has a function named FOO. Component 2 extends Component 1. Will calls to that function simply take...
  15. stevelionbird

    Strange query loop behavior

    To avoid the scope issues that Tony mentioned, and to avoid temp variables (I just have a thing for them /OCD) I use the following .. works the same as Tony's but with my OCD added. <cfoutput> <cfloop from="1" to="#GetData.recordCount#" index="i"> <br><br>test0...

Part and Inventory Search

Back
Top