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. IndyFusion

    parent.location.href problem

    Okay, I feel like a total idiot now. I am opening a modal dialog window and in the dialog I'm trying to change the location.href of the parent window. When I try parent.location.href = 'blah.htm'; it opens a new window with blah.htm inside. Why is it opening in a new window? Thanks, Jason
  2. IndyFusion

    Regular Expressions

    Jeff, The HTML at the top of the thread is in the variable content. Yes, I am trying to remove the source code DFN and everything in between. Sorry I didn't specify this before. Thanks, Jason
  3. IndyFusion

    Regular Expressions

    I have the following HTML: <P>test</P> <P>test</P><DFN> <P>test</P></DFN> I am using the code: var re = &quot;<dfn>(?:.+)<\/dfn>&quot;; var oReg = new RegExp(re,&quot;igm&quot;); var result = content.replace(oReg, ''); result always comes back with null. I am trying to remove the DFN and...
  4. IndyFusion

    parentElement problem

    Actually, I found an easy was to do this on Googles Groups. Loop through the parents until I find an OL or BODY element. I have tested the code below and it works very well. var objDOM = element.editor.DOM; var _currEl = objDOM.selection.createRange(); var objParentElement =...
  5. IndyFusion

    Textarea Cursor Possition

    I pulled this from a Google group thread. Looks like it should work: Here is a more complete example wich allows ie4/5 to insert previously selected text into a textarea by clicking at the desired insertion point. Look at the end of the page: <HTML> <HEAD> <TITLE> </TITLE> <STYLE> </STYLE>...
  6. IndyFusion

    height of cell

    Use the clientHeight method: <table> <tr> <td id=&quot;master&quot;> <img src=&quot;blind.gif&quot; width=&quot;1&quot; height=&quot;10&quot; alt=&quot;&quot; border=&quot;0&quot;>blah blah blah blah </table> <script language=&quot;JavaScript&quot;> function retHeight(id) {...
  7. IndyFusion

    parentElement problem

    If I have code like this: <OL> <LI> <FONT face=Arial color=black size=2>asdf</FONT> </LI> </OL> and I'm using the javascript: var _currEl = objDOM.selection.createRange(); var myobj = _currEl.parentElement(); var myobj2 = myobj.parentElement(); alert(myobj2.tagName); Why do I not...

Part and Inventory Search

Back
Top