www.webdeveloper.com

Search:

Type: Posts; User: Gollum

Page 1 of 19 1 2 3 4

Search: Search took 0.02 seconds.

  1. Replies
    5
    Views
    2,870

    No, I want to display the XML code, tags'n'all,...

    No, I want to display the XML code, tags'n'all, nicely indented, etc.

    When you open a plain XML file in IE, it displays the raw XML with + and - at the start of expandable and collapsable nodes....
  2. Replies
    5
    Views
    2,870

    Thanks Fang, but that's not quite what I had...

    Thanks Fang,

    but that's not quite what I had in mind. Changing < and > to &amp;lt; and &amp;gt; does show some of the tags (although tags like <b> will still be interpreted as HTML), I was hoping to use...
  3. Replies
    5
    Views
    2,870

    Displaying dynamically generated XML in IE

    Hi all,

    I am sure you are familiar with Internet Explorer's display of XML files. My problem is that I would like to use this display for some dynamically generated XML. Something along the lines...
  4. Replies
    4
    Views
    2,192

    This is becuase you need to use unique IDs for...

    This is becuase you need to use unique IDs for your DIVs. The function document.getElementById() only returns one element (usually the first one with that ID).
  5. you can use innerHTML to modify the inner HTML...

    you can use innerHTML to modify the inner HTML inside an element.

    so

    document.getElementById('image').innerHTML = "portrait";

    will replace whatever is currently in the div with the text...
  6. Replies
    3
    Views
    1,607

    In fact... if ( v == null ) // v is null (no...

    In fact...

    if ( v == null ) // v is null (no relli)

    if ( v == undefined ) // v has not been set
  7. Replies
    4
    Views
    2,398

    Well, it's either you or the poor users who watch...

    Well, it's either you or the poor users who watch their screens turn into a minagere of popup windows...
    well anyway here's how to do it...


    <script type="text/javascript">...
  8. Replies
    3
    Views
    1,791

    Your dummy example and the table generated by...

    Your dummy example and the table generated by your code look quite different. For starters, your dummy has an outer table with one row with two cells (at 50% width each). Inside each cell is a table...
  9. Replies
    5
    Views
    2,644

    The usual way to do this is to offer three...

    The usual way to do this is to offer three options to your <select> - the first or default asks the user to select an option and will have some invalid value (say 0) so you can easily see that it...
  10. Thread: Drop down menu

    by Gollum
    Replies
    2
    Views
    1,899

    It might be worth checking that you are changing...

    It might be worth checking that you are changing the "src" property on the images instead of the "scr" property as you are indicating.
  11. Replies
    3
    Views
    1,846

    yes there is...

    yes there is...

    <img src="mypic.gif" onclick="alert('This is just an alert box');">
  12. Replies
    2
    Views
    2,256

    Something like this should do... ...

    Something like this should do...


    <html>
    <head>
    <script type="text/javascript">
    function setRadio(oRadio)
    {
    for ( var i = 0; i < document.f.card.length; i++ )
    {
  13. Replies
    3
    Views
    5,848

    It's not chm, but this is good......

    It's not chm, but this is good...
    http://devedge.netscape.com/library/manuals/2000/javascript/1.5/reference/
  14. opinions are optional ;) but here's how it's...

    opinions are optional ;) but here's how it's done...


    <html>
    <head>
    <script type="text/javascript">
    var x = 0;
    var y = 0;
    var mx = 0;
    var my = 0;
  15. Replies
    1
    Views
    1,905

    to remove: var pElt =...

    to remove:
    var pElt = document.getElementById('someID');
    pElt.parentNode.removeChild(pElt);

    to add...
    var pParent = document.getElementById('someOtherID');
    var pDiv =...
  16. Replies
    1
    Views
    3,111

    Bear in mind that there are more browsers than IE...

    Bear in mind that there are more browsers than IE and Netscape, but this will do what you ask...


    if ( document.all )
    window.resizeTo(300,400); // IE size
    else
    window.resizeTo(400,300);...
  17. Replies
    1
    Views
    3,547

    Well, the quick way (using IE) is to ctrl-F5 to...

    Well, the quick way (using IE) is to ctrl-F5 to force-refresh everything in the page.

    To make it automatic, you will need to check your server settings to add the following http headers to your...
  18. Replies
    2
    Views
    1,966

    You're probably safe for now, but how long do you...

    You're probably safe for now, but how long do you think before spambots start running javascript before they scan the pages?
  19. From what I can gather about browser behaviour,...

    From what I can gather about browser behaviour, only one HTMLElement can have mouseover at any one time. And any element that had mouseover but now doesn't aught to get a mouseout before anyone else...
  20. Replies
    9
    Views
    2,667

    try this... It has been ...

    try this...


    <html><body>
    It has been&amp;nbsp;
    <script type="text/javascript">
    var dt = new Date(2003,0,5); // 5th Jan 2003
    var now = new Date();
    var nDays = Math.floor((now.getTime() -...
  21. Replies
    2
    Views
    2,032

    I could suggest a few mods... function...

    I could suggest a few mods...


    function badChoice(choice, evt)
    {
    choice.className = "badValue";
    evt.returnValue = false;
    return false;
    }
    function goodChoice(choice, evt)
  22. Replies
    3
    Views
    2,707

    No Probs!

    No Probs!
  23. Replies
    3
    Views
    2,707

    I take it they seeing the URL in the titlebar of...

    I take it they seeing the URL in the titlebar of the window.
    If so, what you need to do is add a <title> tag to the <head> section in the document of your popup window. E.g.


    var...
  24. Thread: bored?

    by Gollum
    Replies
    1
    Views
    1,537

    You have a bunch of lines like the following... ...

    You have a bunch of lines like the following...


    document.all.martialartists.style.visibility="visible";

    but in the HTML, it is <div id="MartialArtists" ...>
    If you make the cases the same,...
  25. Replies
    1
    Views
    1,775

    You probably want to use the "checked" property...

    You probably want to use the "checked" property of the checkboxes rather than the "value" one
Results 1 to 25 of 455
Page 1 of 19 1 2 3 4
HTML5 Development Center



Recent Articles