[jQuery] Re: Jquery cycle plugin and images included dynamically

2008-04-12 Thread Diego A.

I am finding it hard to understand your problem, but I'm guessing it
may be because when the image is hidden, the cycle plugin cannot find
its dimensions (hidden elements have dimensions 0x0).

Instead of display:none, have you considered off-screen positioning or
visibility:hidden instead?

Diego

On Apr 12, 1:20 am, jawosis [EMAIL PROTECTED] wrote:
 Hi,

 I am using the jquery cycle plugin for slide effects of images being
 included dynamically to the website. Unfortunately, the images in the
 hidden divs will not show in their original size once being showed
 from the cycle script - just a icon size image is visible.

 How can i change this to maintain the real image size in all (also
 hidden) divs?


[jQuery] Re: Slow tabs

2008-04-12 Thread alex

Actualy jquery tab is awfully slow!.

On Apr 9, 10:10 am, J Moore [EMAIL PROTECTED] wrote:
 Try creating a test page with only the js code needed for the tabs.

 As for keeping content hidden during loading, I like to use a css
 class called hidden.

 /* css */
 .hidden { display: none; }

 /* html */
 div class=foo hiddenI am hidden/div

 On Apr 8, 1:54 pm, Glen Lipka [EMAIL PROTECTED] wrote:

  We are using tabs on this page:http://success.marketo.com/index.php

  There is a long delay (FF2) between click and the transition.  Are we doing
  something wrong?

  Also, what is the best practice to make the tabs detail hidden until it
  finishes tabbifying the block?

  Thanks much,

  Glen


[jQuery] Re: triggering clueTip with inline javascript

2008-04-12 Thread az

Hi Karl,

As always, thanks for your help.

Here is my test page:

http://www.prep-u.com/demo/cluetest.html

On the test page there are only 4 links.  So obviously I
could just bind clueTip the normal way.  But my live page
will have thousands of links in some cases.  Since that's
a lot of binding, I'm trying to do no binding on page load.
Instead each link calls this javascript function:

function clueTip( link ){
var linkid = '#' + link;
// bind then click
$(linkid).cluetip().click();
}

which is supposed to bind the clueTip and then
click the link to trigger the clueTip.

Problems:

1. In Firefox it's working, but the waitImage seems
to be appearing in the wrong place.
2. In IE7 it doesn't work at all.  It's giving me an invalid
argument
error that seems to be caused by .click().

Any help is greatly appreciated!

One final note:  notice that you can click on the clueTip titlebar and
drag it around the screen.  That's thanks to your help on a previous
post!

az


On Apr 11, 9:28 am, Karl Swedberg [EMAIL PROTECTED] wrote:
 Hi az,

 Unfortunately, I've completely lost the context for what you're doing
 here. Do you have a page up somewhere that we can look at to see the
 whole thing? That would be very helpful.

 --Karl
 _
 Karl Swedbergwww.englishrules.comwww.learningjquery.com

 On Apr 11, 2008, at 5:52 AM, az wrote:



  Anyone have any thoughts on this?

  thanks!
  az

  On Apr 9, 1:58 pm, az [EMAIL PROTECTED] wrote:
  Hello,

  As I discussed in a previous post (unresponsive script error
  on long page with many clueTips) I'm trying to trigger clueTips
  with a javascript function instead of binding the clueTips on page
  load.

  Each link calls theclueTipfunction and passes its unique link id.
  Here is the function:

  functionclueTip( id ){
 var linkid = '#' + id;
 // bind then click
 $(linkid).cluetip().click();

  }

  It mostly works on Firefox, except that the waitImage is acting
  strangely.  Sometimes it doesn't show up at all.  And sometimes
  it shows up but in the location of the previously clickedclueTip!
  But the actualclueTipalways shows up in the right place.

  On IE7 it doesn't work at all.  It's giving me an invalid argument
  error that seems to be caused by .click().

  Any ideas?  Is my approach fundamentally flawed or am I missing
  something small?

  thanks!
  az


[jQuery] Validation Plugin Add Row Example

2008-04-12 Thread HatemJaber

I am using the Validation plugin from http://jquery.bassistance.de/validate/demo
which is a great plugin. I just found out after browsing the docs some
more that it has the capability of dynamically adding a row of data. I
would like to know how I can remove a row of data. After several
attempts at creating a removeJoin() function, and a couple of hours of
hacking it up, I decided to join the group.

