Re: re[jQuery] fresh tabs

2010-02-22 Thread whynotter

Hi Nathan,

here two pages:
http://www.deboramontoli.it/prova/mediacenter_prova1.shtml page 1 
http://www.deboramontoli.it/prova/mediacenter_prova2.shtml page 2 

The first one is without tabs and the script is correct, while in the second
one there are two tabs and the script crashes.

Have you any suggest about that?

After that I need to insert a lot of tabs, each with a scroll and some video
load dynamically, so the jQuery script have to be just a one.


Thanks a lot






Nathan Klatt-2 wrote:
 
 Perhaps you could point us to your page? Or set up an example at
 jsbin.com or something?
 
 Nathan
 
 

-- 
View this message in context: 
http://old.nabble.com/refresh-tabs-tp27676891s27240p27684084.html
Sent from the jQuery General Discussion mailing list archive at Nabble.com.



Re: re[jQuery] fresh tabs

2010-02-22 Thread stworthy

Using  http://jquery-easyui.wikidot.com jquery-easyui  tabs plugin, the tabs
panel will refresh automatically.

Example:
div class=easyui-tabs style=width:400px;height:100px;
div title=First Tab style=padding:10px;
First Tab
/div
div title=Second Tab closable=true style=padding:10px;
Second Tab
/div
div title=Third Tab icon=icon-reload closable=true
style=padding:10px;
Third Tab
/div
/div

Output:
http://old.nabble.com/file/p27685351/tabs.png 


whynotter wrote:
 
 Hi,
 I have a page with some scroll-img with jquery code.
 
 Each scroll-img are in different tabs, but the jquery code is the same for
 all tabs.
 
 If I have just a scroll, the code is ok, but when I put 4 scroll in
 different tabs, the code is not do well.
 How can I get the refresh of each tabs to avoid the problem of conflict
 jquery code?
 
 
 Thanks a lot
 Bye
 

-- 
View this message in context: 
http://old.nabble.com/refresh-tabs-tp27676891s27240p27685351.html
Sent from the jQuery General Discussion mailing list archive at Nabble.com.



Re: re[jQuery] fresh tabs

2010-02-22 Thread whynotter

