[jQuery] jqModal hash undefined

2009-05-20 Thread rayfidelity

Hi,

I'm having problems with hash

$("a.iwmodal").live("click",function(event){
event.preventDefault();
var target = $("#infowindow");
target.jqm({
ajax: $(this).attr("href"),
trigger: $(this),
modal: true,
overlay: 60,
onLoad: modal_options,
onHide: function(hash) {
hash.w.fadeOut("200",function(){
hash.o.remove();
target.html("");
});
}
}).jqmShow(); ;
});

var modal_options = function(hash){
alert(hash.t);
}

I always get hash.t is undefined. Please help. i need to pass trigger
to "modal_options". And hash won't work.

Thank you


[jQuery] Re: Show hide and print

2009-03-04 Thread rayfidelity

Jquery show or fadein overrides the print stylesheet that's the whole
problem.

On Mar 4, 2:56 pm, Sean O  wrote:
> You're best served doing that simply with a CSS print stylesheet.
>
> Just add:
> 
> and set all elements you don't want to print to "display: none".
>
> Here's an Oldie-but-Goodie guide to creating a nice 
> one:http://www.alistapart.com/articles/goingtoprint/
>
> HTH,
> SEAN Ohttp://www.sean-o.comhttp://twitter.com/seanodotcom
>
>
>
> rayfidelity wrote:
>
> > Hi,
>
> > I have a problem, I have an element which I show (let's say fadein
> > ("slow")) on certain action (it's set on display:none in CSS).
>
> > The problem is that i want to print that page without that
> > element...how can i do that... fadein, show,... all set the element on
> > display:block which means the element will apper no matter what.
>
> > I've tried something like this
>
> > $("#gototop").attr("style","@media print{display:none;}");
>
> > I wan't the element to be seen on screen, but not for printing!
>
> > but it doesen't work...
>
> > Thank,
>
> > BR
>
> --
> View this message in 
> context:http://www.nabble.com/Show-hide-and-print-tp22327863s27240p22330446.html
> Sent from the jQuery General Discussion mailing list archive at Nabble.com.


[jQuery] Show hide and print

2009-03-04 Thread rayfidelity

Hi,

I have a problem, I have an element which I show (let's say fadein
("slow")) on certain action (it's set on display:none in CSS).

The problem is that i want to print that page without that
element...how can i do that... fadein, show,... all set the element on
display:block which means the element will apper no matter what.

I've tried something like this

$("#gototop").attr("style","@media print{display:none;}");

I wan't the element to be seen on screen, but not for printing!

but it doesen't work...

Thank,

BR


[jQuery] animate problem

2008-07-16 Thread rayfidelity

Hi,

I'm currently using:

$("#msg").empty().prepend('It works!').show("slow").animate({opacity: 1.0}, 5000).fadeOut("slow");

But the problem is, that it's still showing (for the specified 5000ms)
after i invoke new action which should display something different
than "It works!" instead waiting for 5000ms and then showing new msg.

How can i stop the previous animate to make place for the new msg?

Thanks,
BR


[jQuery] flashing/blinking effect

2008-04-08 Thread rayfidelity

Hi,

i want to create flashing/blinking effect but i'm having trouble with
it. I know that the core effects are very limited...but still...

i managed to create something to my liking with $
(".element").css({backgroundColor:"#ff"}).fadeOut("slow")

but if i want it to just flash and not disappear so i have to
add .fadeIn("slow")

but i want to hide the background color which i've set...after about
2-3 seconds...can i do that? how?

Thanks,
BR


[jQuery] Re: jQModal reload..how?

2008-04-08 Thread rayfidelity

Anyone? is it possible at all?

On Apr 8, 11:08 am, rayfidelity <[EMAIL PROTECTED]> wrote:
> Hi,
>
> Is it possible to reload the contents of a modal (jQModal) window
> without closing and opening it again? The content is loaded via get
> (default) i want the modal window to reload the same url...
>
> Thanks,
> BR


[jQuery] jQModal reload..how?

2008-04-08 Thread rayfidelity

Hi,

Is it possible to reload the contents of a modal (jQModal) window
without closing and opening it again? The content is loaded via get
(default) i want the modal window to reload the same url...

Thanks,
BR


[jQuery] Re: toggle disables links - unwanted

2008-02-25 Thread rayfidelity

Tried, it doesn't work...

On Feb 25, 1:10 pm, Ariel Flesler <[EMAIL PROTECTED]> wrote:
> Try the latest jQuery (1.2.3) which removed .toggle(), and use the
> mouseenter/mouseleave. Maybe it works then.
>
> Ariel Flesler
>
> On Feb 25, 7:52 am, Sandeep <[EMAIL PROTECTED]> wrote:
>
> > Thanks!
>
> > On Mon, Feb 25, 2008 at 4:18 PM, rayfidelity <[EMAIL PROTECTED]> wrote:
>
> > > Hi,
>
> > > Does anyone have a solution? the toggle part works fine it just
> > > disables all my links in the table...
>
> > > On Feb 24, 11:10 pm, rayfidelity <[EMAIL PROTECTED]> wrote:
> > > > Hi,
>
> > > > I have a problem with mytogglefunction...it disables all the links
> > > > in thetr(when i click on the link it just changes the color of
> > > thetr)...How do i fix it?
>
> > > > $(".table_datatr").toggle(
> > > > function(){
>
> > > $(this).css("background-color","#FEFFAF");
> > > > },
> > > > function(){
> > > > $(this).css("background-color","#FFF");
> > > > }
> > > > );
>
> > > > Thanks!
>
> > > > BR
>
> > --
> > Best Regards,
> > Sai Sandeep Thota.- Hide quoted text -
>
> > - Show quoted text -


[jQuery] toggle disables links - unwanted

2008-02-25 Thread rayfidelity

Hi,

Does anyone have a solution? the toggle part works fine it just
disables all my links in the table...

On Feb 24, 11:10 pm, rayfidelity <[EMAIL PROTECTED]> wrote:
> Hi,
>
> I have a problem with mytogglefunction...it disables all the links
> in thetr(when i click on the link it just changes the color of thetr)...How 
> do i fix it?
>
> $(".table_datatr").toggle(
> function(){
> $(this).css("background-color","#FEFFAF");
> },
> function(){
> $(this).css("background-color","#FFF");
> }
> );
>
> Thanks!
>
> BR


[jQuery] tr background toggle

2008-02-24 Thread rayfidelity

Hi,

I have a problem with my toggle function...it disables all the links
in the tr (when i click on the link it just changes the color of the
tr)...How do i fix it?

$(".table_data tr").toggle(
function(){
$(this).css("background-color","#FEFFAF");
},
function(){
$(this).css("background-color","#FFF");
}
);

Thanks!

BR


[jQuery] Re: jqmodal nested ajax

2008-02-22 Thread rayfidelity

If you would look at the demo you would see, that the demo is not
nested ajax...the first modal is ajax but the second isn't i need the
second one to be ajax too...

On Feb 22, 3:46 pm, Tom <[EMAIL PROTECTED]> wrote:
> Check out section 3 [ AJAX RELATED ] of the documentation 
> athttp://dev.iceburg.net/jquery/jqModal/README
>
> A Nested Modal demo can be found herehttp://dev.iceburg.net/jquery/jqModal/
> I have never used it myself but I assume that you can just add ajax as
> a parameter to the second nested jqm call?
>
> Or have I taken you up wrong?
>
> Tom
>
> On Feb 22, 1:07 pm, rayfidelity <[EMAIL PROTECTED]> wrote:
>
> > Hi,
>
> > Is it possible?? the plugin page doesn't have an example of this...Or
> > is it at least possible to replace the current modal content with
> > another ajax content in the opened modal (only one modal...not
> > nested)...How?
>
> > Thanks!
>
> > BR


[jQuery] jqmodal nested ajax

2008-02-22 Thread rayfidelity

Hi,

Is it possible?? the plugin page doesn't have an example of this...Or
is it at least possible to replace the current modal content with
another ajax content in the opened modal (only one modal...not
nested)...How?

Thanks!

BR


[jQuery] simplemodal and datepicker

2008-01-30 Thread rayfidelity

Hi,

I want to enable datepicker in the modal window that
opens...datepicker works fine for itself but i cannot get it to work
in modal. Any ideas?

Modal window is loaded through ajax...


[jQuery] Re: filter selects and get value...how?

2008-01-21 Thread rayfidelity

Glen Thank you, but i know how to get value from a single selecti
need to get the value from the filtered select, because there will be
many of them. The filtered part is working for me...but not the get
value part...your code isn't working...

yes i have multiple selects and more of them can have value but at
least one (in a row) has to have value selected...they're in a row
which i clone...you can then fill a row at a time...selects are just
plain selects

here's the code

$(".fields tr").each(function(){
var $inputs = $('input',this);
var qty =
$inputs.filter("[name='qty[]']").children("option:selected").attr("value");
...
}


On Jan 22, 12:03 am, Hamish Campbell <[EMAIL PROTECTED]> wrote:
> Can you show the source of the selects, because the description is a
> little confusing. You have array of selects? So multiple selects, but
> only one has a value at any one time? Or do you have a multi-selection
> select and hence you're trying to find the _options_ that are
> selected?
>
> On Jan 22, 11:43 am,rayfidelity<[EMAIL PROTECTED]> wrote:
>
> > Hi,
>
> > I have array of selects, and i filter them with:
> > $inputs.filter("[name='qty[]']"). I want to get selected value. But i
> > don't know how...
>
> > I tried with:
>
> > $inputs.filter("[name='qty[]']").filter("select
> > option:selected").val();
> > $inputs.filter(function(){"[name='qty[]']" && "select
> > option:selected"}).val();
>
> > And some other things...but without success...can anyone help?


[jQuery] filter selects and get value...how?

2008-01-21 Thread rayfidelity

Hi,

I have array of selects, and i filter them with:
$inputs.filter("[name='qty[]']"). I want to get selected value. But i
don't know how...

I tried with:

$inputs.filter("[name='qty[]']").filter("select
option:selected").val();
$inputs.filter(function(){"[name='qty[]']" && "select
option:selected"}).val();

And some other things...but without success...can anyone help?


[jQuery] reset cloned

2008-01-21 Thread rayfidelity

Hi,

Is there an easy way to reset the cloned input fields (text and
select) after they're cloned (preserving the parents value)?

Thanks


[jQuery] remove tr

2007-11-22 Thread rayfidelity

Hi,

I have a cloned row(s) and a function to remove selected cloned row

function remove_row(){
$('a.remove').click(function(){
$(this).parents("tr").remove();
});
}

the problem is that i have to click twice on the link before anything
happens (deletes row) and i don't know why...it works after that...so
to delete first row i have to click twice on the link to remove the
second row i can click only once...it doesn't matter which row i try
to remove...

the link is:


...

delete row



[jQuery] Re: each help

2007-11-18 Thread rayfidelity

THANK YOU

I've been struggling with this last 4 days! Thank you very much!

On Nov 17, 8:42 pm, Flesler <[EMAIL PROTECTED]> wrote:
> Since jQuery 1.2, [EMAIL PROTECTED] was replaced for [attr=value] that
> could be.. anyway you can do: $('input:text')
>
> also, I think what you meant was:
>
> function test(){
>  $("div.row").each(function(){//div.row must match the rows that
> contain each set.
> var $inputs = $('input',this);
> var price = $inputs.filter("[name='price[]']").val();
> var qty = $inputs.filter("[name='qty[]']").val();
>     $inputs.filter("[name='row_sum[]']").val( price * qty )
>  });
>
> }
>
> Ariel Flesler
>
> On Nov 15, 7:51 pm, rayfidelity <[EMAIL PROTECTED]> wrote:
>
> > Hi,
>
> > I have this in each row (a couple of rows...)
>
> >  > onkeyup="javascript:test();" />
> >  > onkeyup="javascript:test();" />
> > 
>
> > i'd like to calculate the data
>
> > function test(){
> > $("[EMAIL PROTECTED]").each(function(i){
> > var price = $("[EMAIL PROTECTED]'price[]']").val();
> > var qty = $("[EMAIL PROTECTED]'qty[]']").val();
> >res = price * qty;
> > $("[EMAIL PROTECTED]'row_sum[]']").val(res);
>
> > });
> > }
>
> > but the function doesn't function ;) Help anyone? someone?


[jQuery] Re: Select change event on item 1 not firing

2007-11-17 Thread rayfidelity

Try

$('#residentsSelect').change(function(){
 document.location.href=$("#residentsSelect
[EMAIL PROTECTED]").val();
 return false;
});


On Nov 16, 5:48 pm, II <[EMAIL PROTECTED]> wrote:
> Hello,
>
> I have the following  http://richmondshire.riverprojex.com/page   the
> select boxes are wired upto change event.  When user picks item the page
> redirects. The issue is for some reason the first item does not trigger the
> change event.  My code looks like this
>
> $('#residentsSelect').change(function(){
>  document.location.href=$('#residentsSelect option:selected').val();
>  //have to do this to stop the post back which occurs
>  return false;
>
> });
>
> Any ideas?
> --
> View this message in 
> context:http://www.nabble.com/Select-change-event-on-item-1-not-firing-tf4822...
> Sent from the jQuery General Discussion mailing list archive at Nabble.com.


[jQuery] each help

2007-11-15 Thread rayfidelity

Hi,

I have this in each row (a couple of rows...)





i'd like to calculate the data

function test(){
$("[EMAIL PROTECTED]").each(function(i){
var price = $("[EMAIL PROTECTED]'price[]']").val();
var qty = $("[EMAIL PROTECTED]'qty[]']").val();
   res = price * qty;
$("[EMAIL PROTECTED]'row_sum[]']").val(res);
});
}

but the function doesn't function ;) Help anyone? someone?


[jQuery] row clone and calculation

2007-11-14 Thread rayfidelity

Hi,

I have a table with input fields (array of them)...i can add new rows
through clone...the problem is that i would like to calculate the
numbers in the fields and display the sum at the end (both row sum and
final sum) and i don't know how.

Here's what i got:

function calc(){
var price = $("[EMAIL PROTECTED]'price[]']").val();
var qty = $("[EMAIL PROTECTED]'qty[]']").val();
res = price * qty;
$("[EMAIL PROTECTED]'row_sum[]']").val(res);

var sum = $("input:disabled").sum();
$(".sum").text(sum);
}

The function is called on input keyup. Row sum is shown in the
disabled input...

Obviously this doesn't work when i add a row...it only works for the
first row which is hardcoded...

Thanks in advance!



[jQuery] auto scrool

2007-08-23 Thread rayfidelity

Hi,

I have to find a solution for auto scroll. I'm thinking of an iframe
and a script which would scroll a page without user interaction. When
it would reach the end of the document (page) it would start again
from the top (or go backwards up). Has anyone found something similar?

Thanks!

BR



[jQuery] Re: Sortables (interface plugin)

2007-07-24 Thread rayfidelity

So what would be an alternative (if there is one)? Any suggestions on
how to easily implement this feature?

On Jul 24, 4:26 pm, "Richard D. Worth" <[EMAIL PROTECTED]> wrote:
> It's not going to be super easy as there's no built-in support for nested
> sortables in Interface. The accept option may help. I haven't tested it, but
> even if it worked, I'm guessing it would require a unique class name on all
> LIs of each sortable UL. One work-around I've used before:
>
> Call .Sortable() on only the parent UL (and maybe SortableAddItem on the
> LIs) at the moment you want to begin sorting its children (I've done it with
> a context menu, can be accomplished by other means - perhaps
> draggable.onStart). Then destroy the sortable when sorting in that list is
> done. This way only one list is sortable at a time.
>
> - Richard
>
> On 7/23/07, rayfidelity <[EMAIL PROTECTED]> wrote:
>
>
>
> > Hello,
>
> > I have a nested list and i'd like to lock the sortable option to the
> > each level (so that it wouldn't be possible to drag the selected
> > element to the another level).
>
> > I was looking at the documentation on the interface plugin site
> > (http://interface.eyecon.ro/docs/sort) but i didn't find such an
> > option...
>
> > Does anywan know if this is possible?
>
> > I'm also wondering how to submit the resorted list?



[jQuery] Sortables (interface plugin)

2007-07-23 Thread rayfidelity

Hello,

I have a nested list and i'd like to lock the sortable option to the
each level (so that it wouldn't be possible to drag the selected
element to the another level).

I was looking at the documentation on the interface plugin site
(http://interface.eyecon.ro/docs/sort) but i didn't find such an
option...

Does anywan know if this is possible?

I'm also wondering how to submit the resorted list?



[jQuery] Re: form plugin

2007-07-03 Thread rayfidelity

Thanks!!!

On Jul 3, 4:46 am, "Mike Alsup" <[EMAIL PROTECTED]> wrote:
> rayfidelity,
>
> The form plugin lets you do whatever you need to do with the result.
> What type of response are you getting and what do you want to do with
> it?  The success handler you pointed out is passed the response value,
> and you can use it any way you wish.  For example:
>
> success: function(response) {
> if (response == "ok") // <-- check whatever you need here
> $('#mySubmit')[0].disabled = true;
>
> }
>
> Mike
>
> On 7/2/07,rayfidelity<[EMAIL PROTECTED]> wrote:
>
>
>
> > Hi,
>
> > I have a question about the form plugin. I'd like to reuse the data,
> > that's returned from the submited form.
>
> > The form posts to the process.php, and the the process.php returns the
> > msg. In stead of just displaying the returned data i'd like to check
> > what it is. Why? Because i'm validating the data in tje process.php
> > file and if the submit is successfully i'd like to disable the submit
> > button so that resubmit cannot happen.
>
> > I don't know how to do that. the form plugin has just the option for
> > displaying the result...but how to reuse the result?
>
> > success: function(){
> > $("#msg-container");
> > }



[jQuery] form plugin

2007-07-02 Thread rayfidelity

Hi,

I have a question about the form plugin. I'd like to reuse the data,
that's returned from the submited form.

The form posts to the process.php, and the the process.php returns the
msg. In stead of just displaying the returned data i'd like to check
what it is. Why? Because i'm validating the data in tje process.php
file and if the submit is successfully i'd like to disable the submit
button so that resubmit cannot happen.

I don't know how to do that. the form plugin has just the option for
displaying the result...but how to reuse the result?

success: function(){
$("#msg-container");
}



[jQuery] Is there a way...

2007-06-29 Thread rayfidelity

i don't know how to explain. It's like this




...

When i click on the link, i call jquery ajax and do something.

Can jquery change the img (so that it would give response from ajax)
even though the images are the same and they are all in the same
class? Or do i have to assign a unique class to each image or wrapper?



[jQuery] Re: Radio button

2007-06-21 Thread rayfidelity

Nope.

Eh too much. I'll stick to marking just the radio button. I've already
taken too much of your time.

Thank you very much!

On Jun 21, 7:53 pm, Klaus Hartl <[EMAIL PROTECTED]> wrote:
> rayfidelity wrote:
> > Hmm the removeclass part doesn't seem to work, when i click on the
> > other radio button the previous stays red...
>
> > On Jun 21, 7:27 pm, Klaus Hartl <[EMAIL PROTECTED]> wrote:
> >> rayfidelity wrote:
> >>> Klaus thanks it works!
> >>> Since you made a great suggestion, here's the thing
> >>> it's like this
> >>> 
> >>>bla bla
> >>>bla bla 2
> >>> 
> >>> i'd actually like to change the background of the list item, so how do
> >>> i append the class to the appropriate list item?
> >> Try this:
>
> >> $(document).ready(function() {
> >>  $("[EMAIL PROTECTED]'section']").click(function(){
> >>  $(this).parent()[this.checked ? 'addClass' :
> >> 'removeClass']('checked');
> >>  });
>
> >> });
>
> >> li.checked {
> >>  background: red;
>
> >> }
>
> >> --Klaus
>
> Stupid me, try this:
>
> $(document).ready(function() {
>  $("[EMAIL PROTECTED]'section']").click(function() {
>  $(this).parent()[this.checked ? 'addClass' :
> 'removeClass']('checked').siblings().removeClass('selected');
>  });
>
> });
>
> No more elegance any longer...
>
> --Klaus



[jQuery] Re: Radio button

2007-06-21 Thread rayfidelity

Thanks Klaus!

I owe you a beer ;)

On Jun 21, 7:27 pm, Klaus Hartl <[EMAIL PROTECTED]> wrote:
> rayfidelity wrote:
> > Klaus thanks it works!
>
> > Since you made a great suggestion, here's the thing
>
> > it's like this
>
> > 
> >bla bla
> >bla bla 2
> > 
>
> > i'd actually like to change the background of the list item, so how do
> > i append the class to the appropriate list item?
>
> Try this:
>
> $(document).ready(function() {
>  $("[EMAIL PROTECTED]'section']").click(function(){
>  $(this).parent()[this.checked ? 'addClass' :
> 'removeClass']('checked');
>  });
>
> });
>
> li.checked {
>  background: red;
>
> }
>
> --Klaus



[jQuery] Re: Radio button

2007-06-21 Thread rayfidelity

Hmm the removeclass part doesn't seem to work, when i click on the
other radio button the previous stays red...

On Jun 21, 7:27 pm, Klaus Hartl <[EMAIL PROTECTED]> wrote:
> rayfidelity wrote:
> > Klaus thanks it works!
>
> > Since you made a great suggestion, here's the thing
>
> > it's like this
>
> > 
> >bla bla
> >bla bla 2
> > 
>
> > i'd actually like to change the background of the list item, so how do
> > i append the class to the appropriate list item?
>
> Try this:
>
> $(document).ready(function() {
>  $("[EMAIL PROTECTED]'section']").click(function(){
>  $(this).parent()[this.checked ? 'addClass' :
> 'removeClass']('checked');
>  });
>
> });
>
> li.checked {
>  background: red;
>
> }
>
> --Klaus



[jQuery] Re: Radio button

2007-06-21 Thread rayfidelity

Klaus thanks it works!

Since you made a great suggestion, here's the thing

it's like this


   bla bla
   bla bla 2


i'd actually like to change the background of the list item, so how do
i append the class to the appropriate list item?

On Jun 21, 6:47 pm, Klaus Hartl <[EMAIL PROTECTED]> wrote:
> Mike Alsup wrote:
>
> > This should work:
>
> > $(document).ready(function() {
> >$("[EMAIL PROTECTED]'section']").click(function(){
> >$(this).css('background', this.checked ? 'red' : '');
> >})
> > });
>
> On top of that I'd like to suggest a better separation of the
> presentational aspect. It's the responsibility of CSS to make things
> look somehow, thus I would expect that information in a style sheet:
>
> $(document).ready(function() {
>  $("[EMAIL PROTECTED]'section']").click(function(){
>  $(this)[this.checked ? 'addClass' : 'removeClass']('checked');
>  });
>
> });
>
> input.checked {
>  background: red;
>
> }
>
> --Klaus



[jQuery] Re: Radio button

2007-06-21 Thread rayfidelity

Thanks but it doesn't work.

On Jun 21, 6:39 pm, "Mike Alsup" <[EMAIL PROTECTED]> wrote:
> This should work:
>
> $(document).ready(function() {
> $("[EMAIL PROTECTED]'section']").click(function(){
> $(this).css('background', this.checked ? 'red' : '');
> })
>
> });
> > Here's what i came up with, but it doesn't work.
>
> > $(document).ready(function() {
> > $("[EMAIL PROTECTED]'section']").click(function(){
> > $("[EMAIL PROTECTED]'section']:checked").val() == 1 ? $
> > ("[EMAIL PROTECTED]'section']:checked").css("background","red") : "";
> > });
> > }
> > )



[jQuery] Radio button

2007-06-21 Thread rayfidelity

Hi,

I have a problem, i'd like to mark the radio button that's checked.
Here's what i came up with, but it doesn't work.

$(document).ready(function() {
$("[EMAIL PROTECTED]'section']").click(function(){
$("[EMAIL PROTECTED]'section']:checked").val() == 1 ? $
("[EMAIL PROTECTED]'section']:checked").css("background","red") : "";
});
}
)

Can anyone please give me some pointers? i'm new to jquery and i'm
still struggling. Thanks in advance