[jQuery] jquery text problem.

2009-12-19 Thread suresh kumar
I am using jquery block to show the popup window. In which the popup
has two textboxes with two buttons. When user clicking the buttion i
need to get the value from two textboxe's and save it to the database.
But when i try to get the value it is nulll or empty string.

How can i get the textbox value in code behind file ? ( .net )

Thanks,
Suresh.


[jQuery] Re: jquery text problem.

2009-12-19 Thread Rick van Hoeij
I usually use this code:

$('#textbox_id').val()

But I don't know id it is different in .net

Hope this helps. Greetz,

Rick

On Dec 19, 11:48 am, suresh kumar ksuresh...@gmail.com wrote:
 I am using jquery block to show the popup window. In which the popup
 has two textboxes with two buttons. When user clicking the buttion i
 need to get the value from two textboxe's and save it to the database.
 But when i try to get the value it is nulll or empty string.

 How can i get the textbox value in code behind file ? ( .net )

 Thanks,
 Suresh.


[jQuery] Text Shapes

2009-12-11 Thread Mohtisham
Well, i am trying to shape my text like curve up or down, bulge, roof
text, bridge text etc.
I tried through JavaScript and applied the margin + transform: rotate
CSS on my text character by character.
But it is not a good approach as far as my view point is concerned.
Anyone have idea about it do give your comments.
Thanks,


[jQuery] text without backspace get error in cluetip

2009-09-01 Thread khin

Hi all,

When i have:

title=test|contentwithoutspacehover/a

if the width of the text is more bigger than the configuration of
cluetip, the text continues out of cluetip box.

Have one way to solve that?

Rly Thx



[jQuery] text slider

2009-08-13 Thread aaaaaaaa bbbbbbbbb

Could somebody add to jquery text slider ? To scroll text using
scrollbar ?


[jQuery] Text manipulation : retrieve tag

2009-07-23 Thread Kris-I

Hello,

I have an HTML text with text and tags

I'd like to get only the text between the tags title

Then I have this:

body
start text
titleText to get/title
end text
/body

i'd like to have this result ONLY: Text to get

How can I do this ?

Thanks,


[jQuery] jQuery Text Validation/Combo Boxes

2009-07-19 Thread Admiral Data

Hello,

Is there anyway to make a text validation tool such that if in box 1
the user entered dog, then in box 2 dog is entered for them. But if
they enter cat in box 1 and attempt to enter cat in box 2 it tells
them they have made an invalid selection?

Also is there anyway to make it such that if you select a combo box
text will appear inside of the text boxes and prevent user editing?
Likewise hide and un-hide text boxes upon combo box selection.

Thanks,


[jQuery] Re: jQuery text toggle effect

2009-06-22 Thread mojoeJohn

k well i found a great solution that i rigged to fit my own
situation ... i worked w/ the code a bit and changed it up some from
what i originally posted.

here's the link to the article i found 
http://www.sitepoint.com/forums/showthread.php?t=554851

the jquery:

