[jQuery] Duplicate GridViews in jQuery tabs

2008-06-26 Thread vladv

Hi,
I work with asp.net and jquery.
I would like to have the same GridView displayed in many tabs, and
only changing ObjectDataSource parameters so the data which is
displayed will change.
How can I do it without duplicating the GridView?

Thanks for any help


[jQuery] Re: ASP.NET UserControl and jQuery

2008-06-09 Thread vladv

Thanks,
In the second link there was never a good answer... I don't need error
messages, I want to know in code if I should or shouldn't load jQuery.

The reason I want to add the reference to jQuery and checking is that
other people are going to use the control in their project, so on one
hand I don't want to tell them what to put on their page but on the
other hand I don't want to load the jQuery twice.

So, is it possible to do this?

THanks again

On Jun 9, 12:31 am, MorningZ [EMAIL PROTECTED] wrote:
 If you want to just make life easy, include jQuery in your layout/
 masterpage and call it a day... it's only going to get downloaded once
 ( 30k if you use the packed version) and cached on the user's browser
 whenever the first page is loaded, so it's not like it's downloaded
 again and again on all page loads

 Otherwise to load javascript from within a user control, WebResource
 will do the trick

 http://weblogs.asp.net/dwahlin/archive/2007/04/29/creating-custom-asp...

 As for checking for already loaded, Google-ing check if jquery is
 loaded shows this simple if statement:

 http://groups.google.com/group/jquery-en/browse_thread/thread/c155ed9...


[jQuery] ASP.NET UserControl and jQuery

2008-06-08 Thread vladv

Hi,
I have a UserControl to which I would like to add some jQuery
functionality.
There are 2 issues with this:
1. Where should I include the jQuery library reference and where to
call the functions?
2. How can I check if the jQuery lib is already loaded by the main
page (the page to which the UserControl will be added)

I'm nub, so please be gentle :)

Thank you very much!


[jQuery] ASP.NET UpdatePanel vs. jQuery - Tutorials

2008-05-30 Thread vladv

Hi all,
I'm looking for some kind of tutorial for the topic in the title...


Thank you


[jQuery] .length doesn't work in Firefox

2008-05-28 Thread vladv

Hello,
Have some strange behavior with Firefox, can someone please help me
with this?

This is the code (without irrelevant info):

var content = $('#TextField'); //this is ASP.NET TextField
var len = content.html().length; //same result with text()

if(len == 0)
{
   return false;
}
else
{
   return true;
}

It works great in IE (6 and 7) but in Firefox gives me always len==0
(even if there is some text there)

I use jQuery 1.2.6


[jQuery] Re: jQuery tooltip doesn't work after UpdatePanel update?

2008-05-23 Thread vladv

THank you very much.

I used pageLoad function for this, because it runs also on partial
postbacks.


On May 21, 6:38 am, steve_f [EMAIL PROTECTED] wrote:
 You need to hookup a callback using the ms ajax page request manager
 like so

 Sys.WebForms.PageRequestManager.getInstance().add_endRequest(EndRequestHandler);

 var EndRequestHandler=function(){
ReEnableTooltips();

 }

 On May 20, 9:36 pm, Gauthier Segay [EMAIL PROTECTED] wrote:

  You may need to reattach the tooltip plugin to the dom being
  refreshed.

  Does your asp.net component support attaching custom javascript on
  content refresh?

  If it doesn't support that (not very extensible), you may override the
  default behaviour by monkey patching the javascript function being
  call when update pannel is trigged.

  On May 20, 10:29 pm, vladv [EMAIL PROTECTED] wrote: Does jQuery supposed 
  to work with asp.net ajax update panel?
   I used jQuery tooltip  
   :http://bassistance.de/jquery-plugins/jquery-plugin-tooltip/

   but after the update panel update every tooltip is reset to default
   tooltip.

   how can this be fixed?

   Thank you


[jQuery] Re: jQuery tooltip doesn't work after UpdatePanel update?

2008-05-21 Thread vladv

