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 SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  1. grtammi

    Checking Strings using XPath

    Heya, It's just my opinion, but I would think your application should check for that type of constraint on the data before inserting into your dataset. That being said, I don't believe that pure XML offers regular expressions ... you'd have to use something like XQuery to run a regex pattern...
  2. grtammi

    Explain this JS syntax

    I don't really see any syntax errors; try placing a semi-colon after the closing brace of the public object declaration ... code should work though. Greg
  3. grtammi

    User Defined Variable used within IN of WHERE clause?

    Depending on your version of MySQL, you can use FIND_IN_SET in your WHERE clause after version 5.0: SET @list = "2" ; PREPARE my_stmt FROM "SELECT * FROM `<table>` WHERE FIND_IN_SET(`my_id`, ?) != 0" ; EXECUTE my_stmt USING @list; returns 1 result, whereas : SET @list = "2,3,4" ; PREPARE...
  4. grtammi

    MySQL - How to stop it and uninstall.

    See if this works for you: http://tomkeur.net/39/how-to-remove-mysql-completely-mac-os-x-leopard.html Greg
  5. grtammi

    How to hide TABS in IE

    Create a print stylesheet that is separate from your main design, and put all formatting for printing in there. Link it using <link rel="stylesheet" media="print" href="myprintsheet.css"/> Greg
  6. grtammi

    Xquery, XPath help

    I think you need 2 steps here - first step to the find the Accession-ID node that has the attribute matching 'Chart-ID'. The next step is to take found node and extract the ID attribute from it. Here's a PHP example using simplexml: <?php $xml = '<?xml version="1.0" encoding="UTF-8"?>...
  7. grtammi

    How to hide TABS in IE

    Try that in a browser other than IE 7 or Firefox; I "think" it's Firefox-specific but don't quote me on that. ;) I would recommend applying a class of "noprint" (or something similar) to the stuff you don't want to print, and change your CSS to read: .noprint { display:none; } Without seeing...
  8. grtammi

    positioning of divs

    If you have control over the source, put the coyote div inside the flag div like such: <div id="flag"> <img src="images/about_flag.gif" alt="flag" /> <div id="coyote"></div><!--end coyote--> </div><!--end flag--> * this is along the lines of what audiopro mentioned above, btw, except...
  9. grtammi

    ajax for dynamic options does not work after server switch

    If it just stopped working, and no error messages are present, I would suggest that a) required files are missing in the production environment, b) your database connection script may be the fault, or c) something else. :P HTH Greg
  10. grtammi

    using script i found, but it's using cache instead of new info...

    To answer an earlier question by spewn, the reason that you didn't pull from the cache by placing a=1 in the send method of the http object is that you effectively changed the URL that the ajax object was going after; different URL, hence not a cached page. The following two statements are...
  11. grtammi

    word landscape

    Did you try the <word object>.PageSetup.Orientation = Landscape? I think landscape is the correct constant to use; you may have to view documentation to find the correct constant value is this is not correct. Greg
  12. grtammi

    Using XAJAX w/ PHP and bombing out w/ XML error - Please help!

    Weird ... I don't see any issues with the XML there. I also validated the XML against the W3C validator, no issues there. You "could" try removing the space between "utf-8" and the ?> ... doubt that would be the issue. Also make sure there's no extraneous whitespace in the file. Greg
  13. grtammi

    compare values of checkboxes

    Two options: The first is what you suggested: delete the entries and then re-add them as appropriate (this is my "personal" preferred method). The other option you have, and it's a little more code intensive, is to create a duplicate set of fields and name them as old_checkbox_1_value...
  14. grtammi

    Help controlling multiple dropdowns

    Oops! You can tell I'm a PHP coder; change <%=thisLoopID?> to <%=thisLoopID%> ... damned closing tags. :P Greg
  15. grtammi

    Help controlling multiple dropdowns

    This line here: <input type="radio" name="jParent" value="<%= thisLoopID %>" onClick="getAjax('/ajax/dropdowns_loc.asp?parent='+this.value)" /> <%= infoRs("pName") %> will render as: <input type="radio" name="jParent" value="1"...
  16. grtammi

    Loading an external XML file into HTML DIV

    I love JQuery, so this is the type of solution I'm going to give you. :) On a website I recently did, I enabled an "edit-in-place" JQuery plugin, which sounds like something you might want to do. Here's the link to the plugin I used: http://davehauenstein.com/code/jquery-edit-in-place/ And...
  17. grtammi

    Jquery session timer

    LOL ... that's exactly what I was going to suggest ... I only was notified once on this thread instead of twice though ... hrmm ... Oh well, glad it works for you. Greg
  18. grtammi

    Absolute paths fight with URL subdirectory

    For local testing, virtual directories are the way to go. Get a local webserver installed and running (I'm an Apache fan), and check the documentation for the webserver you chose for configuring virtual directories. Once your virtual directory is setup, http://<virtual_directory_name> loads...
  19. grtammi

    Jquery session timer

    I think what you're going to need to do is possibly use some sort of Ajaxy-type call in order to refresh / logout the user .... or attach a querystring variable to the window.location call. In these javascript functions, the php session_destroy(); statement gets interpreted AND completed before...
  20. grtammi

    Why Access displays a carriage return as a box

    If you are seeing boxes instead of characters, chances are that this is a non-printable character in the Access world. What I normally do in this case is one of two things: a) Make sure the charset is the same between the Oracle and Access worlds. b) parse the field, and check the ASCII...

Part and Inventory Search

Back
Top