$('.showhide').click(function() {
$('.clients').slideToggle(400);
$(this).text($(this).text() == 'Show box' ? 'Hide box' : 'Show
box');
return false;
});


html:

div class=showhideShow box/div
ul class=clients
liimg src=images/1.jpg alt=photo1//li
liimg src=images/2.jpg alt=photo2//li
liimg src=images/3.jpg alt=photo3//li
liimg src=images/4.jpg alt=photo4//li
liimg src=images/5.jpg alt=photo5//li
noscriptThis is the description for the logo/noscript
!--close clients--
/ul


this time showhide doesn't wrap around clients



could someone explain what this line does:

$(this).text($(this).text() == 'Show box' ? 'Hide box' : 'Show
box');

i don't like to have solutions unless i can understand the answer.
it'll help me learn better.



On Jun 19, 3:55 pm, Matt Kruse m...@thekrusefamily.com wrote:
 On Jun 19, 9:02 am, mojoeJohn mojoej...@gmail.com wrote:

  obviously, i want thetexttotogglethe words show and hide in
  accordance to the slidetoggle.

 I keep this in my toolbox:

 //Toggletextwithin an element using regular expressions.
 // Useful for changing show to hide and back when toggling element
 displays, for example
 jQuery.fn.toggleText = function(a,b) {
         return this.html(this.html().replace(new RegExp((+a+|+b
 +)),function(x){return(x==a)?b:a;}));

 }

 Example:

 $('#mydiv').toggleText('show','hide');

 You can pass in regextext, and it cantoggletextwithin a string
 like:

 Click here to show all items

 and it will justtogglethe word show to hide.

 Hope it's useful.

 Matt Kruse


[jQuery] Re: jQuery text toggle effect

2009-06-21 Thread mojoeJohn

thanks MATT!

On Jun 19, 3:55 pm, Matt Kruse m...@thekrusefamily.com wrote:
 On Jun 19, 9:02 am, mojoeJohn mojoej...@gmail.com wrote:

  obviously, i want thetexttotogglethe words show and hide in
  accordance to the slidetoggle.

 I keep this in my toolbox:

 //Toggletextwithin an element using regular expressions.
 // Useful for changing show to hide and back when toggling element
 displays, for example
 jQuery.fn.toggleText = function(a,b) {
         return this.html(this.html().replace(new RegExp((+a+|+b
 +)),function(x){return(x==a)?b:a;}));

 }

 Example:

 $('#mydiv').toggleText('show','hide');

 You can pass in regextext, and it cantoggletextwithin a string
 like:

 Click here to show all items

 and it will justtogglethe word show to hide.

 Hope it's useful.

 Matt Kruse


[jQuery] Re: jQuery text toggle effect

2009-06-21 Thread mojoeJohn

I tried the code, but it didn't change the text back and how do i get
it to work on multiple instances of show/hide. any ideas?

On Jun 19, 11:33 am, Mauricio \(Maujor\) Samy Silva
css.mau...@gmail.com wrote:
 Please:
 1-) Wrap Show within a span element.
 2-) Get rid of the style atributte for the ul. ul's are block level elements 
 by default.

 div class=showhide
 spanShow/span
 ul class=clients
 li/li
 ...

 3-) And here goes the code;

 $(.showhide).click(function() {
     $(this).children(.clients).slideToggle('slow');
       var currentText = $('span', '.showhide').text()
         if (currentText == 'Hide') {
            $('span', '.showhide').html('Show')
        } else {
           $('span', '.showhide').html('Hide') }  

 });

 Maurício

   -Mensagem Original-
   De: mojoeJohn
   Para: jQuery (English)
   Enviada em: sexta-feira, 19 de junho de 2009 11:02
   Assunto: [jQuery] jQuery text toggle effect

   So i was looking on here yesterday, and i've been scouring the Web for
   a simple text toggle tutorial. I haven't been able to find one --
   maybe i'm not looking in the right places, but anyway. so you can
   probably tell what i'm trying to achieve just by my subject line.

   I have a div of images called .clients wrapped in a div
   called .showhide

   div class=showhide
   Show
   ul class=clients style=display: block;
   li/li
   li/li
   li/li
   li/li
   li/li
   noscriptThis is the description for the logo/noscript
   /ul
   /div

   here's the jQuery that runs when i click .showhide

   $(.showhide).click(function(){
         $(this).children(.clients).slideToggle('slow');
   });

   just a simple slideToggle of the images on the click of the .showhide
   class. nothing new there.

   i tried a couple of things, but i don't know enough about jQuery yet
   to do this correctly.
   the best i could do was to have the text change after i
   click .showhide, but then the .slideToggle became disabled after the
   text changed.

   obviously, i want the text to toggle the words show and hide in
   accordance to the slide toggle.

   i have a hunch that i need to write an if/then statement using
   the .html feature to change the text itself and maybe even a variable
   for the show and a variable for the hide so i can pass them through
   with ease.

   can anyone help me?! am i on the right track?!

   thanks,

   John


