blitzn
Posts: 5
|
| Posted: 06/04/2010, 11:37 AM |
|
Using tabs and trying to insert new record pulls blank page. Why would this even be the default action? I have scoured this forum and nothing I can find at all to add a new record and keep it in the same tab and not pull up a blank page.
Seems it loses focus and even when I try to add return page with my tabs page name and with return page to the include page within the tab does the same thing. Nothing helps and no instructions are found on this issue that I could find.
|
 |
 |
ckroon
Posts: 869
|
| Posted: 06/04/2010, 11:53 AM |
|
Did you try putting everything in an update panel?
_________________
Walter Kempees...you are dearly missed. |
 |
 |
blitzn
Posts: 5
|
| Posted: 06/04/2010, 12:04 PM |
|
Hello and thanks for the quick response.
Yes that was my first design till I hit the dreaded pitfall of using update panel with file upload and I could not find much info on how to fix so I ripped out the update panel. Everything I did find basically stated ajax and file upload have no way to communicate.
|
 |
 |
ckroon
Posts: 869
|
| Posted: 06/04/2010, 2:32 PM |
|
Using tabs to insert new record works great if its inside an update panel.. but if it has File Uploader... don't think you can use tabs.
_________________
Walter Kempees...you are dearly missed. |
 |
 |
blitzn
Posts: 5
|
| Posted: 06/04/2010, 3:37 PM |
|
Right I learned that right off but I would think someone has already addressed this issue. I cant believe I am the only one.
Also in the search grid I had to focus the submit button to the tabs page which kept its focus on the page I was doing the search on so why the add new link doesnt do the same is beyond me.
|
 |
 |
blitzn
Posts: 5
|
| Posted: 06/04/2010, 4:12 PM |
|
Tabs and file upload works fine without update panel but I also lose focus and the program defaults back to first tab again yet if I click back to the tab I used to file upload my file is there.
I would love to hear why someone would design it like this on purpose.
|
 |
 |
kawuat
Posts: 13
|
| Posted: 06/05/2010, 1:56 AM |
|
I'm sure someone has a better way, but this keeps my tabs when I load/refresh the page or sets the active tab to one of my choice.
I use sessvars (http://www.thomasfrank.se/sessionvars.html) by Thomas Frank to keep my tabs by passing the Tab index into a session variable.
I included the .js file in my page.
<script type="text/javascript" src="sessionvars.js"></script>
I have a simple function that I pass the tab index into which loads my session variable
function SetTabIndexToActive(TabIndexID){
sessvars.myObj = TabIndexID;
}
In my case I have 10 tabs so my indexs are from 0 to 9 on each from I add click events to the buttons and links on each tabs forms corresponding to that tab. Of course if the link/button passes me to another tab then I pass that tabs index instead
onclick="SetTabIndexToActive(6);"
In the in my CCS generated JavaScript for my tabs after
YAHOO.util.Event.onContentReady("PageName", function() {
PageNameTabViewName.appendTo(this);
});
I added the following function to set the tab index when the page loads/refreshes
if(!sessvars.myObj)
{ // alert(sessvars.myObj+" <- Empty");
PageNameTabViewName.set('activeIndex',0);
}else{
// alert(sessvars.myObj+" <- Clicked");
PageNameTabViewName.set('activeIndex',sessvars.myObj);
}
What I would like to do is turn tabs and their corresponding panels on and off dynamically. Does anyone have an idea on how to get that to work?
|
 |
 |
blitzn
Posts: 5
|
| Posted: 06/05/2010, 2:59 PM |
|
Thanks for the replies everyone.
I feel this is a major setback for this program and I am opting to not even use their tab functions and I myself feel a lot better using pure css for any tab work within this program. Its a shame this program is that problematic and not a lot of support when coming to the real fix. Sure I can add in more and more coding but now have to worry about compatibility.
For my fix I am going to try using this method. http://matthewjamestaylor.com/blog/beautiful-css-center...browser-support#
I know I may be losing out on some features this program uses with their built in tabs but it seems its all a guess which method works best and the time for research and which fix is going to work for me or not under my circumstances is not really worth that much time.
Let me know if this helps anyone else
Thanks for all your input
|
 |
 |