Thank you!
I'll try to do that!
:)

On May 21, 6:38 am, steve_f [EMAIL PROTECTED] wrote:
 You need to hookup a callback using the ms ajax page request manager
 like so

 Sys.WebForms.PageRequestManager.getInstance().add_endRequest(EndRequestHandler);

 var EndRequestHandler=function(){
ReEnableTooltips();

 }

 On May 20, 9:36 pm, Gauthier Segay [EMAIL PROTECTED] wrote:

  You may need to reattach the tooltip plugin to the dom being
  refreshed.

  Does your asp.net component support attaching custom javascript on
  content refresh?

  If it doesn't support that (not very extensible), you may override the
  default behaviour by monkey patching the javascript function being
  call when update pannel is trigged.

  On May 20, 10:29 pm, vladv [EMAIL PROTECTED] wrote: Does jQuery supposed 
  to work with asp.net ajax update panel?
   I used jQuery tooltip  
   :http://bassistance.de/jquery-plugins/jquery-plugin-tooltip/

   but after the update panel update every tooltip is reset to default
   tooltip.

   how can this be fixed?

   Thank you


[jQuery] jQuery tooltip doesn't work after UpdatePanel update?

2008-05-20 Thread vladv

Does jQuery supposed to work with asp.net ajax update panel?
I used jQuery tooltip  : 
http://bassistance.de/jquery-plugins/jquery-plugin-tooltip/

but after the update panel update every tooltip is reset to default
tooltip.

how can this be fixed?

Thank you


[jQuery] Re: find by partial id

2008-05-13 Thread vladv

Thanks all for the reply,
$([EMAIL PROTECTED]'lblName'])  doesn't work (also tried to replace span
with input)

How would I use %=lblName.ClientID % in jQuery statement?

Thank you again