[jQuery] jQuery text toggle effect

2009-06-19 Thread mojoeJohn

So i was looking on here yesterday, and i've been scouring the Web for
a simple text toggle tutorial. I haven't been able to find one --
maybe i'm not looking in the right places, but anyway. so you can
probably tell what i'm trying to achieve just by my subject line.

I have a div of images called .clients wrapped in a div
called .showhide

div class=showhide
Show
ul class=clients style=display: block;
li/li
li/li
li/li
li/li
li/li
noscriptThis is the description for the logo/noscript
/ul
/div


here's the jQuery that runs when i click .showhide

$(.showhide).click(function(){
  $(this).children(.clients).slideToggle('slow');
});


just a simple slideToggle of the images on the click of the .showhide
class. nothing new there.

i tried a couple of things, but i don't know enough about jQuery yet
to do this correctly.
the best i could do was to have the text change after i
click .showhide, but then the .slideToggle became disabled after the
text changed.

obviously, i want the text to toggle the words show and hide in
accordance to the slide toggle.

i have a hunch that i need to write an if/then statement using
the .html feature to change the text itself and maybe even a variable
for the show and a variable for the hide so i can pass them through
with ease.

can anyone help me?! am i on the right track?!


thanks,

John


[jQuery] Re: jQuery text toggle effect

2009-06-19 Thread Mauricio (Maujor) Samy Silva
Please:
1-) Wrap Show within a span element.
2-) Get rid of the style atributte for the ul. ul's are block level elements by 
default.

div class=showhide
spanShow/span
ul class=clients
li/li
...

3-) And here goes the code;

$(.showhide).click(function() {
$(this).children(.clients).slideToggle('slow');
  var currentText = $('span', '.showhide').text() 
if (currentText == 'Hide') { 
   $('span', '.showhide').html('Show') 
   } else { 
  $('span', '.showhide').html('Hide') }  
});

Maurício


  -Mensagem Original- 
  De: mojoeJohn 
  Para: jQuery (English) 
  Enviada em: sexta-feira, 19 de junho de 2009 11:02
  Assunto: [jQuery] jQuery text toggle effect



  So i was looking on here yesterday, and i've been scouring the Web for
  a simple text toggle tutorial. I haven't been able to find one --
  maybe i'm not looking in the right places, but anyway. so you can
  probably tell what i'm trying to achieve just by my subject line.

  I have a div of images called .clients wrapped in a div
  called .showhide

  div class=showhide
  Show
  ul class=clients style=display: block;
  li/li
  li/li
  li/li
  li/li
  li/li
  noscriptThis is the description for the logo/noscript
  /ul
  /div


  here's the jQuery that runs when i click .showhide

  $(.showhide).click(function(){
$(this).children(.clients).slideToggle('slow');
  });


  just a simple slideToggle of the images on the click of the .showhide
  class. nothing new there.

  i tried a couple of things, but i don't know enough about jQuery yet
  to do this correctly.
  the best i could do was to have the text change after i
  click .showhide, but then the .slideToggle became disabled after the
  text changed.

  obviously, i want the text to toggle the words show and hide in
  accordance to the slide toggle.

  i have a hunch that i need to write an if/then statement using
  the .html feature to change the text itself and maybe even a variable
  for the show and a variable for the hide so i can pass them through
  with ease.

  can anyone help me?! am i on the right track?!


  thanks,

  John

[jQuery] Re: jQuery text toggle effect

2009-06-19 Thread mojoeJohn

Thanks, man i appreciate the help. I figured i had to create a local
variable and that i would need the if statement, but i haven't written
enough of those kind of statements to be able to do it myself. this is
a step in the right direction. AWESOME!!!

