Okie dokie, I tried to do the nice thing and first figure this out myself, then I searched Google (limited to alphasoftware.com), then I searched the forum and I found three useful pages related to what I'm looking to do. Thread: want AJAX popup from non-Grid, Wiki: Setting Pop-up Ajax Window Size, and Thread: Sizing a Popup Window .
I'll get this out of the way now. Originally, I was using a Link with the Target set to be an AJAX Window. However, I am switching to buttons because I could not figure out how to get to the JavaScript events as described in the above links. I have no preference for whether I use links of buttons, but I think buttons will be a little easier. Now onto what I am trying to do.
My goal is to have my AJAX popup window resize itself to fit its contents. In the onClick event of my button I have Action JavaScript that opens an AJAX Window. Everything works just fine with it, except the size. I have set the Window height and Window width properties to blank as their descriptions say doing so causes the window to resize automatically to the contents. Yet this is not happening (anyone know why?).
So after reading the above pages, now I want to use the onShow event of my AJAX popup to figure out and set the size myself. Not being overly familiar with Alpha Five or AJAX I'm struggling here. Does anyone know how I can find the widest and lowest elements in my window? By widest and lowest I mean relative to the top-left of the window. Basically I am trying to find a way to figure out what the width and height of the window would be if it had automatically resized so that I can resize it myself.
I sure hope that I described that well. Any guidance would be much appreciated.
I'll get this out of the way now. Originally, I was using a Link with the Target set to be an AJAX Window. However, I am switching to buttons because I could not figure out how to get to the JavaScript events as described in the above links. I have no preference for whether I use links of buttons, but I think buttons will be a little easier. Now onto what I am trying to do.
My goal is to have my AJAX popup window resize itself to fit its contents. In the onClick event of my button I have Action JavaScript that opens an AJAX Window. Everything works just fine with it, except the size. I have set the Window height and Window width properties to blank as their descriptions say doing so causes the window to resize automatically to the contents. Yet this is not happening (anyone know why?).
So after reading the above pages, now I want to use the onShow event of my AJAX popup to figure out and set the size myself. Not being overly familiar with Alpha Five or AJAX I'm struggling here. Does anyone know how I can find the widest and lowest elements in my window? By widest and lowest I mean relative to the top-left of the window. Basically I am trying to find a way to figure out what the width and height of the window would be if it had automatically resized so that I can resize it myself.
I sure hope that I described that well. Any guidance would be much appreciated.
Comment