On May 11, 5:39 pm, Armand Datema [EMAIL PROTECTED] wrote:
 Hi

 I think you are using aps.net so you could try the asp.net call to get a
 cleintid

 %=lblName.ClientID %

 On 5/11/08, steve_f [EMAIL PROTECTED] wrote:





  you can use the following
  $([EMAIL PROTECTED]'lblName'])

  On May 11, 8:37 am, vladv [EMAIL PROTECTED] wrote:
   hello
   please help me with a simple question

   i have a control which is rendered couple of times (gridview) and gets
   some id which i know only part of, for example if i named my label
   lblName then on each row I will have

   gvMyGrid$ctr32$lblName or something like this..

   how can I find all the labels? can I find by partial id?

   I tried $(#*lblName). but it doesn't work

   Thank you

 --
 Armand Datema
 CTO SchwingSoft


[jQuery] find by partial id

2008-05-11 Thread vladv

hello
please help me with a simple question

i have a control which is rendered couple of times (gridview) and gets
some id which i know only part of, for example if i named my label
lblName then on each row I will have

gvMyGrid$ctr32$lblName or something like this..

how can I find all the labels? can I find by partial id?

I tried $(#*lblName). but it doesn't work

Thank you


[jQuery] Re: Question: Selecting all the links in div

2008-04-25 Thread vladv

Thanks.
I'll try it, but I'm not sure how does that make any difference...
What if I want to have two panels with the same css class and work
with them both? I think I should be able to do that with jQuery.
That is all the point, doesn't it?


Thanks again.
Vlad

On Apr 24, 4:45 pm, ripple [EMAIL PROTECTED] wrote:
 You have UserSubPanel as the id.

 div id=UserSubPanel class=sidePanel

   But you call it as a class.

$('div.UserSubPanel a').addClass('sideLink');

   Call it by the id.

$('#UserSubPanel a').addClass('sideLink');

  http://2whoa.com/dominate/



[jQuery] Re: Question: Selecting all the links in div

2008-04-24 Thread vladv

The panel is asp.net Panel but if I look at generated html this is
what I see:

div id=UserPanel class=sidePanel style=text-align:left;
   fieldset id=fsUserPanel
   legendbUser Panel/b/legend
  div id=UserSubPanel class=sidePanel
a id=link1 href=pathLink1/a
br /
 a id=link2 href=path2Link2/a
 br /

/div
   /fieldset
/div


script type=text/javascript
 $(document).ready(function(){

$('div.UserSubPanel a').addClass('sideLink');

//http://bassistance.de/jquery-plugins/jquery-plugin-
tooltip/
$('#nav a').tooltip({
track: true,
delay: 0,
showURL: false,
showBody:  - ,
extraClass: pretty,
fixPNG: true,
opacity: 0.95,
left: -60
});
});
/script

each doesn't work too.

Hope this will resolve the issue.

Thanks to all :)



On Apr 24, 10:44 am, Armand Datema [EMAIL PROTECTED] wrote:
 Hi

 does this UserSubPanel is a gernal div  like

 div id=UserSubPanel

 or an asp.net div like

 div id=UserSubPanel runat=server

 if the second is the case than your div cannot be found because
 aps.netrwrites the id to something like div id=asp_UserSubPanel

 Armand

 On Wed, Apr 23, 2008 at 11:16 PM, Hamish Campbell [EMAIL PROTECTED]
 wrote:





  Could you post the html? That would help a lot. If the links exist
  your code should work.

  btw, ripple, you shouldn't need to use 'each' - addClass will apply to
  all objects in the collection. Using 'each' just adds overhead.

  On Apr 24, 3:14 am, ripple [EMAIL PROTECTED] wrote:
   Why not loop through it? This is usually how I would do it.

 $(document).ready(function(){

   $('#UserSubPanel  a').each(function(i) {

   $(this).addClass('sideLink');

   });

http://2whoa.com/dominate/

   vladv [EMAIL PROTECTED] wrote:

   Thanks for your answer :)
   I tried this also, but no luck...

   What may be the problem?
   I have another jQuery function in the same place, but it works just
   fine

   can it be that nested div called in other way?

   Thanks again

   On Apr 23, 3:26 pm, Giuliano Marcangelo
   wrote:

$(document).ready(function(){

$('#UserSubPanel a').addClass('sideLink');
});

2008/4/23 vladv :

 Selecting all the links in div..
 I know it should be really simple, but for some reason I can't make
  it
 work..

 I work with asp.net and try to run something like this:

 $(document).ready(function(){

 $('#UserSubPanel  a').addClass('sideLink');
 });

 but it doesn't work. The links are LinkButtons but rendered as
 Can someone please help me with this?
 Thanks in advance.

   -
   Be a better friend, newshound, and know-it-all with Yahoo! Mobile.  Try
  it now.- Hide quoted text -

   - Show quoted text -

 --
 Armand Datema
 CTO SchwingSoft


[jQuery] Question: Selecting all the links in div

2008-04-23 Thread vladv

Selecting all the links in div..
I know it should be really simple, but for some reason I can't make it
work..

I work with asp.net and try to run something like this:

   $(document).ready(function(){

$('#UserSubPanel  a').addClass('sideLink');
   });

but it doesn't work. The links are LinkButtons but rendered as a
Can someone please help me with this?
Thanks in advance.


[jQuery] Re: Question: Selecting all the links in div

2008-04-23 Thread vladv

Thanks for your answer :)
I tried this also, but no luck...

What may be the problem?
I have another jQuery function in the same place, but it works just
fine

can it be that nested div called in other way?

Thanks again

On Apr 23, 3:26 pm, Giuliano Marcangelo
[EMAIL PROTECTED] wrote:
 $(document).ready(function(){

$('#UserSubPanel  a').addClass('sideLink');
   });

 2008/4/23 vladv [EMAIL PROTECTED]:



  Selecting all the links in div..
  I know it should be really simple, but for some reason I can't make it
  work..

  I work with asp.net and try to run something like this:

$(document).ready(function(){

 $('#UserSubPanel  a').addClass('sideLink');
});

  but it doesn't work. The links are LinkButtons but rendered as a
  Can someone please help me with this?
  Thanks in advance.