On Jun 19, 11:33 am, Mauricio \(Maujor\) Samy Silva
css.mau...@gmail.com wrote:
 Please:
 1-) Wrap Show within a span element.
 2-) Get rid of the style atributte for the ul. ul's are block level elements 
 by default.

 div class=showhide
 spanShow/span
 ul class=clients
 li/li
 ...

 3-) And here goes the code;

 $(.showhide).click(function() {
     $(this).children(.clients).slideToggle('slow');
       var currentText = $('span', '.showhide').text()
         if (currentText == 'Hide') {
            $('span', '.showhide').html('Show')
        } else {
           $('span', '.showhide').html('Hide') }  

 });

 Maurício

   -Mensagem Original-
   De: mojoeJohn
   Para: jQuery (English)
   Enviada em: sexta-feira, 19 de junho de 2009 11:02
   Assunto: [jQuery] jQuery text toggle effect

   So i was looking on here yesterday, and i've been scouring the Web for
   a simple text toggle tutorial. I haven't been able to find one --
   maybe i'm not looking in the right places, but anyway. so you can
   probably tell what i'm trying to achieve just by my subject line.

   I have a div of images called .clients wrapped in a div
   called .showhide

   div class=showhide
   Show
   ul class=clients style=display: block;
   li/li
   li/li
   li/li
   li/li
   li/li
   noscriptThis is the description for the logo/noscript
   /ul
   /div

   here's the jQuery that runs when i click .showhide

   $(.showhide).click(function(){
         $(this).children(.clients).slideToggle('slow');
   });

   just a simple slideToggle of the images on the click of the .showhide
   class. nothing new there.

   i tried a couple of things, but i don't know enough about jQuery yet
   to do this correctly.
   the best i could do was to have the text change after i
   click .showhide, but then the .slideToggle became disabled after the
   text changed.

   obviously, i want the text to toggle the words show and hide in
   accordance to the slide toggle.

   i have a hunch that i need to write an if/then statement using
   the .html feature to change the text itself and maybe even a variable
   for the show and a variable for the hide so i can pass them through
   with ease.

   can anyone help me?! am i on the right track?!

   thanks,

   John


[jQuery] Re: jQuery text toggle effect

2009-06-19 Thread Matt Kruse

On Jun 19, 9:02 am, mojoeJohn mojoej...@gmail.com wrote:
 obviously, i want the text to toggle the words show and hide in
 accordance to the slide toggle.

I keep this in my toolbox:

// Toggle text within an element using regular expressions.
// Useful for changing show to hide and back when toggling element
displays, for example
jQuery.fn.toggleText = function(a,b) {
return this.html(this.html().replace(new RegExp((+a+|+b
+)),function(x){return(x==a)?b:a;}));
}

Example:

$('#mydiv').toggleText('show','hide');

You can pass in regex text, and it can toggle text within a string
like:

Click here to show all items

and it will just toggle the word show to hide.

Hope it's useful.

Matt Kruse


[jQuery] Text Scroller vertical

2009-06-05 Thread simon

I am after a simple div scroller that scrolls text up/down within a
fix sized div, with two scroll buttons that can be set to hover/click,
i have found a load that use it for li tags or images and scrolls
only up by set ammount, but i wouo d like this for text etc

thanks si


[jQuery] text of first sibling of a parent...How do I get it

2009-06-02 Thread con-man-jake

Still a newbie.
I have this:

table
   tr

  td
 text I want to get
  /td

  td
  /td

  td
 div id=knowndiv/div
  /td

   tr
/table

If I have the div with id of knowndiv as an object (call it obj),
How do I get the text inside the first td?


[jQuery] text not right with fade

2009-03-27 Thread simon

I have noticed that when i fade my text in to 100% its not just right
at all it looks pixelated any suggestions.

I am using the following:

???.fadeIn('slow'); method

many thanks Si


[jQuery] Text append / replace not working in ffx 2.x and HtmlUnit

2009-02-10 Thread Marc Palmer

Hi,

Forgive me as I'm a total jQuery n00b. However, I am rather confused.

I have the following trivial code:

html
head
script src=jquery-1.3.1.min.js type=text/javascript/
script type=text/javascript
$(document).ready(function () {
$(p).text(The DOM is now loaded and can be manipulated.);
});
/script
/head
body

