[jQuery] Ticket: [1758-5724031711]

2009-03-24 Thread InfiniteSkills Support Center

This message is to notify you that your ticket has been submitted.

Ticket ID: 1758-5724031711

Message:
--

Add the {async:false} option to your $.get. This tells JavaScript to
wait for the response before continuing with the rest of the script.
By default, AJAX is asynchronous.

On Mar 24, 4:13�am, aeg1s  wrote:
> I have the following code:
>
> $('#r_0_0').blur(function() {
>
> �var x = $('#r_0_0').val();
> � var y="#d_0";
> � $(y).empty();
> � $.get("apps/P5001/call/LineItems.lasso?LITM=" + x + "&Line=" +
> 'r_0_0' + "&TEST=" + y,function(data2){
> � $(y).empty();
> � $(y).append(data2);
> � },"html");
>
> � $('#addnew').click();
>
> });
>
> The last line "#addnew" is adding a new line to a html table, and the
> other code is updating a div with information from a database call. It
> is all processing correctly, except the "addnew" is running before the
> database query.
>
> How can I get the "addnew" to wait for the prior commands to finish?
--

To check the status of this ticket, visit:
http://www.infiniteskills.com/helpdesk/index.php?action=ticket&id=MTc1OC01NzI0MDMxNzEx&ide=anF1ZXJ5LWVuQGdvb2dsZWdyb3Vwcy5jb20=



[jQuery] Ticket: [1754-3524031711]

2009-03-24 Thread InfiniteSkills Support Center

This message is to notify you that your ticket has been submitted.

Ticket ID: 1754-3524031711

Message:
--

OK - let me please preface this by the fact that I am now 12 hours
into jQuery, with a pretty basic Javascript understanding, and years
of PHP work.  I could not find the answer to my questions, mostly
because I don't exactly know how to frame them!

I am creating a search with expandable results.  The search part I
have down just fine, I have a form submit button that executes a .load
function that drops the search results to a div.  So far so good -
this works wonders.  Now, what I am trying to accomplish and cannot,
is for a linked item in that returned data, to then show/hide
additional data passed through to it in a hidden div.

So my javascript is this:
$(document).ready(function(){
$("#sboid").click(function(){

$("#search_results").load("ajax.html",{order_id:$('#orderid').val
(),action:"digital_search"});
});
$("#vieworderdata").click(function() {
$("#order_logs").show("slow");
});
});

The return from the ajax.html page would be something like:

1234
2009-03-24
4456 - widget

Access Key: absdcef

2009-03-24 10:00:02
0.0.0.0
Disk Number: 1




That gets returned into the  in the
starting HTML page.

So, when I click on the a href in the returned data, in theory, that
hidden block will be displayed.  Not happening.  I am not sure if I am
not accessing it properly in the javascript above, or if it is not
working because it was not a part of the original page DOM, and cannot
be accessed?

Further to this, once THAT is working, there is an issue that there
may be MANY results returned, and how to reference the "a href" that
was clicked, to the hidden div to be displayed.  I can easily return
different div names, appending a running count to them
(vieworderdata1, vieworderdata2, vieworderdata3, etc), but how to
create the javascript code to say "the one I clicked on here is the
div hidden just below it..."

TIA for your help, and please go easy on a noob ;)

--

To check the status of this ticket, visit:
http://www.infiniteskills.com/helpdesk/index.php?action=ticket&id=MTc1NC0zNTI0MDMxNzEx&ide=anF1ZXJ5LWVuQGdvb2dsZWdyb3Vwcy5jb20=



[jQuery] Ticket: [1757-5724031713]

2009-03-24 Thread InfiniteSkills Support Center

This message is to notify you that your ticket has been submitted.

Ticket ID: 1757-5724031713

Message:
--

Friends,

I have two sliders on the page. One at the top right, and one at the
bottom right. I would like for them to work together. When one slider
opens the other one closes.

Daniel
--

To check the status of this ticket, visit:
http://www.infiniteskills.com/helpdesk/index.php?action=ticket&id=MTc1Ny01NzI0MDMxNzEz&ide=anF1ZXJ5LWVuQGdvb2dsZWdyb3Vwcy5jb20=



[jQuery] Ticket: [1749-6724031752]

