Jump to content

Wylbur

Members
  • Content Count

    25
  • Joined

  • Last visited

Community Reputation

0 Neutral

About Wylbur

  • Rank
    Newbie
  1. Wylbur

    Angular2?

    Hi, I suppose that you know that Angular version 2 is out? Is a new section being created for it? If so, when would it be ready to go online? Have you looked at "Aurelia"? http://aurelia.io/ Are there any plans to add a section for that? Inquiring minds want to know.
  2. Hi Dsones OK - now I see. From what I can determine, it looks as if height and min-height will override each other, using whichever is the largest. In furtherance of my experiment, I switched to span, with display : block. It doesn't look like there is any difference from div. Please correct me if I am wrong. I've also switched to 'em' for size specifications. From all of this, I don't see the point of the example that I referenced within my original post, and what it is intended to demonstrate: http://www.w3schools..._dim_max-height This is the state of my
  3. Hi Dsones, THANKS for the response! I took out the inner div. The outer (only) div still does not resize vertically when I shorten the window/browser. The only thing that will increase the height of the div is to increase the value of min-height, as changing max-height doesn't seem to have any effect. Am I correct in stating that max-height doesn't do anything to div? What effect (purpose) does max-height have?
  4. Hi D Sones Thanks for the response. I've been experimenting with this, and I cannot get the height to behave in the same way as the width when I reduce the size of the window/browser. (The modified code is inserted below. I now have two "div" tags, with one nested inside the other.) To be more explicit: When I reduce the width of the window/browser, the boxes for the "div" tags narrow as well, to the point that the min-width is reached (which is expected). When I reduce the height of the window/browser, the height of the boxes do not change at all. How would I get the same
  5. Hi All; The height element does not seem to be working as expected for the following example: http://www.w3schools.com/css/tryit.asp?filename=trycss_dim_max-height When I resize the window/browser, the div element does not change in height. I made a few changes to the code, adding a "border" to show the box better: <!DOCTYPE html> <html> <head> <style> div { max-height: 600px; min-height: 200px; background-color: powderblue; border : solid; } </style> </head> <body> <h2>Set the max-height and min-height of an
  6. Wylbur

    Back Button Blues

    Basically, if I could determine when the back and forward buttons were clicked (with Javascript) I'd probably have what I need to resolve my issue. It would be nice if there were "onbackbutton" and "onforwardbutton" event handlers, but I've yet to find anything that would fill those roles. I'm hoping that someone might give me a clue on something that I've overlooked. I see that there's a "window.onpopstate" event, but it doesn't seem to be doing anything for me as of yet. I'm going to keep playing with it.
  7. Wylbur

    Back Button Blues

    A button click event handler. (This is generated by a server-side button control.)
  8. Wylbur

    Back Button Blues

    Hi Dave; I've seen those. The first one applies to server-side functionality. The problem is that, when the back button is pressed, it does not trigger a postback event, so whatever server-side code there is won't be executed. The second one looked good at first, but it only applies to AJAX/Updatepanel/asynchronous postbacks. It threw an exception when I tried it on a just plain synchronous postback. THANKS for the response!
  9. Wylbur

    Back Button Blues

    Hi;I'm developing a web app in ASP.NET that loads controlsdynamically on a page (depending upon user responses).Handling the back button has been giving me fits.Apparently, there is no handler for that.(If I'm wrong about that, then PLEASE correct me.)What I want to do is to trigger a postback on the back button.(This must be done. There are no alternatives.)I'm trying to detect the "back button state" to accomplish this.The first thing I tried was to keep a running count ofrequest/response cycles and comparing it to window.history.length.If the two are different, then it might be assumed that
  10. Hi Guy; This could very possibly work, but, unless I'm mistaken, I'd need something in the wayof a server to send the response. As things stand now, there is no server involvement.THANK YOU for the response!!!
  11. Not-so-great if it doesn't work on the first go-round, or if I need to put in a call tothe "alert" method in order to get it to work every time. That doesn't really help me, as the "setTimeout" method works asynchronously, so the objectthat needs to be instantiated from the class defined within the dynamically loaded codeis still null when it gets used later in the code. I cannot utilize the object from withinmethods called later in the execution sequence from the timed method set from the"setTimeout" method (so that isn't a viable option in case you were thinking along those lines). ... unles
  12. Ah - thank you for setting me straight on that. That's what I was thinking. That would not be possible under the set of circumstances that I'm operating with. I was thinking the same thing (but it wasn't working right as I made a mistake with the catch partbefore you set me straight).I had to fiddle with it a bit before I got the click handler to execute without blowing up.I have now reached the point to where I am getting a legitimate error message - again - on theinitial page request (then it works fine after that). I've set a counter variable to zero, thenincremented it with a for-loop on t
  13. Hi Guy; That's a good question, and one that I have asked myself.Since I made the initial post, I tried appending the script node tothe children of the head tag, and that didn't work either - I got thesame behavior as before (it fails on the first call, but works finewith every call thereafter).I then tried the "insertBefore" method to make it the first script nodein the head tag, but I got the same result.This is the current state of the insertion method, with what had beentried before commented out:function load_js_code_from_file (js_code_file){ // var parent_ref = document.getElement
  14. Hi all;I'm trying to dynamically load javascript from a file with a click handler.The code is for a class function.I'm instantiating an instance of the class from the click handler.It doesn't work the first time I call the "constructor" function,but it does work the second time.If I put in a call to the "alert" method, it works the first time (and every time).From this, it would be logical to conclude that the code being loadedisn't being given time enough to load and be implanted within the DOMstructure for the page before it's called.How can I get the click handler to wait for the code to ge
  15. Wylbur

    Locally Unique?

    Hi all;Problem solved.Thanks for reading.
×
×
  • Create New...