p
/p
/body
/html

This is effectively lifted from the ready() documentation page
http://docs.jquery.com/Events/ready#fn

This code works fine in Safari 3 on my machine. It does not work at
all in Firefox 2.x on the same machine. However... the documentation
page -does- do the substitution fine.

More importantly, the firefox problem is just a distraction because I
find the same behaviour (text replacement not working) when I run
HtmlUnit (2.5 snapshot) tests in Java with the same HTML above.

The fact it fails in both ffx 2.x, a reasonably well established
browser, and in HtmlUnit gives me some cause for concern that there is
some kind of bug here.

Can anybody tell me what I'm doing wrong, or give clues as to why this
would be broken in Firefox 2.x and HtmlUnit?

For what its worth .append does not work either - that's where I
started.

Puzzled as to why the jQuery doc page for ready() works in firefox
though. Perhaps this is related to (slower) page load times eg a race
condition?



[jQuery] Issue with jQuery text scroller ...

2009-02-07 Thread backdrifting

This is the jQuery text scroller script(s) I'm using (http://
sorgalla.com/projects/jcarousel/examples/special_textscroller.html).
I have this implemented on my site here:

http://sites.fcps.org/testad/

The problem is that the script is set up to feed in content via XML/
Atom feed and i just want to feed in static content from my Web site.
So I just want to post content using my Drupal site nodes and then
mark up the content so it displays correctly in the text scroller.
How can I tweak the script so it just works with static content?

Is this possible?

-backdrifting


[jQuery] Text to the left of the jQuery Star Rating Plugin

2009-02-06 Thread Tom

Hi, I'm using the star rating plugin at:
http://www.fyneworks.com/jquery/star-rating/

and I'm trying to add a little text to the left of a set of stars
(i.e. Rating: * * * * * ).  After fooling around with the CSS for a
long time, I still haven't been able to get rid of the line break
between the text and the stars (I get the visual equivalent of Rating:
\n* * * * * ).  I've tried floating things left, setting display:
inline, etc, but I must be missing something.  I'm using the current
version at:
http://code.google.com/p/jquery-star-rating-plugin/

Does anyone know how to do this?

Much thanks,
Tom


[jQuery] .text()

2009-01-31 Thread Bob O

So below i have my code example.

Basically when a user loads this page depending on the type of
campaign this is, I want jQuery to show the proper Sub Form Piece. I
can get the alert() outside the if else to fire, but nothing inside
the if else fires, which leads me to believe that I might have the
args set incorrectly

any help would be great

Thanks

HTML **
div class=detail_campaign_typeCoupon/div --
This is the reference text that is dynamic

div id=campaign_create_coupon**Html Form Piece**/div

div id=campaign_create_contest **Html Form Piece**/div

$(document).ready(function() {
  var $coupon_div = $('#campaign_create_coupon');
  var $contest_div = $('#campaign_create_contest');
  var $current_campaign = $('div.detail_campaign_type');

  $current_campaign.ready(function() {
alert($('div.detail_campaign_type').text
());  -- This fires

if ($('div.detail_campaign_type').text() == 'Coupon') {
  alert
('hello');
-- Inside the If Else does not register
  $coupon_div.show();
  $contest_div.hide();
}
else if ($('div.detail_campaign_type').text() == 'Contest') {
  alert
('hello2');
-- Neither does this
  $coupon_div.hide();
  $contest_div.show();
}
  });
});


[jQuery] Text Manipulation

2009-01-23 Thread whtthehecker

Hi,

I'm trying to create a sign up form where after the user inputs their
email address when they click or tab down to the next field (username
field) it auto-populates it with their email address but with the
@x.xxx section stripped from it. i.e. if the user puts
j...@johndoe.com into the email field when they tab to the username
field it will auto-populate with john.

I have achieved auto-populating the field with the email address but
I'm not sure how to remove the @johndoe.com part.

Thanks for any help you can provide!


[jQuery] text-shadow

2008-11-12 Thread Martin Hintzmann