Thanks for your replay but the problem is still happening :-(

I've just tried this plugin and the tabs work well, but the scroll images
have the same error.
I don't know how to do.

Thanks again



stworthy wrote:
 
 Using  http://jquery-easyui.wikidot.com jquery-easyui  tabs plugin, the
 tabs panel will refresh automatically.
 
 Example:
 div class=easyui-tabs style=width:400px;height:100px;
 div title=First Tab style=padding:10px;
 First Tab
 /div
 div title=Second Tab closable=true style=padding:10px;
 Second Tab
 /div
 div title=Third Tab icon=icon-reload closable=true
 style=padding:10px;
 Third Tab
 /div
 /div
 
 Output:
  http://old.nabble.com/file/p27685351/tabs.png 
 
 
 whynotter wrote:
 
 Hi,
 I have a page with some scroll-img with jquery code.
 
 Each scroll-img are in different tabs, but the jquery code is the same
 for all tabs.
 
 If I have just a scroll, the code is ok, but when I put 4 scroll in
 different tabs, the code is not do well.
 How can I get the refresh of each tabs to avoid the problem of conflict
 jquery code?
 
 
 Thanks a lot
 Bye
 
 
 

-- 
View this message in context: 
http://old.nabble.com/refresh-tabs-tp27676891s27240p27685649.html
Sent from the jQuery General Discussion mailing list archive at Nabble.com.



[jQuery] tooone7 Can't understand this... Want to make a image appear on active link

2010-02-22 Thread tooone777

Hi everyone!

I started using jQuery yesterday so im a noob.

I have a navigation bar, and i want it to display a background image on the
active menu item. (Like the top most menu on this website, it has a little
blue underline)

So i got this function:

Copy code

   1. function displayBgImg() {
   2. for (var i=0; i$(ul#nav_prim a).length; i++) {
   3. if ($(ul#nav_prim a)[i].href == document.URL) {
   4. $(ul#nav_prim a)[i].css(background-image,
url(images/nav_bg.gif));
   5. }
   6. }
   7. }


Line 2: It loops though all the   tags in an UL with id nav_prim. (The  
tags are inside of li's in the ul.

Line 3: I check to see if the   tag's href atribute is the same as the URL
of the page, if it is

Line 4: i want that specific   tag's background-image to be
images/nav_bg.gif.

I can't get it to work. In firefox i get the error  $(ul#nav_prim
a)[i].css is not a function.

Why is that? Can anyone please help me? As i've said im new to jQuery and
Javascript in general aswell.

Thanks for any advice :)
-- 
View this message in context: 
http://old.nabble.com/tooone7-Can%27t-understand-this...-Want-to-make-a-image-appear-on-active-link-tp27686495s27240p27686495.html
Sent from the jQuery General Discussion mailing list archive at Nabble.com.



Re: [jQuery] tooone7 Can't understand this... Want to make a image appear on active link

2010-02-22 Thread Jonathan Vanherpe (T T nv)

tooone777 wrote:

$(ul#nav_prim a)[i]...


you need to use

$(ul#nav_prim a).eq(i)...
or
$(ul#nav_prim a:eq(+i+))...

Jonathan
--
Jonathan Vanherpe - Tallieu  Tallieu nv - jonat...@tnt.be


Re: [jQuery] tooone7 Can't understand this... Want to make a image appear on active link

2010-02-22 Thread tooone777



Jonathan Vanherpe (T amp; T NV) wrote:
 
 tooone777 wrote:
 $(ul#nav_prim a)[i]...
 
 you need to use
 
 $(ul#nav_prim a).eq(i)...
 or
 $(ul#nav_prim a:eq(+i+))...
 
 Jonathan
 -- 
 Jonathan Vanherpe - Tallieu  Tallieu nv - jonat...@tnt.be
 
 

I changed my code to the way you suggested, the error message is now gone
but the background image doesn't change.

However, if it looks like this:

function displayBgImg() {
for (var i=0; i$(ul#nav_prim a).length; i++) {
if ($(ul#nav_prim a)[i] == document.URL) {
$(ul#nav_prim a).eq(i).css(background-image,
url(images/nav_bg.gif));
}
}
}

it works!

Notice that i only have eq(i) on line 4 but not on line 3.

Do you mind explaining what's happening when i use .eq(i) instead of
[i]?

Thank you very much for the help Jonathan :)

-- 
View this message in context: 
http://old.nabble.com/tooone7-Can%27t-understand-this...-Want-to-make-a-image-appear-on-active-link-tp27686495s27240p27686800.html
Sent from the jQuery General Discussion mailing list archive at Nabble.com.



Re: [jQuery] tooone7 Can't understand this... Want to make a image appear on active link

2010-02-22 Thread Jonathan Vanherpe (T T nv)
$('selector')[index] returns the actual DOM element, while 
$('selector').eq(i) returns a jquery object (you can see a jquery object 
as some sort of a shell around the actual DOM node that the jquery 
functions work on).


You can only use the jquery .css() function on jquery objects, and not 
directly on DOM nodes. I think it's easiest to explain by using the 
console in firebug:
type $(ul#nav_prim a)[1] and $(ul#nav_prim a).eq(i) into the console 
and you'll see that firebug returns a slightly different result.


As for ($(ul#nav_prim a)[i]==document.URL), I don't think this is the 
proper way to do it, but if it works, great (just don't assume this will 
work in all browsers, test it first).


Jonathan

tooone777 wrote:




Jonathan Vanherpe (Tamp; T NV) wrote:


tooone777 wrote:

$(ul#nav_prim a)[i]...


you need to use

$(ul#nav_prim a).eq(i)...
or
$(ul#nav_prim a:eq(+i+))...

Jonathan
--
Jonathan Vanherpe - Tallieu  Tallieu nv - jonat...@tnt.be




I changed my code to the way you suggested, the error message is now gone
but the background image doesn't change.

However, if it looks like this:

function displayBgImg() {
for (var i=0; i$(ul#nav_prim a).length; i++) {
if ($(ul#nav_prim a)[i] == document.URL) {
$(ul#nav_prim a).eq(i).css(background-image,
url(images/nav_bg.gif));
}
}
}

it works!

Notice that i only have eq(i) on line 4 but not on line 3.

Do you mind explaining what's happening when i use .eq(i) instead of
[i]?

Thank you very much for the help Jonathan :)




--
Jonathan Vanherpe - Tallieu  Tallieu nv - jonat...@tnt.be


Re: [jQuery] tooone7 Can't understand this... Want to make a image appear on active link

2010-02-22 Thread tooone777

Ohh ok cool! Thank you Jonathan. I understand it better now :)

-- 
View this message in context: 
http://old.nabble.com/tooone7-Can%27t-understand-this...-Want-to-make-a-image-appear-on-active-link-tp27686495s27240p27687083.html
Sent from the jQuery General Discussion mailing list archive at Nabble.com.



Re: re[jQuery] fresh tabs

2010-02-22 Thread Nathan Klatt
On Mon, Feb 22, 2010 at 2:20 AM, whynotter deboramont...@hotmail.com wrote:
 http://www.deboramontoli.it/prova/mediacenter_prova2.shtml page 2

Check this out:

http://jsbin.com/ixiyo/3/edit

You will need to do some more data localization (I've done it for
currentPosition but left totalVideos and maxMove) but I think it
should have you on your way.

Nathan


[jQuery] UI Slider with group with shared limit

2010-02-22 Thread Sir Rawlins
Hello Guys,

I'm new to the UI library and looking for some help achieving a
certain thing. I want to have a group of sliders which have a shared
value which they can reach as a maximum. Here's a visual example of
what I'm looking to do:

http://tinypic.com/view.php?pic=9ibp05s=6

Notice how we have 100% in total that can be used by the 3 sliders, as
you slide up the number of available percent you have left to assign
should decrease, to the point where it reaches 0, you will then no
longer be able to slide any of the sliders upwards without first
sliding one or more downwards to free up available % to be assigned.

I suppose its very much like assigning XP in an RPG or something like
that, has anyone seen an example of the UI sliders being used like
this? I've been Googling the past 30 minutes and found nothing.

Thanks for your advice.

Robert


Re: re[jQuery] fresh tabs

2010-02-22 Thread whynotter

:-)
thanks a lot.
I've tried your script:
http://www.deboramontoli.it/prova/mediacenter_prova3.shtml

Now, when I choose a tab, each scroll is independent and keeps the correct
moment.

It hasn't stopped yet, but it's better than the last page.

Uff, I'm going ahead, it's an hard work.

Thanks again



Nathan Klatt-2 wrote:
 
 On Mon, Feb 22, 2010 at 2:20 AM, whynotter deboramont...@hotmail.com
 wrote:
 http://www.deboramontoli.it/prova/mediacenter_prova2.shtml page 2
 
 Check this out:
 
 http://jsbin.com/ixiyo/3/edit
 
 You will need to do some more data localization (I've done it for
 currentPosition but left totalVideos and maxMove) but I think it
 should have you on your way.
 
 Nathan
 
 

-- 
View this message in context: 
http://old.nabble.com/refresh-tabs-tp27676891s27240p27690116.html
Sent from the jQuery General Discussion mailing list archive at Nabble.com.



[jQuery] Re: Sortable list - even when list is changed

2010-02-22 Thread rafald
On 22 Lut, 03:43, Nathan Klatt n8kl...@gmail.com wrote:
 Hi Rafal,

 In what way does it not work? I transcribed your code into jsbin and
 it seems to be fine, though I don't have any roundbox styling being
 applied:

 http://jsbin.com/oququ3/edit

 Nathan

Hi

I am not surpised you don't get it rounded ;-) . I presented only part
of the code for rounded corners, because this is not my problem here
(anyway: if you need rounded check this: 
http://docs.jquery.com/Tutorials:Rounded_Corners
...and make sure you download images from the style as well.).

My problem is different:
Each time when the user sorts something, I would like to see what is
the current order of items. I need to trigger a code each time when
user moves something.

In other words: I do not see popup 'update' which I expect to see
(see : alert('update')  in my code above)

What could be wrong ?

regards
Rafal




[jQuery] Re: Sortable list - even when list is changed

2010-02-22 Thread rafald
ok...I see on you page it works...I double checked my code.
Here what happens

WHEN I replace THIS:
$(function(){
$(#elements).sortable();
$(#elements).disableSelection();
});
$(function() {
$(#accordion).accordion();
});
$(document).ready(function(){
$('#elements').sortable({
   update: function(event, ui) { alert('update') }
});
$(div.roundbox) .wrap('div class=dialog'+
'div class=bd'+
'div class=c'+
'div class=s'+
'/div'+
'/div'+
'/div'+
'/div');
$('div.dialog').prepend('div class=hd'+
'div class=c/div'+
'/div')
.append('div class=ft'+
'div class=c/div'+
'/div');
});


With code from your page:

$(function(){
$(#elements).sortable();
$(#elements).disableSelection();
});
$(function() {
$(#accordion).accordion();
});
$(document).ready(function(){
$('#elements').sortable({
   update: function(event, ui) { alert('update') }
});
$(div.roundbox) .wrap('div class=dialog'+
'div class=bd'+
'div class=c'+
'div class=s'+
'/div'+
'/div'+
'/div'+
'/div');
$('div.dialog').prepend('div class=hd'+
'div class=c/div'+
'/div')
.append('div class=ft'+
'div class=c/div'+
'/div');
});



...the it WORKS ;-)

but the problem is I need accordion as well.

For my code it is enough that I remove THIS part:
$(function(){
$(#elements).sortable();
$(#elements).disableSelection();
});
$(function() {
$(#accordion).accordion();
});

then it works

so I have to reorganize the code.

Could you advise me what will be the best solution here ?

regards
Rafal


[jQuery] jQuery Dialogbox Problem

2010-02-22 Thread patelneha...@gmail.com
Hello Everyone,

   I am new to jquery so i dont know much about it. I write a script
in which i am using the jquery's Dialog box UI on my form. The form is
about user search any product on our site and if the user in not
logged in then displaying him login dialog box otherwise showing
dialog box to save that search for future use and getting the title of
that search.

  Now everything working perfectly but i have a problem with jquery
that when i press CTRL+F5 it will reload the whole page and that time
it shows the form of the dialog box for a fraction of a second. Is
there any way to solve that problem???


[jQuery] Malsup Form: problem with upload of big files

2010-02-22 Thread Mj
Here I have a test page:
http://wmviking.ru/test/1.html

There is no problem to upload small files, but if I choose larger (for
example, 2MB) - upload crashes without normal execution. I put simple
and ajax upload on example to check that in one case it works
normally, and in another - crashes!

What is wrong, Mike? Help please...


[jQuery] Re: Can I use external domain with jQuery media plugin ?

2010-02-22 Thread Mike Alsup
 it is about jQuery media plugin (http://malsup.com/jquery/media/
 misc.html)

 Can I use

   a id=mike class=media {type: 'html'} href=http://www.google.co.in;

 This to load EXTERNAL DOMAIN html page in an iframe that media plugin
 I create.


Yes, this should work.  The media plugin just creates an iframe for
this content.


Re: [jQuery] Re: Sortable list - even when list is changed

2010-02-22 Thread Nathan Klatt
On Mon, Feb 22, 2010 at 11:10 AM, rafald rafdrepub...@gmail.com wrote:
 ok...I see on you page it works...I double checked my code.
 ...
 but the problem is I need accordion as well.

If you update the jsbin page to how you think it should be (i.e., add
the accordion) I'd be happy to look into what's wrong. :)

Go to the page I made: http://jsbin.com/oququ3/edit, make your edits,
save a New revision, then forward the link.

Nathan


Re: [jQuery] FOUND THE SOLUTION FOR ROUNDIES FOR IE8 !!!!!!

2010-02-22 Thread brian
SPECTACULAR NEWS!

So, um ... don't keep us in suspense.

On Sun, Feb 21, 2010 at 2:45 PM, Erik eriks...@mac.com wrote:
 For months I couldn't figure this out and I found the answer

 dd_roundies can now work with IE8!!!

 Erik



[jQuery] New Services

2010-02-22 Thread DOTS D.O.Technology Services
Looking for Virtual Office, TeleMarketing , Mobile Marketing, WebHosting and
Web Designing sloutions ?

We are here to provide all such solutions at very low price and best
quality.

To know about telemarketing promotion fpr your business SMS telepromo to
9220092200

To know more about sms marketing SMS smspromo and send it to 9220092200

To know about virtual office SMS Virtualoff to 9220092200


   To know more about web designing and hosting SMS webpromo to 9220092200