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 TouchToneTommy 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. XMLidiot

    Accessing fields in child window

    It may be because you didn't use document before you reference the field in the parent window: new_window.document.frm.UserID.value = board.UserID.value; ...try changing it to this: new_window.document.frm.UserID.value = document.board.UserID.value; ---------- function new...
  2. XMLidiot

    referrer script needed desparately

    Use this as the base for your condition: if (document.referrer.indexOf("http://www.blah.com") != -1) { // code if person did NOT come from your domain } else { // code if person came from your domain } ---------- function new Programmer(name,age) { this.name = name; this.age = age...
  3. XMLidiot

    Show, Hide, and Exit?

    Hey all, I was wondering, what is the syntax for showing a new form and hiding the form the user clicked from? Also, what code would I use to make a command button, when clicked, exit the program? All responses will be greatly appreciated. ---------- function new Programmer(name,age) {...
  4. XMLidiot

    how can i edit the window.location.search value in netscape?

    Whoops, I messed up. I think the script should look like this: [code] if(window.location.search == "mypage.html?reload=true") { window.location = "mypage.html?reload=false&random=" + Math.random()"; } ---------- function new Programmer(name,age) { this.name = name...
  5. XMLidiot

    how can i edit the window.location.search value in netscape?

    You can't set a value with window.location.search. I think your script should look like this: if(window.location.search == "mypage.html?reload=true") { window.location = "?reload=false&random=" +Math.random()"; } ---------- function new Programmer(name,age) {...
  6. XMLidiot

    read text files

    It is possible, but not in a client-side language (i.e. JavaScript). You need to use a server-side language for that, such as Perl of ASP.
  7. XMLidiot

    adjacentHTML property

    Although it's syntax is a bit different. It looks like this: document.getElementById("mylayer").adjacentHTML("text/html goes here");
  8. XMLidiot

    adjacentHTML property

    The adjacentHTML property acts in the same way as innerHTML. I'm not entirely sure, but I think it only works in Netscape 6.
  9. XMLidiot

    Alert only on entering site

    Sure. Just use this code: <script language=&quot;javascript&quot;> <!-- Hide script from old browsers if (document.referrer.indexOf(&quot;http://www.mydomain.com&quot;) != -1) { confirm(&quot;confirm this?&quot;); } // End hiding script --> </script> Hope that helps! Happy coding! :)
  10. XMLidiot

    How do I print all frames?

    Use this function for printing all frames: function printit() { top.window.focus(); top.window.print(); }
  11. XMLidiot

    Client IP Grabbing

    Hey SpiderWoman, I guess since you can use 'REMOTE_ADDR' you could also do 'REMOTE_HOST': var host = '<!--#echo var=&quot;REMOTE_HOST&quot;-->' function hostval() { document.form.hostvalue.value=host }
  12. XMLidiot

    Submit and Reset events failing under graphical replacment buttons

    Ignore the tags in the revision of the code. I didn't realize you couldn't put &quot;TGML&quot; within the code tags.
  13. XMLidiot

    Submit and Reset events failing under graphical replacment buttons

    I think your error is here: <a href=&quot;#&quot; onClick=&quot;return ValLogin(document.LoginF.UserID.value,document.LoginF.Password.value)&quot; onmouseover=&quot;changeImage('submit','but5h')&quot; onmouseout=&quot;changeImage('submit','but5')&quot;> You didn't put single quotes around...
  14. XMLidiot

    JavaScript Save-As: Is there a way

    You can save a file like this: <script language=&quot;javascript&quot;> <!-- Hide script from old browsers function save() { document.execCommand(&quot;SaveAs&quot;) } // End hiding script --> </script> Note that this will only work in IE.
  15. XMLidiot

    Using &lt;cfoutput&gt; in SQL queries?

    When you are using variables from a form in an SQL statement, such as the &quot;INSERT INTO&quot; statement, do you need to put <cfoutput> tags around the data?
  16. XMLidiot

    ODBC Error Code = 37000 (Syntax error or access violation)?

    Thanks everyone from your responses. It works now! :-)
  17. XMLidiot

    ODBC Error Code = 37000 (Syntax error or access violation)?

    I am a newbie to CF and am just trying out my skills. I wanted to do a simple database query by an SQL statement. My code looks like this: <cfquery name=addtbl datasource=allaire_beginner> CREATE TABLE members(fname,lname,age integer) </cfquery> Table created successfully! --------------...
  18. XMLidiot

    Problem with submit() and onSubmit...

    Also, in the code &quot;<A href=&quot;javascript:document.form1.submit();&quot;>post message<br></A>&quot; there shouldn't be a &quot;;&quot; after the link href. If you want to use an image to submit then do this: <input type=&quot;image&quot; src=&quot;image-location.gif&quot;>
  19. XMLidiot

    Implementing DTD?

    Where do I implement DTD? Does it go in the XML file, XSL file, or where? Thank you for all your answers in advance.
  20. XMLidiot

    Using linking tags?

    How would I make text for the link?

Part and Inventory Search

Back
Top