2009-03-24 Thread InfiniteSkills Support Center

This message is to notify you that your ticket has been submitted.

Ticket ID: 1749-6724031752

Message:
--

Hello,

I have a 3-level menu using Superfish. I would like to hover over the
top-level menu item and have BOTH the 2nd and 3rd-level menus open
automatically. Any ideas?

Thanks in advance!
Jon
--

To check the status of this ticket, visit:
http://www.infiniteskills.com/helpdesk/index.php?action=ticket&id=MTc0OS02NzI0MDMxNzUy&ide=anF1ZXJ5LWVuQGdvb2dsZWdyb3Vwcy5jb20=



[jQuery] Ticket: [1753-3824031710]

2009-03-24 Thread InfiniteSkills Support Center

This message is to notify you that your ticket has been submitted.

Ticket ID: 1753-3824031710

Message:
--

OK, this is what I have.

Multiple lists that I can collapse and expand.

What I want is for them to only show x amount of items until I expand
them.

Say x = 2

In Section A the following would be shown
Link A-A
Link A-B

In Section B the following would be shown
Link B-A
Link B-B

etc.

And when I push a Section link it will show all





$(document).ready(function() {

$("#menu > li > a[class=expanded] + 
ul").slideToggle("medium");


$("#menu > li > a").click(function() {

$(this).toggleClass("expanded").toggleClass("collapsed").find("+
ul").slideToggle("medium");
});
});





Section A

Link A-A
Link A-B
Link A-C
Link A-D



Section B

Link B-A
Link B-B
Link B-C
Link B-D


Section C

Link C-A
Link C-B
Link C-C
Link C-D





--

To check the status of this ticket, visit:
http://www.infiniteskills.com/helpdesk/index.php?action=ticket&id=MTc1My0zODI0MDMxNzEw&ide=anF1ZXJ5LWVuQGdvb2dsZWdyb3Vwcy5jb20=



[jQuery] Ticket: [1755-7024031711]

2009-03-24 Thread InfiniteSkills Support Center

This message is to notify you that your ticket has been submitted.

Ticket ID: 1755-7024031711

Message:
--

I am kinda confused, and stranded.

If i create dragables with clones and drag them into a connected
sortable i can't find a way to get/interact with the objects clone.



dragable:
stop: function(event, ui) { ...}

nothing in "ui" points at the clone..



sortable however doesn't seem to offer a way either...

recieve: function(event, ui) { ...}

again "ui" doesnt point at the clone anywhere.. :(






--

To check the status of this ticket, visit:
http://www.infiniteskills.com/helpdesk/index.php?action=ticket&id=MTc1NS03MDI0MDMxNzEx&ide=anF1ZXJ5LWVuQGdvb2dsZWdyb3Vwcy5jb20=



[jQuery] Ticket: [1752-2524031710]

2009-03-24 Thread InfiniteSkills Support Center

This message is to notify you that your ticket has been submitted.

Ticket ID: 1752-2524031710

Message:
--

dear all,

i'm working with jQuery validation to validate the fields in a form.
in this form i have also the captcha (the check is verified through
ajax).
check the code below:

jQuery.validator.addMethod("Captcha",
function(value, element) {
jQuery.get("/captcha.asp?validateCaptchaCode=" +  jQuery
("#captchacode").val() + "", function(data){
if (data == 1)
{
result = true;
}
return true;
});
return this.required(element) || true;
});
--

To check the status of this ticket, visit:
http://www.infiniteskills.com/helpdesk/index.php?action=ticket&id=MTc1Mi0yNTI0MDMxNzEw&ide=anF1ZXJ5LWVuQGdvb2dsZWdyb3Vwcy5jb20=



[jQuery] Ticket: [1750-2224031709]

2009-03-24 Thread InfiniteSkills Support Center

This message is to notify you that your ticket has been submitted.

Ticket ID: 1750-2224031709

Message:
--

I'm just getting to know jQuery.  The basic tutorial (http://
docs.jquery.com/Tutorials:How_jQuery_Works ) fails to mention that $
is used as a shortcut for jQuery.  Things would have made much more
sense the first time I read through it if this had been mentioned.

I'm used to $ preceding a variable name as in PHP.  A different use of
$ was confusing and need not have been if it were explained in the
first place.

I offer this input that you might improve the tutorial.


--Nathan Shaskin
Compliance Publishing
--

To check the status of this ticket, visit:
http://www.infiniteskills.com/helpdesk/index.php?action=ticket&id=MTc1MC0yMjI0MDMxNzA5&ide=anF1ZXJ5LWVuQGdvb2dsZWdyb3Vwcy5jb20=



[jQuery] Ticket: [1751-7724031710]

2009-03-24 Thread InfiniteSkills Support Center

This message is to notify you that your ticket has been submitted.

Ticket ID: 1751-7724031710

Message:
--

dear all,
i'm trying to implement the captcha in a form where i'm using jquery
validation and also custom validation methods.
this is the code i have so far:

jQuery.validator.addMethod("Captcha", Function(value, element) {
   jQuery.get("/functions/app/CaptchaAjax/captcha.asp?
validateCaptchaCode=" +  jQuery("#captchacode").val() + "", function
(data){
if (data == 1)
return true;
});
return this.required(element) || true;
});

the problem i have so far is that: if i get out from the jQuery.get
function then i will loose the variable data and if i put the return
this.required(element) || true; then i will get an error because the
addmethod function needs it.

is there i work around this? or may be another way to do it?

Thanks

--

To check the status of this ticket, visit:
http://www.infiniteskills.com/helpdesk/index.php?action=ticket&id=MTc1MS03NzI0MDMxNzEw&ide=anF1ZXJ5LWVuQGdvb2dsZWdyb3Vwcy5jb20=



[jQuery] Ticket: [1756-5324031713]

2009-03-24 Thread InfiniteSkills Support Center

This message is to notify you that your ticket has been submitted.

Ticket ID: 1756-5324031713

Message:
--

Hi, I am new to jQuery, and it seems the very first thing I try to do
gives me problems. However, probably I am missing something so let me
ask you if you can hint me on the best way to accomplish this.

I want to transform a document with a flat structure like this

Heading 1
Paragraph 1.1
Paragraph 1.2
Heading 2
Paragraph 2.1
Paragraph 2.2

to something more hierarchical like this

Heading 1

Paragraph 1.1
Paragraph 1.2

Heading 2

Paragraph 2.1
Paragraph 2.2


The biggest problem for me is to detect where the limit between the
paragraphs (in the form of another heading) are. Unfortunately there
is nothing distinctive about the p elements (no ids, no classes, this
is generated code that I can not control)

Thanks!
/Claes
--

To check the status of this ticket, visit:
http://www.infiniteskills.com/helpdesk/index.php?action=ticket&id=MTc1Ni01MzI0MDMxNzEz&ide=anF1ZXJ5LWVuQGdvb2dsZWdyb3Vwcy5jb20=



[jQuery] Ticket: [1747-5424031751]

2009-03-24 Thread InfiniteSkills Support Center

This message is to notify you that your ticket has been submitted.

Ticket ID: 1747-5424031751

Message:
--

hello,

first off, amazing! thank you for your great work.

most every part is working for me, including using background images.
when the mouse hovers, the background image changes as does the text
color. perfect. currently, i only have the superfish menu on the
"Discounts" link so that is the link i am speaking of. (as should be
obvious when looking at the menu, i'm using blank background images
with actual link text on top of them).

after the hover menu "flys out" and i begin to hover over the "fly
out" menu, the parent link "Discounts" text color reverts back to its
original color. the background image stays just like it should though.
i've tried everything i can think of up to and including using js to
force the text color to stick but without success.

any help would be greatly appreciated especially since i will be in
big trouble with a client if i can't get it working. mr. birch, your
code is flawless but i've updated the css file to better reflect how i
understand css. i hope you'll be able to make sense of it.

here's the site for testing:
http://www.y11k.com/superfish/

css:
http://www.y11k.com/superfish/css/superfish.css
(the "menu" css is below the other sections. ignore the other stuff...
it's pasted from the live site and most of it isn't being used in the
html)

js:
http://www.y11k.com/superfish/js/superfish.js
http://www.y11k.com/superfish/js/initialize.js
(file i use to initialize superfish... rather than calling from the
html)

thank you very much in advance!

-d



--

To check the status of this ticket, visit:
http://www.infiniteskills.com/helpdesk/index.php?action=ticket&id=MTc0Ny01NDI0MDMxNzUx&ide=anF1ZXJ5LWVuQGdvb2dsZWdyb3Vwcy5jb20=



[jQuery] Ticket: [1746-5224031743]

2009-03-24 Thread InfiniteSkills Support Center

This message is to notify you that your ticket has been submitted.

Ticket ID: 1746-5224031743

Message:
--


Friends,

I have two sliders on the page. One at the top right, and one at the bottom
right. I would like for them to work together. When one slider opens the
other one closes. 

http://sucro.se/red7e/BE/

Any ideas?

Daniel
-- 
View this message in context: 
http://www.nabble.com/2-Sliders-working-together.-tp22688635s27240p22688635.html
Sent from the jQuery General Discussion mailing list archive at Nabble.com.

--

To check the status of this ticket, visit:
http://www.infiniteskills.com/helpdesk/index.php?action=ticket&id=MTc0Ni01MjI0MDMxNzQz&ide=anF1ZXJ5LWVuQGdvb2dsZWdyb3Vwcy5jb20=



[jQuery] Ticket: [1748-7424031751]

2009-03-24 Thread InfiniteSkills Support Center

This message is to notify you that your ticket has been submitted.

Ticket ID: 1748-7424031751

Message:
--

I have the following code:

$('#r_0_0').blur(function() {

 var x = $('#r_0_0').val();
  var y="#d_0";
  $(y).empty();
  $.get("apps/P5001/call/LineItems.lasso?LITM=" + x + "&Line=" +
'r_0_0' + "&TEST=" + y,function(data2){
  $(y).empty();
  $(y).append(data2);
  },"html");

  $('#addnew').click();

});

The last line "#addnew" is adding a new line to a html table, and the
other code is updating a div with information from a database call. It
is all processing correctly, except the "addnew" is running before the
database query.

How can I get the "addnew" to wait for the prior commands to finish?
--

To check the status of this ticket, visit:
http://www.infiniteskills.com/helpdesk/index.php?action=ticket&id=MTc0OC03NDI0MDMxNzUx&ide=anF1ZXJ5LWVuQGdvb2dsZWdyb3Vwcy5jb20=



[jQuery] Ticket: [1743-5624031723]

2009-03-24 Thread InfiniteSkills Support Center

This message is to notify you that your ticket has been submitted.

Ticket ID: 1743-5624031723

Message:
--

I have a 3-level menu using JQuery-Superfish. I would like to hover
over the top-level menu item and have BOTH the 2nd and 3rd-level menus
open automatically. Any ideas?
--

To check the status of this ticket, visit:
http://www.infiniteskills.com/helpdesk/index.php?action=ticket&id=MTc0My01NjI0MDMxNzIz&ide=anF1ZXJ5LWVuQGdvb2dsZWdyb3Vwcy5jb20=



[jQuery] Ticket: [1745-7924031743]

2009-03-24 Thread InfiniteSkills Support Center

This message is to notify you that your ticket has been submitted.

Ticket ID: 1745-7924031743

Message:
--

I am using Epic as my template and can not get superfish to work.
It keeps pulling a Dark Blue lettering for the menu items and some of
them are white.

I need help as I have beta testers checking the site and this is the
only problem I am having.

I am scheduled to launch the site April 1st.

Please let meknow if you can help me.

Site - www.gstcbsa.org/Council.

You should see that some of the items are in Dark Blue and Some in
white.
I can see it this way in FF and IE 7
--

To check the status of this ticket, visit:
http://www.infiniteskills.com/helpdesk/index.php?action=ticket&id=MTc0NS03OTI0MDMxNzQz&ide=anF1ZXJ5LWVuQGdvb2dsZWdyb3Vwcy5jb20=



[jQuery] Ticket: [1744-2724031742]

2009-03-24 Thread InfiniteSkills Support Center

This message is to notify you that your ticket has been submitted.

Ticket ID: 1744-2724031742

Message:
--

Hello all jQuery people.
This is my first post in this list but I hope I can make sense with my
question.

Currently I'm developing some web applications for internal use,
porting some old ones.
I'd love the jQuery-way to do asynchronous requests, so I developed a
plugin similar to Pimentech jFrame. Basicly, it "automagically"
catches all clicks on links, sends an AJAH request and loads the
response  inside a container.

The problem came when the response contains STYLE or LINK tags. Using
Firefox and Opera all was perfect, but no style was applied with IE6,
IE7, Chrome or Safari. I was thinking that was my plugin's fault, but
when I test the use case without it, the problem remains. No style
applied.

Check this simplified case without even jQuery:


This is a test and should have a border around and 1ex
padding!

var div = document.createElement('div');
// 
added to avoid a bug in IE div.innerHTML = '
'; var span = div.getElementsByTagName('span')[0]; document.body.appendChild(div); I thought that jQuery have workarounds to this, but I found none, so I created a plugin to do the work. In case I missed some jQuery functionality, please tell me. I prefer the jQuery way. This plugin relies on detecting whether inlined styles are processed or not. If not, modify $.fn.html to move all style's and link's to document.head, mark them with a 'data-style-loader' attribute and adding a dummy link to the target. When te dummy link is removed (with the same $.fn.html function), it removes all related style's and link's from head. Well, that's the code: $(function($) { // Checks for some supported features (function() { var div = document.createElement('div'); div.id = 'jquery-support-styled'; document.body.appendChild(div); // Checks whether inlined styles applies automaticly (Firefox and Opera returns true) div.innerHTML = '#'+div.id+' span { display:block; width: 3px; }'; var span = div.getElementsByTagName('span')[0]; $.support.inlineStyleApplies = $(span).width() == 3; // Checks whether inlined styles applies if they are inside 'br' context (for IE) $.support.mustPrependBrToInlineStyles = ! $.support.inlineStyleApplies && (function(){ div.innerHTML = '#'+div.id+' span { display:block; width:5px; }'; var span = div.getElementsByTagName('span')[0]; return ($.support.inlineStyleApplies = $(span).width() == 5); })(); document.body.removeChild(div); })(); // Saves old $().html function var old_html = $.fn.html; if($.support.mustPrependBrToInlineStyles) { // Modify old $().html to add br before styles and links $.fn.html = function(_value) { if(typeof _value !== 'string') { _value = _value.replace(/'+_text }) } return old_html.call(this, _value); } } else if(!$.support.inlineStyleApplies) { // Change old $().html to move link�s and style�s to the head $.fn.html = function(_text) { // Remove css-pointers and their pointees var $styles = this.find('link[data-style-loader]'); if($styles.length) { clean_css($styles); } // Calls old $().html old_html.call(this, _text); // Promote new links and styles to document.head $styles = this.find('style,link[rel*=stylesheet]'); if($styles.length) { add_styles.call(this, $styles) } return this; } // Remove css-pointers and their pointees functionclean_css(_$styles) { // Get pointees id var st = []; for(var i = 0; i < _$styles.length; ++i) { st[st.length] = '[data-style-loader='+$(_$styles[i]).attr('data- style-loader')+']' } // Remove all links pointed $('head').find(st.join(', ')).remove(); } // Promote new links and styles to document.head functionadd_styles(_$styles) { // Selects a pointer id var tm =

[jQuery] Ticket: [1741-5224031715]

2009-03-24 Thread InfiniteSkills Support Center

This message is to notify you that your ticket has been submitted.

Ticket ID: 1741-5224031715

Message:
--

Hi all -

I cannot seem to get this success piece to work, the script will go
through and validate each field of my contact form and prompt the user
to enter in required data etc... Hit the submit button and I get my
email notification however; the success function does not display.
Anyone know why?

Js.setup.util.editable({title: "Key in the custom value"});

var contactBox = window.contactBox = {
contact: {
task: function() {
var node = 
jQuery("#contact_type");
var child = 
jQuery("#show-if-corporate");

var task = function() {
if (node.val() 
== "Corporate") {

child.slideDown();
}
else {

child.slideUp();
}
};

node.bind("change", 
function() {
task();
});
task();
},

success: function(text) {

jQuery("#contact-form").slideUp();

jQuery("").text("Thank You").appendTo("#col_670");
jQuery("").text("I 
will get back to you shortly.").appendTo
("#col_670");
}
}
}
jQuery(function() {

new 
Js.util.editable("#contact_subject");
new Js.util.editable("#contact_task");
new Js.util.editable("#contact_type");
new Js.util.editable("#contact_budget", 
{
prefix: "$ "
});

contactBox.contact.task();



new Js.util.formSubmit({
id: "#contact-form",
url: "contact_me.php",
option: {
onError: function(){
alert("Please 
fill in all required fields (marked by *)");
}
}
});
});
--

To check the status of this ticket, visit:
http://www.infiniteskills.com/helpdesk/index.php?action=ticket&id=MTc0MS01MjI0MDMxNzE1&ide=anF1ZXJ5LWVuQGdvb2dsZWdyb3Vwcy5jb20=



[jQuery] Ticket: [1742-3924031723]

2009-03-24 Thread InfiniteSkills Support Center

This message is to notify you that your ticket has been submitted.

Ticket ID: 1742-3924031723

Message:
--

Hey all,

Using the (awesome) Cycle plugin all over the place, and I have a
question: in the uncompressed code file [1], a comment says that the
second argument to .cycle() can be "the name of an fx (only used in
conjunction with a numeric value for 'options')".  I've tried this (to
trigger a manual transition to a specific slide, with a specific
transition effect), and the second argument doesn't appear to have any
effect; the transition defined in the original options is always used.

Is the comment wrong, and what I'm trying to do currently not
possible?  Or am I doing something wrong?

Thanks in advance for any help!

Carl

 [1] http://malsup.com/jquery/cycle/jquery.cycle.all.js?v2.60
--

To check the status of this ticket, visit:
http://www.infiniteskills.com/helpdesk/index.php?action=ticket&id=MTc0Mi0zOTI0MDMxNzIz&ide=anF1ZXJ5LWVuQGdvb2dsZWdyb3Vwcy5jb20=



[jQuery] Ticket: [1739-8724031714]

2009-03-24 Thread InfiniteSkills Support Center

This message is to notify you that your ticket has been submitted.

Ticket ID: 1739-8724031714

Message:
--

Friends,

I have two sliders on the page. One at the top right, and one at the
bottom right. I would like for them to work together. When one slider
opens the other one closes.

http://sucro.se/red7e/BE/

Any ideas?

Daniel
--

To check the status of this ticket, visit:
http://www.infiniteskills.com/helpdesk/index.php?action=ticket&id=MTczOS04NzI0MDMxNzE0&ide=anF1ZXJ5LWVuQGdvb2dsZWdyb3Vwcy5jb20=



[jQuery] Ticket: [1740-3424031715]

2009-03-24 Thread InfiniteSkills Support Center

This message is to notify you that your ticket has been submitted.

Ticket ID: 1740-3424031715

Message:
--

jQuery (English)
jQuery is a fast, concise, JavaScript Library that simplifies how you
traverse HTML documents, handle events, perform animations, and add
Ajax interactions to your web pages. jQuery is designed to change the
way that you write JavaScript.
@
http://www.organismsgenome.webs.com/
@
--

To check the status of this ticket, visit:
http://www.infiniteskills.com/helpdesk/index.php?action=ticket&id=MTc0MC0zNDI0MDMxNzE1&ide=anF1ZXJ5LWVuQGdvb2dsZWdyb3Vwcy5jb20=



[jQuery] Ticket: [1738-1124031702]

2009-03-24 Thread InfiniteSkills Support Center

This message is to notify you that your ticket has been submitted.

Ticket ID: 1738-1124031702

Message:
--

Hello,

Need help.

I want to dynamically update the contents of my div tag.

Therefore I used jquery and the code is as follows

$data= 'welcome to this page';
$("#element1").html($data);

This code works perfectly fine for simple data.

But for complex data say, $data = 'Hey welcome to webpage, 'Enjoy'';

$("#element1").html($data); doesnt work because the javascript fails.

Is there any jquery plugin that checks to see if the content in $data
is
valid.

Thank you,
Ramya
--

To check the status of this ticket, visit:
http://www.infiniteskills.com/helpdesk/index.php?action=ticket&id=MTczOC0xMTI0MDMxNzAy&ide=anF1ZXJ5LWVuQGdvb2dsZWdyb3Vwcy5jb20=