Hello,

I have added a plugin for CSS-3 Text-Shadow for IE.

It reads the value of text-shadow and gives IE an equivialant effect
with the propertiary CSS Filter Blur.

Simply write your CSS

   h1 {
  text-shadow: 2px 2px 2px #999;
   }

And then apply the plugin

   $(h1).textShadow();

Here is the link for the plugin project
http://plugins.jquery.com/project/textshadow/

And here is the link for the demo site
http://www.hintzmann.dk/testcenter/js/jquery/textshadow/

Comments are welcome :D

Best regards,
- Martin Hintzmann


[jQuery] text link to fire Jeditable

2008-11-10 Thread RyOnLife

Hello, I am using Jeditable. Currently firing the plugin when the
editable div is double clicked. I'd also like to add a text link
outside of the editable div, and when clicked, it would make the div
editable. Just want to give my users a visual cue for those that
aren't yet aware of the ability to double click. Can someone let me
know how to do this? Thanks!


[jQuery] text after a radio button

2008-10-28 Thread [EMAIL PROTECTED]

Working with  Lotus Notes developer - apparently, when building a form
with radio buttons elements, Lotus automatically puts the value in
text beside the button. He says there is no way to override this. So
we get:

input name=joe type=radio value=1 /1
input name=joe type=radio value=2 /2
input name=joe type=radio value=3 /3
input name=joe type=radio value=4 /4
input name=joe type=radio value=5 /5

I said maybe we can hide that text with jQuery, but I find that I can
target anything in the input tag, but I can't seem to get the text
after it. Any help appreciated.


[jQuery] text after a radio button

2008-10-28 Thread [EMAIL PROTECTED]

Working with  Lotus Notes developer - apparently, when building a form
with radio buttons elements, Lotus automatically puts the value in
text beside the button. He says there is no way to override this. So
we get:

input name=joe type=radio value=1 /1
input name=joe type=radio value=2 /2
input name=joe type=radio value=3 /3
input name=joe type=radio value=4 /4
input name=joe type=radio value=5 /5

I said maybe we can hide that text with jQuery, but I find that I can
target anything in the input tag, but I can't seem to get the text
after it. Any help appreciated.


[jQuery] text() as a wrapped set?

2008-09-24 Thread 703designs

Because the text method returns a string, it's missing appendTo and
other methods. Now, of course I can do this:

