www.webdeveloper.com

Search:

Type: Posts; User: Errant_Shadow

Page 1 of 2 1 2

Search: Search took 0.01 seconds.

  1. Replies
    8
    Views
    2,456

    This is possible, you simply need to apply the...

    This is possible, you simply need to apply the display style to those buttons as well as the div. Though buttons may use something other than 'block'. On the other hand, you may be able to simply...
  2. I understand that. What I'm saying is that...

    I understand that. What I'm saying is that there's nothing in between them, the createButton is right up against the cancelButton with not even a space between and their combined width is definitely...
  3. Unfortunately I can't link to the testing page...

    Unfortunately I can't link to the testing page due to the presence of sensitive data, and more unfortunately, this is part of a much larger set of functions.

    They do, in fact, sit on the same...
  4. Looks like, yes, that does work. That'll make my...

    Looks like, yes, that does work. That'll make my future use of expanding/collapsing tags a lot easier; thank you Fang.



    <script type="text/javascript">
    // <![CDATA[
    function...
  5. This is true. So you're saying that the...

    This is true.

    So you're saying that the <tbody> element is acting like that because we're setting it to a display type that it's not compatible with? So... if he sets the display to...
  6. Replies
    8
    Views
    2,456

    Look into css styles, but specifically display. ...

    Look into css styles, but specifically display.

    You can set a chunk of HTML to be hidden by wrapping it around, say, a DIV tag and setting the display to none:


    <p>This text should show...
  7. Turns out you can't use display: none on a ...

    Turns out you can't use display: none on a <tr> element, and I have no idea why the <tbody> element was being scrunched like it was.

    It may not be the most elegant solution, but this is what I...
  8. Also, I don't quite understand why you're turning...

    Also, I don't quite understand why you're turning on the display of a hidden form element.
  9. Well, what's happening is that your 2nd row is...

    Well, what's happening is that your 2nd row is confining itself to the width of the 1st cell. It's acting like the tbody is a cell with a colspan of 1, though I don't know why.

    Give your table a...
  10. document.createElement keeps adding everything on its own line

    I'm using the document.createElement method to add dynamic table and from elements to a page, but I'm running into a problem where I'm adding 2 objects to 1 cell. The two of them combined are not...
  11. Unfortunately, the getElementsByClassName method...

    Unfortunately, the getElementsByClassName method is not working for me; installing the function simply broke my entire script.

    On the other hand, I have in fact devised a solution for my problem;...
  12. [RESOLVED] Referencing identical id's in nested iFrames

    Here's my problem:

    I have groups of elements that are scattered around my page but have identical id's so that I can reference them all at once (as a group).

    These elements are sitting inside...
  13. Okay now. I've tracked the error to a single line...

    Okay now. I've tracked the error to a single line and determined the malfunction.

    I have a function that analyzes the selection from a select box and uses that data to set the display of the...
  14. It's most important that my code work reliably. ...

    It's most important that my code work reliably.

    Being that these are 2 threads, I should point out that these problems are coming from 2 completely different files. Yes, they belong to the same...
  15. Let me back up. I'm using PHP to parse MySQL...

    Let me back up.

    I'm using PHP to parse MySQL data into JavaScrip arrays that I use to control data as the end user fills out a form.

    I'm using the array method as opposed to the object method...
  16. Yes, I'm aware of that. What I'm saying is that...

    Yes, I'm aware of that. What I'm saying is that when I used single quotes, it was broken. Then I switched to escaped double quotes and it worked. Don't know why, don't know how. All I know is that it...
  17. Okay. By commenting out every bit of my...

    Okay. By commenting out every bit of my javascript except this array and the function that uses it, I have deduced that the problem is in fact stemming from somewhere else in the code...

    *rubs his...
  18. that was my typo as I re-wrote what I tried...

    that was my typo as I re-wrote what I tried before.

    that third method I posted is working.

    On the other hand, I gave the method 1 object another try and it seems to work as well. it just...
  19. With the addition of the missing s on options,...

    With the addition of the missing s on options, the scrips works perfectly.

    I tried defining upgradeArray as an object using both these methods:

    Method 1:


    var object =
    {
    'category1' :...
  20. omg the solution was actually something simple...

    omg the solution was actually something simple ><;;

    Moral: check syntax carefully -_-

    Thank you, Fang, I really appreciate it.

    If you've got a moment, I'm completely stumped with another...
  21. Well, I was having a similar problem in another...

    Well, I was having a similar problem in another script and I fixed it by switching the single quotes for double quotes within the index definition.

    so myArray["this"] instead of myArray['this'].
    ...
  22. I even tried defining mySelectBox with...

    I even tried defining mySelectBox with getElementById, but to the same malfunctioning ends.
  23. That's what I'm doing. I might be on to...

    That's what I'm doing.

    I might be on to something though. I'll know more in a little while and I'll post as soon as I do.
  24. [RESOLVED] Adding Options to a Select Box

    I've searched the web and every tutorial I can find says the same thing, and I am doing what they say, but it's inexplicably not working.

    Basically, I'm using a nested object to populate a select...
  25. While exploring this, I've come across yet...

    While exploring this, I've come across yet another oddity.

    Even though I'm setting variables with defaults, they are tracing as undefined unless I set them at least once with their function....
Results 1 to 25 of 34
Page 1 of 2 1 2
HTML5 Development Center



Recent Articles