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 Chriss Miller 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: WebRic
  • Content: Threads
  • Order by date
  1. WebRic

    returning javascript from an ajax call

    Hi, I've a page the use AJAX to call up some HTML. There is a fair amount of HTML so I break into 50 character per line using server side code and the present it back. I escape the speech marks using \. However, I have some inline javascript and some functions which I think is messing up the...
  2. WebRic

    drop down menus

    Hi, I'm trying to sort out drop down menu of nested lists. I'd previously been using the suckerfish script which scans through the code adding onmouseover & out event to the <li> elements. Problem is I would really like it if this was only activated after an onclick event. i.e. the dropdown...
  3. WebRic

    backspace actions

    Hi, I've a list of full names in a text field. I'd like it so that if a name was partially deleted it would be fully removed. For example: joe blogs, john smith, darren peterson,| if the pipe represented my cursor and I pushed the backspace button once I would be left with joe blogs, john...
  4. WebRic

    Setting Delay

    Hi all, I have some menu script that is misfiring. For some reason my onmouseout event seems to fire occasionaly when I roll onto the next item in my list. I was thinking an easy way round this would be to put a delay on the onmouseout event: sli[x].onmouseout = function() { this.className =...
  5. WebRic

    Trusted Site

    Hi all, Is it possible to detect if your site has been added to the clients trusted site list? Thanks
  6. WebRic

    disable option

    Hi all, Not sure if this needs to be done via javascript or whether it can be done in HTML, but I'd like to be able to disable individual options within a select field. i.e. <select name="select" multiple> <option value="1">opt 1</option> <option value="2" disabled>opt 2</option> </select>...
  7. WebRic

    javascript from Ajax

    Hi, Is this possible? I use Ajax call to a page. Within the called page I create some html which also contains a javascript element with a standard function in. I write this all into a variable escaping quotes and loop over it so there is about 50 characters per line. var myNewContent = " "...
  8. WebRic

    variable in a variable

    Hi, I'm sruggling to figure out how to write this bit of code (below). Depending on which radio button is click I want a number to be passed to here: addressr.value <script language="JavaScript" type="text/JavaScript"> function updateaddress(addressr) { var formObj =...
  9. WebRic

    show/hide fieldset

    Hi all, I have a section of a form that looks like this: <fieldset class="hideme" onclick="endhide(this)"> <legend>Properties is less than 5 years old</legend> <em>If the property is less than 5 years old, please enter the following</em> <div> <label class="left-label" for="developer">Name...
  10. WebRic

    doble onsubmit methods

    Is it possible to run two consecutive onsubmit methods on a form? Would sopmething like this be OK? <form name="register" action="register.cfm" method="post" onsubmit="return something(this);return othersomething(this)"> Thanks, R
  11. WebRic

    Onclick move to anchor

    Hi all, Is there an onclick event I can use to move to an anchor? I have a form that loads some innerhtml content to a div tag via ajax. I'd like to jump down to this point without using the href="#whatever", is this possible. Regards, Richard
  12. WebRic

    Alternative body onload

    Hi all, I have a script that is within the body of the page that I would like to run automatically. I don't want to have to add the onload="whatever()" into the body tag.... is there a way around this? Regards, R
  13. WebRic

    populating a select field

    Hi all, What the best way to completely re-populate a select field? I've got three select fields and each one will change the others. This is going to happen via ajax so I can use server side code to create any array or what not. I guess I need to clear the selecct field then re-add the...
  14. WebRic

    change body tag

    Hi all, is there a way to re-write the body tag? The tag currently looks like this: <body id="someidgoeshere"> or just <body> I have a site wide external jscript file that I'd like to use to change the body tag to <body id="someidgoeshere" ondragstart="return false"...
  15. WebRic

    counting form length but not spaces

    Hi, I've a character counter set up in my form. It's to do with engravings and I'm therefore not interested in counting the space marks. Once counted I then multiply by a number currently 0.65. At the moment I have: <textarea name="engraving25" id="engraving25" class="inputbox-nowidth"...
  16. WebRic

    onFocus &amp; DOM

    Hi all, Anyone know of a good tutorial where they give instructions on how to create an onfocus event on form fields using DOM? Thanks, Richard
  17. WebRic

    GUI - Interface

    Hi All, I've a quick couple of questions regarding opening a full screen window. 1) I've heard that Win XP with service pack 2 prevents this. Is that right? 2) Is it possible to have true full screen by moving the close/minimise bar off the screen? I'm doing this for a client GUI - is there a...
  18. WebRic

    occassionally occuring problem

    Hi All, I have a problem regarding getting the files size of an image. Sometimes this script detects the image size other times it doesn't. I can select the same image without reloading the page and occasionaly it won't give the file size. It's really trciky to figure out. Any advice on how...
  19. WebRic

    Action script - infinite loop

    Hi All, I've been trying to use actionscript to get an xml document. Once done I wanted it to load one element at a time with a fade in / fade out. I've limited knowledge with this but have managed to get it partially working. There are two dynamic text fields myphoto & mydescrip The document...
  20. WebRic

    mouse click anywhere

    Hi All, Is there a way of detecting a mouse click anywhere in the screen? I'm want a layer to appear which allows the user to click in and if they click off the layer it closes. What's the best way to go about this? Richard

Part and Inventory Search

Back
Top