Welcome to Pintexx Forum Sign in | Join | Faq

pinTab

Started by AndrewC at 01-11-2007 5:10 . Topic has 8 replies.

Print Search
Sort Posts:    
   01-11-2007, 5:10
AndrewC is not online. Last active: 10.08.2007 18:09:50 AndrewC

Top 25 Posts
Joined on 01-11-2007
Posts 23
Access a control on the Main page from tab page, server code
Reply Quote
Hi-

Is it possible, using ASP.NET 2.0, to access a control on the main page from a page in one of the tabs, using Server-side code? I want to set the text property of a textbox on the main page when an event fires on the tab page.

If not, is it possible using client-side code, or a combination?

This is one of the last items preventing me from buying PinTab, and I would like to know the answer ASAP...

Thank you,

-Andrew
   Report 
   01-11-2007, 3:44
Pintexx Support is not online. Last active: 30.12.2008 07:11:54 Pintexx Support

Top 10 Posts
Joined on 08-30-2005
Posts 1.571
Re: Access a control on the Main page from tab page, server code
Reply Quote
Hi Andrew,

this is possible by using client side code.
If the event is raised and you are on the tab item page you have to use

parent.parent.document.getElementById("...").value = "123"
to access the text box at the main page.

Regards,
Hans-Peter
   Report 
   01-11-2007, 5:03
AndrewC is not online. Last active: 10.08.2007 18:09:50 AndrewC

Top 25 Posts
Joined on 01-11-2007
Posts 23
Re: Access a control on the Main page from tab page, server code
Reply Quote
Thanks.

I'll see if that works for my situation.

And thank you for the quick response!

-Andrew
   Report 
   01-11-2007, 6:25
AndrewC is not online. Last active: 10.08.2007 18:09:50 AndrewC

Top 25 Posts
Joined on 01-11-2007
Posts 23
Re: Access a control on the Main page from tab page, server code
Reply Quote
Hans-Peter-

OK, I did get that to work; I had to add "cl100_ContentPlaceHolder1_" to the beginning of the control name, because the main page derives from a MasterPage.

In debugging it, though, I noticed a massive number of Warnings in Mozilla Firefox 2.0.0.1. for Windows XP, related to the PinTab control, upon loading the main page that hosts the Tab control.
This has me worried, as my site must work with all browsers across Windows and the Mac.

Here are a few of the warnings:
Warning: Error in parsing value for property 'cursor'. Declaration dropped
Source File: http://[MYSITE]/tab/design/style/pinTab.cs Line: 50

Warning: Unknown property 'zzPOSITION'. Declaration dropped.
Source File: http://[MYSITE]/tab/design/style/pinTab.css Line: 471

Warning: Unknown property 'zztop'. Declaration dropped
Source File: http://[MYSITE]/tab/design/style/pinTab.css Line: 472

Warning: Unknown property 'zzborder-bottom'. Declaration dropped.
Source File: http://[MYSITE]/tab/design/style/pinTab.css Line: 529

Warning: Expected color but found 'outset'. Expected color but found 'outset'.
Expected end of value for property but found 'outset'. Error in parsing value for property 'border-top'.
Declaration dropped.
Source File: http://[MYSITE]/tab/design/style/pinTab.css Line: 1298

Many of the above Warnings repeat with small variations.

Ordinarily I would not worry too much about warnings, but in this case, where I must support the greatest number of browsers possible, and I do not have them all available for testing, I am a little concerned. Other than this, I have found the PinTab control to be a pleasure to work with (other than the annoying popups in the unregistered version! ;-), and I would like to purchase it if you can give me some reassurance on the warnings.

Thanks again,

-Andrew
   Report 
   01-11-2007, 7:12
AndrewC is not online. Last active: 10.08.2007 18:09:50 AndrewC

Top 25 Posts
Joined on 01-11-2007
Posts 23
UPDATE ON WARNINGS
Reply Quote
I have found the reason for some of the warnings.

In the stylesheet for PinTab, you are using a property of "border-right" and "border-top" named "outset". This property is not part of .CSS, or at least Mozilla does not recognize it. Can I simply remove this property without causing problems?
   Report 
   01-11-2007, 7:30
AndrewC is not online. Last active: 10.08.2007 18:09:50 AndrewC

Top 25 Posts
Joined on 01-11-2007
Posts 23
Re: UPDATE ON WARNINGS
Reply Quote
Next-

The error regarding the cursor is because you are using the following line in your .CSS:
cursor: hand;

This is incorrect. It should be:
cursor: move;

So, the remaining errors are related to the border issue I mentioned above, and the "zz" elements you have sprinkled throughout the .CSS, such as "zzHeight", "zzPOSITION" and "zzTop". What do these do, and can I eliminate them, or is there a way to fix the .CSS so that these elements are recognized?

Thanks,

-Andrew
   Report 
   01-12-2007, 8:56
Pintexx Support is not online. Last active: 30.12.2008 07:11:54 Pintexx Support

Top 10 Posts
Joined on 08-30-2005
Posts 1.571
Re: UPDATE ON WARNINGS
Reply Quote
Hi Andrew,

you can remove all of the zz... styles.
zz means for us that they are commented.
We forget to remove them after release.

Regards,
Hans-Peter
   Report 
   01-12-2007, 9:07
AndrewC is not online. Last active: 10.08.2007 18:09:50 AndrewC

Top 25 Posts
Joined on 01-11-2007
Posts 23
Re: UPDATE ON WARNINGS
Reply Quote
OK,
Thanks, Hans-Peter.

Perhaps you want to remove them for the next version? ;-)


-Andrew
   Report 
   01-12-2007, 9:46
Pintexx Support is not online. Last active: 30.12.2008 07:11:54 Pintexx Support

Top 10 Posts
Joined on 08-30-2005
Posts 1.571
Re: UPDATE ON WARNINGS
Reply Quote
Of course.

Hans-Peter
   Report 
Pintexx Forum » Developer Produ... » pinTab » Access a control on the Main page from tab page, server code