Here's the script if anyone can offer assistance:

html
head
titleAdd Queries :: Add Joins/title

link rel=stylesheet type=text/css media=screen href=css/
screen.css /

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

script type=text/javascript
jQuery(document).ready(function() {
var qTemplate = jQuery.format($(#qTemplate).val());
function addJoin() {
$(qTemplate(i++)).appendTo(#queryItems tbody);
}

var i = 1;
// start with one row
addJoin();
// add more rows on click
$(#addRow).click(addJoin);

});
/script

style type=text/css
form.cmxform { width: 50em; }
form.cmxform input.submit {
margin-left: 0;
}
/style

/head
body

div id=main
button id=addRowAdd another query to the form/button
textarea style=display:none id=qTemplate
tr
td class='type'
select name=item-type-{0}
option value=Select.../option
option value=0Learning jQuery/option
option value=1jQuery Reference 
Guide/option
option value=2jQuery Cookbook/option
option vlaue=3jQuery In Action/option
option value=4jQuery For Designers/option
/select
/td
td class='type'
select name=item-type-{0}
option value=Select.../option
option value=0Learning jQuery/option
option value=1jQuery Reference 
Guide/option
option value=2jQuery Cookbook/option
option vlaue=3jQuery In Action/option
option value=4jQuery For Designers/option
/select
/td
td class='type'
select name=item-type-{0}
option value=Select.../option
option value=0Learning jQuery/option
option value=1jQuery Reference 
Guide/option
option value=2jQuery Cookbook/option
option vlaue=3jQuery In Action/option
option value=4jQuery For Designers/option
/select
/td
td class='type'
select name=item-type-{0}
option value=Select.../option
option value=0Learning jQuery/option
option value=1jQuery Reference 
Guide/option
option value=2jQuery Cookbook/option
option vlaue=3jQuery In Action/option
option value=4jQuery For Designers/option
/select
/td
/tr
/textarea

form class=cmxform method=get action=foo.html

fieldset
legendCreate Joins For Our Query/legend
table id=queryItems
tbody

/tbody
tfoot
tr
td colspan=4input class=submit 
type=submit
value=Submit//td
/tr
/tfoot
/table
/fieldset

/form

/div
/body
/html


[jQuery] can't prototype co-exist with jquery

2008-04-12 Thread sutra

Hi I implemented jquery tab on a Magento site that uses prototype (not
my choice but it comes with it).

After spending hour getting my tabs work properly, I am dismay to find
that it disables the lightbox and the image slider:

http://74.52.59.43/index.php/bluetooth-accessories/jawbone-headset-black.html

Magento uses a proxy.php file to handle all js files, and it's called
from a xml file like so:
action method=addJsscriptjquery/jquery-1.2.3.pack.js/script/
action
action method=addJsscriptjquery/ui.tabs.pack.js/script/
action

if I remove the jquery files, the lightbox and the image slider work
again. I am equally new to both Jquery and Magento, therefor don't
know how to make them compatible.

Jquery has the call function places in the head section, I am
curious if this is the culprit? As I remember some JS use body onload
and disable other script as a result.

T


[jQuery] Re: can't prototype co-exist with jquery

2008-04-12 Thread Karl Rudd

The noConflict() method is what you're looking for:

  http://docs.jquery.com/Core/jQuery.noConflict

Karl Rudd

On Sat, Apr 12, 2008 at 6:13 PM, sutra [EMAIL PROTECTED] wrote:

  Hi I implemented jquery tab on a Magento site that uses prototype (not
  my choice but it comes with it).

  After spending hour getting my tabs work properly, I am dismay to find
  that it disables the lightbox and the image slider:

  http://74.52.59.43/index.php/bluetooth-accessories/jawbone-headset-black.html

  Magento uses a proxy.php file to handle all js files, and it's called
  from a xml file like so:
  action method=addJsscriptjquery/jquery-1.2.3.pack.js/script/
  action
  action method=addJsscriptjquery/ui.tabs.pack.js/script/
  action

  if I remove the jquery files, the lightbox and the image slider work
  again. I am equally new to both Jquery and Magento, therefor don't
  know how to make them compatible.

  Jquery has the call function places in the head section, I am
  curious if this is the culprit? As I remember some JS use body onload
  and disable other script as a result.

  T



[jQuery] Re: How to use jFrame Plug-In

2008-04-12 Thread tfat

bump :-)

On Apr 12, 1:38 am, tfat [EMAIL PROTECTED] wrote:
 Can anyone pls assist.

 Thanks.
 Tony.

 On Apr 11, 3:04 pm,tfat[EMAIL PROTECTED] wrote:

  Hi,

  Trying to get the jFrame plug-in to work but unsure how to use it.

  (see:http://plugins.jquery.com/project/jframe)

  I have set-up the follow div, i.e:

  div id=content src=#/div and then make a call to:

  jQuery(#content).loadJFrame(returnURL);

  Have also included all necessary js libraries.

  The div loads successfully but I get a javascript error:

  Line: 200364044
  Char: 3
  Error: Object doesn't support this property or method

  Can someone please let me know what I have missed and please correct/
  show me the correct usage of this plug-in.

  What does the callback parameter need to be?

  Thanks.
  Tony.


[jQuery] Links inside Sortables

2008-04-12 Thread Scott Sauyet

I seem to be having trouble getting my posts to show up in the UI list. 
  Please excuse this cross-posting.
==

I'm having an odd issue with links inside sortables.  I have a simple 
demo here:

 http://scott.sauyet.com/issues/2008-04-12a/

The links inside the sortable don't work on a single left-click.  I can 
right click and open them (here or in a new window or a new tab 
depending upon browser) or I can middle-click them and open in a new 
tab.  On Firefox, they work with a double-click, but they add two copies 
of the new location to the history.

Has anyone run into this before?  Is there any straightforward way of 
fixing it?

Thanks,

   -- Scott


[jQuery] Re: can't prototype co-exist with jquery

2008-04-12 Thread sutra

Karl, thank you so much. I had it figured after a google search :)


t

On Apr 12, 6:29 am, Karl Rudd [EMAIL PROTECTED] wrote:
 The noConflict() method is what you're looking for:

  http://docs.jquery.com/Core/jQuery.noConflict

 Karl RuddOn Sat, Apr 12, 2008 at 6:13 PM, sutra [EMAIL PROTECTED] wrote:

   Hi I implemented jquery tab on a Magento site that uses prototype (not
   my choice but it comes with it).

   After spending hour getting my tabs work properly, I am dismay to find
   that it disables the lightbox and the image slider:

   http://74.52.59.43/index.php/bluetooth-accessories/jawbone-headset-bl...

   Magento uses a proxy.php file to handle all js files, and it's called
   from a xml file like so:
   action method=addJsscriptjquery/jquery-1.2.3.pack.js/script/
   action
   action method=addJsscriptjquery/ui.tabs.pack.js/script/
   action

   if I remove the jquery files, the lightbox and the image slider work
   again. I am equally new to both Jquery and Magento, therefor don't
   know how to make them compatible.

   Jquery has the call function places in the head section, I am
   curious if this is the culprit? As I remember some JS use body onload
   and disable other script as a result.

   T


[jQuery] Appending URL and Session variables to redirect script

2008-04-12 Thread Mintyman

Hi,

I'm pretty new to using Jquery and javascript and don't quite know how
to do something pretty simple.

I have the following script that I am trying to build that will load
another page in the background when a link is clicked. However, I
don't know the syntax to set the CompanyID and UserID variables. I've
tried everything!!!

The CompanyID should come from a URL variable e.g. 
www.mysite.com/mypage.asp?CompanyID=1064
The UserID will come from a session variable : Session(UserID)

Can anyone help me?

//track download clicks
$(document).ready(function() {
$(a.adtrack).click(function(){

//Create variables
var CompanyID = ;
var UserID = ;
var DownloadID = $(a.adtrack).attr(name);

$.ajax({
   type: GET,
   url: downloadtrack.asp,
   data: CompanyID= + CompanyID + UserID= + UserID +
DownloadID= + DownloadID
  });
 });
});





[jQuery] traversing tabs

2008-04-12 Thread franco57

Hi
please help on this problem

I have data coming fron DB, put to html page through while cycle
(php), so have many ancor tag. When click one of them appear a tabs
menu

problem is: when click the tab it doesn't chance content

using jquery.tabs.js :: Version: 2.7.4

code

script type=text/javascript
jQuery.fn.fadeToggle = function(speed, easing, callback) {
   return this.animate({opacity: 'toggle'}, speed, easing, callback);

};
$(function() {
$('.tabs').hide();
$('.xfissa').bind('click', function() {
  $(this)
 .next('div.tabs')
  .tabs()
  .fadeToggle()

 });
$('#showAll').bind('click', function() {
$('.tabs')
.tabs()
.fadeToggle()
 });
});
/script


html

div id=tabs class=tabs
ul id=navlist
  lia href=#divname id=currentDescrizione/a/li
  lia href=#divname2Foto/a/li
  lia href=#divname3Mappa/a/li
/ul
div id=divname  class=hiddencontent? echo $desc; ?/div
div id=divname2 class=hiddencontentfoto/div
div id=divname3 class=hiddencontentmappa/div
/div

thank
franco


[jQuery] Re: Slow tabs

2008-04-12 Thread upandhigh

it's not problem of Jquery Tabs - their code is pretty good written
and fast enough.

the problem why your tabs is loading so long is long response of
`post` function in file munchkin.js (line 55) if you will profile your
page while switching tabs you will found that about 99% of time is
taken by this function:

post1   98.48%  1015.625ms munchkin.js (line 55)

check this function, and try to found out why it takes so much time to
execute, maybe there is some server response what is taking so much
time - you need to know better what is doing this function for you.





On Apr 12, 10:32 am, alex [EMAIL PROTECTED] wrote:
 Actualy jquery tab is awfully slow!.

 On Apr 9, 10:10 am, J Moore [EMAIL PROTECTED] wrote:

  Try creating a test page with only the js code needed for the tabs.

  As for keeping content hidden during loading, I like to use a css
  class called hidden.

  /* css */
  .hidden { display: none; }

  /* html */
  div class=foo hiddenI am hidden/div

  On Apr 8, 1:54 pm, Glen Lipka [EMAIL PROTECTED] wrote:

   We are using tabs on this page:http://success.marketo.com/index.php

   There is a long delay (FF2) between click and the transition.  Are we 
   doing
   something wrong?

   Also, what is the best practice to make the tabs detail hidden until it
   finishes tabbifying the block?

   Thanks much,

   Glen


[jQuery] Re: Slow tabs

2008-04-12 Thread Klaus Hartl

On Apr 12, 9:32 am, alex [EMAIL PROTECTED] wrote:
 Actualy jquery tab is awfully slow!.

Huh? Can you expand on this a little bit?

--Klaus




[jQuery] Re: Tabs Validation

2008-04-12 Thread Klaus Hartl

I think in this case you should reconsider using tabs at all. If you
want to use tabs you should put error messages on top of the tab pane,
so that the errors are visible to the user.

--Klaus


On Apr 10, 4:50 pm, MarcelloP [EMAIL PROTECTED] wrote:
 Hi all!
 I need a little advice; in a page I have a form with a tabs with 3 tab-
 pages, all with input elements and all required; in this form I also
 have enabled the splendid Validation plugin.
 My concern is this: if a user fill only the inputs of the first tab-
 page and leave blank the others, he cannot submit the form 'cause this
 is correctly stopped by the validation plugin, but the problem is that
 the user cannot see the invalid inputs (highlighted by the Validation)
 on the others tabpages 'cause he is on the first.

 Please, someone may suggest me the correct way to proceed within?
 Thanks in advance.

 MarcelloP


[jQuery] Re: Passing variables between two functions

2008-04-12 Thread J Moore


looks good. pointX is a global variable and can be accessed by both
functions. What's the problem?

On Apr 11, 6:13 am, Decagrog [EMAIL PROTECTED] wrote:
 Hi all,
 I've a newbie question about variable scope...essentially  i've two
 anonimous function and i need to retrieve a variable generated into
 first function and use it in the second one.

 Here the basic code to get an idea of what i'm  trying...

   var pointX ;
   $(.nav_slider).mousemove(function(e){
 pointX = e.pageX ;
 // do some other stuff with  pointX ...
   });

   $(document).scroll(function () {
   var docH = $(window).height();
   var   docW = $(window).width();
   docWcenter =  docW / 2;

  //here i need again pointX ...
  $(#point).css( 'position',
 'relative' ).animate({ left :docWcenter + pointX + px}, 200 );
   });


[jQuery] Re: How do I use ColdFusion and jQuery variables for pagination?

2008-04-12 Thread J Moore


Calling a $.get() on each page change click kind of defeats the point
of doing client-side paging. It will be basically be as slow as
reloading an entire new page (and you have to add some UI to show that
the page is 'loading...).

If your db has 10,000 rows, then agreed, you won't want to dump them
all at once. But why not send 100? Then you can page through them
super quick using client side js (and jquery). When you reach the end
of the what's in memory, query the next 100. (or even fancier, query
the next 100 when the user is looking at the 2nd last page.)

The key concept is that you load your paging data and keep in a
javascript object or array.

var rows;
$.getJSON(json.php, {action:get100rows}, function(json) { rows =
json.result; });

// then your callback for the pagination class looks something like
this...

function showpage(page) { // page is 1..n
  var pagesize = 10;
  var offset = ((page-1)*pagesize);
  for (var i=0; ipagesize; i++) {
$('#results').append('div'+rows[i]+'/div); // display each row
  }
  // here's where you would check to see if you need to load more
data...
  if (offset+pagesize = rows.length) { ... }

}

-j

On Apr 10, 4:48 pm, Josh Nathanson [EMAIL PROTECTED] wrote:
 Rick, if you have 10,000 records, I would say to not dump them all into the
 client.

 My suggestion would be to set everything up as if you were doing the
 pagination on the server using CF, and then change your pagination links so
 that they are intercepted, and used to do an ajax call to your CF template
 which retrieves the records.

 Your CF template could output the records as an html table and then send
 that html back to the client -- this html would be the argument in your ajax
 callback function, which would take the returned html and place it in the
 right place on the page.

 This is all independent of any plugins, just using straight jQuery and CF.

 Just as a rough outline... suppose your pagination link looks like a
 href=myCfTemplate.cfm class=paginate5/a (this would be to go to page
 5 of the pagination).

 Your ajax call would look like something like:
 $(a.paginate).click(function() {
 $.get(
 this.href,
 $(this).text(),
 outputhtml
 );
 return false;

 });

 Where outputhtml is the function that takes the returned html and outputs
 it to the page.  This would send the data 5 to your CF template as an url
 variable, which you could use to determine which records to get from the
 database.

 -- Josh

 - Original Message -
 From: Rick [EMAIL PROTECTED]
 To: jQuery (English) jquery-en@googlegroups.com
 Sent: Thursday, April 10, 2008 1:17 PM
 Subject: [jQuery] Re: How do I use ColdFusion and jQuery variables for

 pagination?

 Thanks for the reply, Josh...

 I think the part that I'm not understanding is the dump the whole
 query
 to the client and then the plugin takes care of the pagination.

 It also sounds like a memory and/or processor intensive way to get 20
 records
 per page.  If I have 10,000 records, I guess I would be getting and
 dumping
 all 10,000 records at once?

 I've considered taking the straight CF route with this, or perhaps
 using SQL
 to retrieve just the records I need.

 Would using CF or SQL be preferable for datasets composed of thousands
 of records?

 Rick

 On Apr 10, 3:31 pm, Josh Nathanson [EMAIL PROTECTED] wrote:
  Rick - I don't know how the pagination plugin that you're using works, but
  there may be some sort of before event that you can use to ajax some
  variables to your CF page. Your CF template would take these variables and
  use them to set the startrow and maxrow values and then send back the
  result.

  That said, not sure why you'd need to do that if you're doing pagination
  on
  the client side? The idea is that you dump the whole query to the client
  and then the plugin takes care of the pagination.

  -- Josh

  - Original Message -
  From: Rick Faircloth [EMAIL PROTECTED]
  To: jquery-en@googlegroups.com
  Sent: Thursday, April 10, 2008 12:19 PM
  Subject: [jQuery] How do I use ColdFusion and jQuery variables for

  pagination?

   Hi, all...

   I'm a bit confused about how to get variables from jQuery that
   I can use in my ColdFusion code.

   In typical CF pagination, I use startrow and maxrows variables
   to limit the query output. How would I get these variables
   from the jQuery?

   I just can't piece together what's happening.

   Below is the jQuery I'm currently using. The total number
   of records is set in the jQuery using the recordCount CF variable.

   Thanks for any help!

   Rick

   script type=text/javascript

   function pageselectCallback(page_id, jq){
   $('#Searchresult').text(Showing search results
   +((page_id*20)+1)+-+((page_id*20)+20));
   }

   $(document).ready(function(){
   // Create pagination element

   $(#Pagination).pagination(cfoutput#get_properties.recordCount#/cfoutpu­t,
   {
   items_per_page:20,
   num_edge_entries: 2,
   

[jQuery] Re: Appending URL and Session variables to redirect script

2008-04-12 Thread Bob Woodard


 The CompanyID should come from a URL variable e.g. 
 www.mysite.com/mypage.asp?CompanyID=1064
 The UserID will come from a session variable : Session(UserID)

I'm not sure what language you're using, but in Classic ASP, you
should be able to do the following (warning, no error checking shown, so
beware):

//track download clicks
$(document).ready(function() {
$(a.adtrack).click(function(){

//Create variables
var CompanyID = %=request.querystring(CompanyID)%;
var UserID = %=session(UserID)%;
var DownloadID = $(a.adtrack).attr(name);

$.ajax({
   type: GET,
   url: downloadtrack.asp,
   data: CompanyID= + CompanyID + UserID= + UserID + DownloadID= +
DownloadID
  });
 });
});




[jQuery] Re: [Validation]How to make two field check output one message?

2008-04-12 Thread Jacky See

I have put up a page to test.
http://www.seezone.net/dev/dateValiation.html

I need to use different method for different group of dates.
In that case, a global dateRange method seems not possible?

On 4月11日, 上午6時03分, Jörn Zaefferer [EMAIL PROTECTED] wrote:
 Jacky See schrieb: Hi,

  Some question on the config of validation plugins.
  Suppose there are #fromDate and #toDate fields (using ui.datepicker).
  I have added these custom rules
  [...]

  It will output two messages of 'Please input correct date range'.
  How can I make it only ouput single one?

 I've implemented a solution, please give the latest revision a 
 try:http://dev.jquery.com/view/trunk/plugins/validate/jquery.validate.js

 You need to specify which elements to group using the new groups-option.

 A usage example (actually a test, will later add it to docs) is 
 here:http://dev.jquery.com/view/trunk/plugins/validate/test/messages.js

 The interesting parts:

 form id=dateRangeForm
 input id=fromDate name=fromDate class=requiredDateRange /
 input id=toDate name=toDate class=requiredDateRange /
 span class=errorContainer/span
 /form

 $.validator.addClassRules({
 requiredDateRange: {required:true, date:true, dateRange:true}});

 $.validator.addMethod(dateRange, function() {
 return new Date($(#fromDate).val())  new 
 Date($(#toDate).val());}, Please specify a correct date range.);

 $(#dateRangeForm).validate({
 groups: {
 dateRange: fromDate toDate
 },
 errorPlacement: function(error) {
 form.find(.errorContainer).append(error);
 }

 });

 You'll most likely have to skip or modify the errorPlacement option, but
 the rest should work fine.

 Your feedback on it is very welcome.

 Jörn


[jQuery] Re: [Validation]How to make two field check output one message?

2008-04-12 Thread Aaron Heimlich
On Sat, Apr 12, 2008 at 2:34 PM, Jacky See [EMAIL PROTECTED] wrote:

 I have put up a page to test.
 http://www.seezone.net/dev/dateValiation.html


Link should be: http://www.seezone.net/dev/dateValidation.html

-- 
Aaron Heimlich
Web Developer
[EMAIL PROTECTED]
http://aheimlich.freepgs.com


[jQuery] Re: Appending URL and Session variables to redirect script

2008-04-12 Thread Mintyman

HI,

Thanks for the help. You're right that i'm using classic ASP. However,
what i'm trying to do is use a separate .js include file. I can get it
to work with the code you've provided if I leave the script inside the
ASP page, but I would like to keep it separate as I would like to use
it in more than 1 page. As soon as I remove it and place it in a .js
file, I can't use that syntax anymore.


On Apr 12, 8:08 pm, Bob Woodard [EMAIL PROTECTED] wrote:
  The CompanyID should come from a URL variable e.g.
 www.mysite.com/mypage.asp?CompanyID=1064
  The UserID will come from a session variable : Session(UserID)

 I'm not sure what language you're using, but in Classic ASP, you
 should be able to do the following (warning, no error checking shown, so
 beware):

 //track download clicks
 $(document).ready(function() {
 $(a.adtrack).click(function(){

 //Create variables
 var CompanyID = %=request.querystring(CompanyID)%;
 var UserID = %=session(UserID)%;
 var DownloadID = $(a.adtrack).attr(name);

 $.ajax({
type: GET,
url: downloadtrack.asp,
data: CompanyID= + CompanyID + UserID= + UserID + DownloadID= +
 DownloadID
   });
  });

 });


[jQuery] Re: Appending URL and Session variables to redirect script

2008-04-12 Thread Mintyman

I just decided to keep the code inline within the ASP page:

script type=text/javascript
$(document).ready(function() {
$(a.dload).click(function(){
var CompanyID = $(a.dload).attr(name);
var UserID = %=session(UserID)%;
var DownloadID = $(a.dload).attr(rev);
$.ajax({
   type: GET,
   url: downloadtrack.asp,
   data: CompanyID= + CompanyID + UserID= + UserID +
DownloadID= + DownloadID
  });
 });
});
/script

However, I now have a new problem. The page this code is in displays a
list of links. I have assigned unique values to the attributes listed
('rev' and 'name') so I can identify what ones are clicked on. The
problem is that when any of the links are click, the values of the
FIRST link get passed through to the 'downloadtrack.asp' page, not
those of the clicked link. Can someone show me how to make the values
of the clicked link get passed through instead?

Thanks!


[jQuery] Superfish current state

2008-04-12 Thread DRoss

Hi,

I am using the Superfish plugin and have one small problem. I'd like
the current state to be  selected when you first land on the page.
So I want the Television subnavs to be visible always and to fade
out when you hover over another main nav and for those subnavs to fade
in. Just like the example on this page:
http://users.tpg.com.au/j_birch/plugins/superfish/all-horizontal-example/

I can't figure out what I'm doing incorrectly. It's probably something
simple but I'm not finding it. Plus I'm just learning jquery so it's
hard for me to tell what the problem is.

Any help greatly appreciated.

I've set up a test page here:
http://rossinteractive.com/projects/AAM/nav.php

Thanks,
David





[jQuery] Re: Star Rating Plugin v2.2: Problem disabling cancel button

2008-04-12 Thread kadda

On Apr 11, 3:35 am, DragonI [EMAIL PROTECTED] wrote:
 Hi,

 I'm having a problem disabling the cancel button. Maybe it's just
 me ;)

 code says: //required: false, // disables the 'cancel' button so user
 can only select one of the specified values

 Here's what I tried:

 form id=form1
 input class=star {required:false} type=radio name=test-1-
 rating-2 value=1 title=Worst/
 input class=star {required:false} type=radio name=test-1-
 rating-2 value=2 title=Bad/
 input class=star {required:false} type=radio name=test-1-
 rating-2 value=3 title=Good/
 input class=star {required:false} type=radio name=test-1-
 rating-2 value=4 title=Excellent/
 /form

 Also tried:

 $(function(){ $
 ('[EMAIL PROTECTED]').rating({required:false}); });

 Thanks

I have the same problem, i fixed by just altering the js code on line
112. Replacing the if statement with a if(true) which will always be
true. But I want to know how this can be fixed in html if I want to
display more than one rating on the same page using the same js file.

   /*if($.rating.groups[n].readOnly || settings.required){*/
   if(true){
// DO NOT display 'cancel' button
   }
   else{
// Display 'cancel' button
$(this).before(
 $('div class=cancela title=' + settings.cancel + '' +
settings.cancelValue + '/a/div')
 .mouseover(function(){ $.rating.event.drain(n, this, settings); $
(this).addClass('star_on'); })
 .mouseout(function(){ $.rating.event.reset(n, this, settings); $
(this).removeClass('star_on'); })
 .click(function(){ $.rating.event.click(n, this, settings); })
);
   }


[jQuery] Re: Appending URL and Session variables to redirect script

2008-04-12 Thread Mintyman

I've managed to work out how to make my code apply specifically to an
individual link. I found out how to use $(this)

Thanks anyway!

All I need now is to figure out the syntax of moving my script over
into a separate .js file instead of being inline.