$(#sandbox).text($(a).text());

But I'd prefer to do this:

$(a).text().appendTo(#sanbox);

What goes between text and appendTo? Or is the first example the best
way to do this?


[jQuery] JQuery text replace on Search Box

2008-09-12 Thread adeking

Hi,

I have encountered a strange problem with my text replace using JQuery
for my search box.

Everything worksd as it should, but if a user clicks the back button
while navigating my site, the JQuery will then not work.

If I havent explained myself adequatly, please click the link below,
go through a few links, then click the back button and try using the
search box.

http://www.macmillan-academy.org.uk/zeltha/index.php


If anyone has encountered this problem before, I would be gratful to
hear of the solution.

Many thanks.


[jQuery] text input glow effect

2008-07-02 Thread cecil

Hello ... I'm really new to JQuery; today would be my first time using
it actually. i'd like to reproduce the input highlight effect that
safari applies. when the input is in focus, the border has somewhat of
a glow effect to it.

Does anyone know of technique that I could apply to allow this effect
to happen in IE  FF ?

Thank


[jQuery] text box keeps focus when another element type is clicked ?

2008-06-04 Thread paulj

Hi,

When a text box has the focus, I would like it to keep the focus even
when another element type (not another text box) is clicked. eg after
clicking this other element type, the user can press a key(s) and the
text box will accept this key input without the user having to click
back into the text box.
Hope this makes sense.

Karl gave me some info. the other day and I was pretty sure I would be
able to fine-tune it for my app. but the best I could come up with
is :

$(document).ready(function()
{
  $(':text').blur(function(event)
  {
  if (!$(event.target).is(':text'))
  { $(this).focus() }
  });

});

Thanks for any help
Paul

Here is the full code :

!DOCTYPE HTML PUBLIC -//W3C//DTD HTML 4.01//EN http://www.w3.org/
TR/html4/strict.dtd
html

head

title/title
meta http-equiv=Content-Type content=text/html;
charset=ISO-8859-1

  style type=text/css
  input { width : 700px ; }

  /style

 script type = text/javascript src=jquery.js/script
 script type = text/javascript

$(document).ready(function()
{
  $(':text').blur(function(event)
  {
  if (!$(event.target).is(':text'))
  { $(this).focus() }
  });

});

 /script

/head

body

ul
liclick here/li
lior click here/li
/ul

br br

form

 input type='text' class='test' value='these text boxes should retain
the focus when another element type is clicked' brbr
 input type='text' value='these text boxes should retain the focus
when another element type is clicked' brbr
 input type='text'   value='these text boxes should retain the focus
when another element type is clicked' id='focusHere' br

/form

/body

/html








[jQuery] Text Animation Plug-in?

2008-01-16 Thread Rick Faircloth
A few weeks back I saw a new plug-in that would
animate text.  I experimented with it and found it
had great potential.

I usually reference somewhere, but I can't find
anything I saved about it anywhere.

Couldn't find it in the plug-in repo, either.

Anyone know what I referring to?

Thanks,

Rick


[jQuery] Text finder in html

2007-11-06 Thread syg6

I am trying to create a javascript-based text finder using jQuery. I
have a table like this:

table id=dataTable
 tr
  td
   data 1
  /td
 /tr
 tr
  td
   data 2
  /td
 /tr
 tr
  td
   data 3
  /td
 /tr
/table

And I would like to be able to search for a text in any of the tds
and highlight it. I tried something like this:

function find()
{
 text = jQuery(#findText).val();
 columns = jQuery(table#dataTable td);

 for (i=0; icolumns.length; i++)
 {
  if (columns[i].innerHTML.indexOf(text) != -1)
  {
   jQuery(columns[i]).addClass(test);
  }
}

I have defined the test style like this:

style type=text/css
a.test { font-weight: bold; }
/style

When I run the script it does nothing. Not sure why. I've debugged it.
jQuery(columns[i]) is an [Object] that has all the normal jQuery
functions -- addClass(), append(), etc. but when I call any of them
nothing happens.

Can someone tell me what I am doing wrong?

Thanks!
Bob



[jQuery] Text Flickering/Distorting with Drop Down Menu (Superfish Javascript)

2007-11-02 Thread Keith

The rollovers and drop down items on my menu are causing the text on
my site to distort and move. Not only the text in the menu, but also
text underneath it, which I don't understand at all. Right now I am
using the Superfish menu and the problem mainly occurs in Firefox:
http://www.keithmuth.net/centennial/tests/

Please let me know if there is a fix for this, it is really
distracting and looks terrible. I've been told that it is the way
Firefox handles the alpha channel, but wasn't sure if there is a
solution. Also, if anyone has another horizontal menus like this one,
please let me know. I could do it in CSS but would like to have a nice
slide and/or fade transition like the Superfish menu offers.

Thanks,
Keith



[jQuery] Text manipulation on a menu

2007-09-13 Thread dogslife

I'm using a vertical menu and trying to add a text arrow  to the
menu item if it's on level 1 or 2, but not level 3. The following code
works, but it just keeps appending after each hover event. What's the
best way to do this kind of manipulation?

Thanks.

jQuery
---
$(ul.nav li a).hover(function() {
$(this).append(nbsp;#9002;);
});

HTML

ul class=nav
lia href=#Level 1/a
ul
li
a href=#Level 2/a
ul
lia href=#Level 3/a/li
/ul
/li
/ul
/li
/ul



[jQuery] Text node selector?

2007-08-10 Thread Jed Schmidt

I'm just starting to dig into jQuery, and was wondering whether anyone
would have an idea how to implement a selector that would return text
nodes.

For example, something like #text, which is Mozilla's name for text
nodes[1], or text(), which is an xpath selector[2] (realizing of
course that the former would overlap lookups by node ID).

This would allow folks to do something like $(#text).wrap(span/
span), to wrap all text nodes in a span. I understand that allowing
users to select text nodes may be dangerous, since some jQuery methods
would not be possible on selected text nodes without modification
(such as addClass, et cetera). But I would love to give a shot at
implementing this as a plug-in, since I think it fits well with
jQuery's idea of putting a lot of the smarts in selectors, not
functions. Since characters : text :: nodes : node list, I think a lot
of the existing logic could be re-used (allowing, for example, :first-
child to return the first character of a text node).

Is this possible? Or is it undesirable for some reason (speed/
complexity)? My alternative for now is to crawl the DOM and put every
character in it's own span node, so any ideas/feedback would be
appreciated.

Jed Schmidt

[1] http://developer.mozilla.org/en/docs/DOM:element.nodeName#Notes
[2] http://www.w3.org/TR/xpath#node-tests



[jQuery] Text Box readonly

2007-07-31 Thread Learner

I am writing a small script at the moment that requires a text box to
be readonly for a period of time and once that time is up then I want
to remove the readonly attribute, is there a way to allow this to
happen after a duration of time has passed or after an event has
happened.

jQuery(document).ready(function($) {
$(input).attr(readonly, readonly);
$(input).removeAttr(readonly);
});

not sure how to delay the removeAttr event for a duration of time as I
can only find a delay in the effects area.

Thankyou for your help



[jQuery] Text Box readonly

2007-07-31 Thread Learner

I am writing a small script at the moment that requires a text box to
be readonly for a period of time and once that time is up then I want
to remove the readonly attribute, is there a way to allow this to
happen after a duration of time has passed or after an event has
happened.

jQuery(document).ready(function($) {
$(input).attr(readonly, readonly);
$(input).removeAttr(readonly);
});

not sure how to delay the removeAttr event for a duration of time as I
can only find a delay in the effects area.

Thankyou for your help



[jQuery] text() concatenation

2007-07-04 Thread XASD

Is there optimal way to concatenate separate text nodes returned by
text() for several nodes using particular character/string?I'm
interested in some kind of text()/js string.join(,) combination,it
would be nice to have array of text node values instead of
preconcatenated ones from text() function.

Thanks.



[jQuery] Text Button

2007-05-22 Thread james_027

Hi,

Is this the best way to make a text button?

a href=#Click Me!/a

It's nice that even with using a href=# jquery could make almost
any tag to have click event, but the problem is the cursor doesn't
indicate that it's clickable.

Thanks in advance for any tips, suggestion, guides

cheers,
james



[jQuery] Text Replacement with Luteman´s Flash Plugin [Character-Problem]

2007-05-16 Thread Alexander Farkas


Hi,

I use Luteman´s Flash Plugin for Text Replacement. But the script has 
some problems with several special characters, especally with (german) 
vowel mutations (ä,ö,ß etc.), even if i embed more charcters to the 
flash-file, it does not work. The character encoding of my website is 
ISO-8859-1. does someone have a solution?


thx.
alex


[jQuery] Text Highlighting from Search

2007-05-13 Thread Glen Lipka

I have a search which yields a URL like this: (searching for [jets daniel])
http://www.commadot.com/index.php?s=jets+danielsearchsubmit=Searchhttp://www.commadot.com/index.php?s=Jetssearchsubmit=Search

I also have a span ID=searchterm with the contents of jets daniel on
the page.

Looking for a jQuery way or plugin to highlight all the matching words. (i.e.
pick them out of the text and add a span class=highlight around them)

Any plugins I should start with?  Anyone do similar suff before?

Glen


[jQuery] Text editer suite in jquery

2007-05-08 Thread Sharique

Is there any text editor (like FCKEditor) build using jquery.
If not then why shouldn't build it.
-
Sharique