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!

Search results for query: *

  • Users: aforstie
  • Content: Threads
  • Order by date
  1. aforstie

    onclick event handler cancel onmouseover evenhandler?

    Anyone know if an onclick event handler can cancel an onmouseover event handler and bring the user to the href? < a href="http://tek-tips.com" onmouseover="dosomething" onclick="cancel dosomething and bring the user to tek-tips">link</a> What I want is an informational ajax window to...
  2. aforstie

    Use perl to write XML from a flat file

    I am wondering if perl can be used to write an xml file from a pipe-delimited file. I want to take something in a file that might look like: ID|Name|City|State|Country And try to write XML that might look like: <item-list> <item> <location city="City" state="State" country="Country"/>...
  3. aforstie

    Write XML from delimited file

    I have a multi-line pipe delimited file that I want to use to write an XML document. I was hoping to use a shell script to do this. Does anyone have any examples or advice they are willing to share. Here is what the pipe delimited file would look like: Name1|PHX|AZ| . . . Name5|MSP|MN Here is...
  4. aforstie

    Safari Question

    Please see the javascript below. In Safari if I tab into the field that calls this function the browser shuts down. If I click in the field everything works but the focus is not set. Any ideas how I may fix this? Or as a worst case at lease put in a fix to prevent the (Safari) browser from...
  5. aforstie

    Safari and removeChild

    I call the following function and it appears to remove it from the DOM in Safari. The field it is removing is a password field that has a value of "Password". I add a new node to the DOM that has no value, but when I input a value Safari sends in the the first value "Password" and the value I...
  6. aforstie

    setAttribute vs getElementById

    When I am using javascript to add a node to the DOM, I am going to need to set the onFocus attribute that will call another javascript function. As you can see below most of the attributes are set using setAttribute, but there are a couple where I needed to use getElementById to work in IE. As...
  7. aforstie

    onclick event to submit a form

    I have case where I want to submit a form from a link. I thought I could use the onclick event as seen below to submit the form since it will be within the form. <a href="www.google.com" onclick="event.cancelBubble=true;this.form.submit();"> Using FireFox JavaScript console I get an error...
  8. aforstie

    Safari browser and onClick

    Below is a set of code that works well except for Safari and IE on the Mac. First you can see that I have an input element where the type is text and onFocus it call buildElement. <input name="password" id="password" value="Password" type="text" onFocus="buildElement()" class="regtextbox"...
  9. aforstie

    this.href

    I am calling an external js function that I was hoping could set this.href. When I call the function I pass this.href - append_url(this.href). Within the function I define some variables from the DOM and I am hoping to use them for this .href. <a href="link.html"...

Part and Inventory Search

Back
Top