Re: [jQuery] Re: Having hard time with customizing scroll bars

2010-01-16 Thread Sam Sherlock
Yes you can - did you see the os examples?

this plugin has an extensive set of demos and is extremely versatile

http://www.kelvinluck.com/assets/jquery/jScrollPane/examples.html
 
- S



2010/1/16 swfobject_fan 

> Thanks dave, but I can't change the look of the scroll bars with this
> right? I was looking for something similar to flexcroll.
> http://www.hesido.com/web.php?page=customscrollbar
>
> On 16 Jan, 19:49, Dave Methvin  wrote:
> > > Where can I find more about those plugins?
> >
> > This search turned up jScrollPane, looks like that is what you want.
> >
> > http://lmgtfy.com/?q=jquery+scroll+plugin
>


[jQuery] [Superfish] Left side dropdown menu

2009-12-05 Thread Sam
Hi,
I have 3 level menu.
I want the sub menus to be open in left direction instead of right.
Because the menu is in top right corner of the website, and when
submenu are displayed.
They goes outside the website window and browser shows the scroll bar,
which doesnt look nice.

I hope, u guys understand what i m trying to say.

Please take a look at the screenshot to get the exact idea.
http://i48.tinypic.com/2sa1dv9.jpg

Thanks


Re: [jQuery] .hide and .show div's

2009-11-11 Thread Sam Doyle

Look at jquerys find functions

Sent from my iPhone

On 11 Nov 2009, at 12:36, David pr  wrote:


Hello,

Could you help me please. I have a list of hotel which I .hide
and .show div's to show more or less info.

so i have



when the user press a button I use the code
var Hcode = $(this).attr("custom");
$('div.Hide-' + Hcode).toggle();

but when the page loads how do I hide this div automatically ?

I have used

for (i = 0; i <= 70; i++)
{
  $("div.Hide-BAT" + i).hide();
}

But its slow and probably not the best way to do it ?

Hope you can help and this makes sense.

Regards

David



Re: [jQuery] Iterating over a list

2009-11-08 Thread Sam Doyle

$(this).fadeOu(duration, function() {


Typo

Sent from my iPhone

On 8 Nov 2009, at 07:27, Michel Belleville  
 wrote:



$(this).fadeOu(duration, function() {


Re: [jQuery] Re: Why jQuery is not working on my page ?

2009-11-05 Thread Sam Doyle

li#Story would be more efficient

Sent from my iPhone

On 5 Nov 2009, at 22:24, vmrao  wrote:



I just got rid of unnecessary '(function($){ ' and it worked.

On Nov 5, 5:17 pm, vmrao  wrote:

Here is my code. I have included jQuery library.


(function($){
$(document).ready(function(){

$('ul.News li[id*="Story"]').each(function() {
alert('test');
});
});});




My Stroy1
My Stroy2
My Stroy3
Miscelaneous



[jQuery] Re: Get file specific parts from input file type

2009-10-22 Thread Sam Doyle
jquery ajax and php

On Thu, Oct 22, 2009 at 8:47 PM, Buntu J  wrote:

> Hi,
> I need to get the filename, basename, dirname using jQuery. Can anyone
> please let me know if there is any utility that will take care of
> windows/mac/linux file paths.
>
> Thanks
>


[jQuery] Re: images show before jquery and cycle plugin work their magic

2009-10-22 Thread Sam

Charlie,

Thanks for the reply, unfortunately the changes you suggested do not
seem to make a difference. Please refer to my previous link to see the
same issue happening with the changes applied.


On Oct 22, 7:21 am, Charlie  wrote:
> try giving the carousel UL a huge width , say 10,000 px, and carousel wrapper 
> set height, width and overflow : hidden
> this is done by the script also but until script fully fires your css should 
> make up for it
> Sam wrote:I'm not entirely sure that some of these fixes apply to my 
> situation as I'm not using cycle plugin. I am having the same issue as the 
> original poster however, please see for 
> yourself.http://samgabellshoots.com/Any pointers on how to fix or at least 
> 'hide' the issue until after load would be greatly appreciated :) On Oct 21, 
> 4:40 pm, Mike Alsupwrote:I've had this issue before. As 
> Karl suggests, I was able to fix it by giving the parent element (the one 
> calling the cycle plugin) a fixed height (the height of the images you're 
> cycling) and an overflow of hidden in the CSS. If the slides are of different 
> heights, set the height to the height of the first slide.Another approach is 
> to have a CSS rule that hides all but the first slide.


[jQuery] Re: images show before jquery and cycle plugin work their magic

2009-10-21 Thread Sam

I'm not entirely sure that some of these fixes apply to my situation
as I'm not using cycle plugin.

I am having the same issue as the original poster however, please see
for yourself.

http://samgabellshoots.com/

Any pointers on how to fix or at least 'hide' the issue until after
load would be greatly appreciated :)

On Oct 21, 4:40 pm, Mike Alsup  wrote:
> > I've had this issue before. As Karl suggests, I was able to fix it by
> > giving the parent element (the one calling the cycle plugin) a fixed
> > height (the height of the images you're cycling) and an overflow of
> > hidden in the CSS. If the slides are of different heights, set the
> > height to the height of the first slide.
>
> Another approach is to have a CSS rule that hides all but the first
> slide.


[jQuery] Re: images show before jquery and cycle plugin work their magic

2009-10-21 Thread Sam

I am having the same issue that Thor describes, and although I have
tried the fixes suggested by Karl I have been unable to fix the issue.

Maybe there is a different way to achieve the goal? Perhaps there is a
way to pre-load the entire jcarousel container and then place it in
the page rather then have it build the carousel as it loads?

Cheers,

Sam

On Oct 20, 6:35 pm, Karl Swedberg  wrote:
> If you have large images, they would take longer to load. No way  
> around that. One thing you can do to avoid having the images "span  
> down the page" is to add a style declaration for them in your  
> stylesheet: position:absolute; I believe the cycle plugin sets the  
> cycled elements to position:absolute as a safeguard in case it hasn't  
> been done in the css already, but you should really do that yourself  
> in the stylesheet. Also, make sure you set the container element to  
> position: relative (if it's position: absolute, you can keep it that  
> way) and set its overflow property hidden and give it explicit height  
> and width. You still might see images loading one after the other, but  
> at least they'll be overlapping, confined within the same space as  
> dictated by the height and width of the container element. There are  
> ways to get around this last issue, too, but first see how my  
> suggestions so far work for you.
>
> --Karl
>
> 
> Karl Swedbergwww.englishrules.comwww.learningjquery.com
>
> On Oct 20, 2009, at 7:38 PM, thor wrote:
>
>
>
> > Hi,
> > I am looking for assistance with a loading problem and my apologies if
> > this is beyond the scope of this group.
>
> > I am running the lastest jQuery and Jquery cycle plugin. I haven't
> > done any customization per se only trying to get the two components to
> > work.  I am at the point where things "seem" to work, however when the
> > page loads all 4 images in my DIV span down the page and then merge
> > into one at the end of the page load.
>
> > I've seen other implementation of these 2 components but the images
> > don't flash first and then merge.
>
> > Do you believe I need to create another function or put some more
> > logic into my page to have it load correctly.  My goal would be to
> > have everything seemlessly loaded from the start.  I've explored the
> > document.ready function and believe I have it in the correct location
> > of my site.  No matter what though other parts of the page load
> > first
>
> > I realize there are a lot of unknown variables but maybe someone has
> > an idea?
>
> > My site is clippervacations.com and I am going to change out the
> > current homepage banners with jquery functionality.  Nothing is LIVE
> > right now, but perhaps someone can get an idea.
>
> > Thanks,
> > Thor


[jQuery] Facebox Youtube stopVideo

2009-10-19 Thread Sam Doyle

I've got a page that opens a youtube video with facebox. The facebox
closes correctly but the video doesn't stop playing.

So the sound carries on even if the video isn't visible:

This is the code I've tryed:



  You need Flash player 8+ and JavaScript enabled to view this
video.




  // http://www.youtube.com/v/ma9I9VBKPiw?
border=0&enablejsapi=1&playerapiid=ytplayer",
 "ytapiplayer", "425", "344", "8", null, null,
params, atts);


  $(document).bind('close.facebox', function() {
document.getElementById("myytplayer").stopVideo();
  })

  //]]>



[jQuery] Re: Replace image with SWF onClick

2009-10-17 Thread Sam Sherlock
you want to replace them when the user clicks the anchor tag?
or replace the anchor tag onload?

http://flowplayer.org/documentation/users-guide.html


- S




2009/10/17 knal 

>
> Hi group,
>
> I'm trying to achieve something (which doesn't seem to difficult to
> me) but i can't get it to work;
>
> I want to embed video's through a swf-videoplayer on my website.
>
> The idea is that i have (say 750 * 400 px) images wrapped in links.
> The links point at the videofile. If the user clicks the link, i want
> to replace the link+image by the swf video with the same dimensions...
>
> Hope this kind of makes sense.
>
> Thanks in advance,
> Knal


[jQuery] Re: Why no color animation built in?

2009-10-16 Thread Sam

Well why don't they bundle this in with the jQuery standard library?

On Oct 16, 11:21 am, Charlie  wrote:
> jQueryUi has color animationshttp://jqueryui.com/demos/animate/
> Sam wrote:I was just wondering, why doesn't jQuery have color animations 
> built- in to the library? JavaScript has hexadecimal number literals 
> (0xaabbcc), so it could be the way to define colors in the params argument 
> object. An array literal could also be used to set colors. Why is it that 
> jQuery hasn't implemented this by default?


[jQuery] Why no color animation built in?

2009-10-16 Thread Sam

I was just wondering, why doesn't jQuery have color animations built-
in to the library? JavaScript has hexadecimal number literals
(0xaabbcc), so it could be the way to define colors in the params
argument object. An array literal could also be used to set colors.

Why is it that jQuery hasn't implemented this by default?


[jQuery] Validating Australian ABN numbers

2009-10-15 Thread Sam

ABN - Australian Business Numbers

I knew they had to be numeric and 11 digits. Then i found this:
http://www.ato.gov.au/businesses/content.asp?doc=/content/13187.htm&pc=001/003/021/002/001&mnu=610&mfp=001/003&st=&cy=1

Which explains quite nicely how to validate a number. So I thought I
would share this:

function abnValidate(value, element){
if (value.length != 11 || isNaN(parseInt(value)))
return false;

var weighting =
[10,1,3,5,7,9,11,13,15,17,19];
var tally = (parseInt(value[0]) - 1) * weighting[0];
for (var i = 1; i < value.length; i++){
tally += (parseInt(value[i]) * weighting[i]);
}

return (tally % 89) == 0;
}

jQuery.validator.addMethod(
'abnValidate',
abnValidate, 'This ABN is not valid'
);


[jQuery] Re: Only one of two fields is required. How to implement this logic in Jquery form validation?

2009-10-13 Thread Sam

>>How to change the default position of an error message in Jquey form 
>>validation plugin?

This is easy to do. Just create a label element where you want the
error message to appear. If the field you are validating is called
"foo" your label would look like:

This field is required

You must put class="error" or if you have overridden the default error
class name you should set it to whatever you changed it too. You also
need to have the error message in the label as validate will now
ignore whatever is defined in the messages config (i think??).

You can put that label anywhere on the page... probably still has to
be inside the form.


[jQuery] Re: What is the more correct/efficient selector?

2009-10-13 Thread Sam Doyle
$("select").change(function() {

   alert($(this).attr("value"));


   });

On Tue, Oct 13, 2009 at 4:00 PM, Mike  wrote:

>
> $("select").change(function() {
>
>alert($("select option:selected").val());
>
>
>});
>
>
>
> OR
>
> $("select").change(function() {
>
>alert($(this).attr("value"));
>
>
>});
>
>
> I am specifically looking at the selector used in the alert.  From my
> testing the result in the same correct values to be displayed.


[jQuery] Re: append()

2009-10-13 Thread Sam Doyle

or
$("#id_percent_complete").parent().parent()

On Oct 13, 2:04 pm, Simon Morris  wrote:
> Hello,
>
> I'm having some problems understanding the append() function.
>
> What I'd like to do is select an element using it's ID and add a row to
> the table with a HTML form element.
>
> The table is dynamically generated using a Django template
> ( form.as_table() ) so I'm not able to alter the original HTML markup
> too much.
>
> If I had a table like this...
>
> Task Name: type="text" name="task_name" id="id_task_name" />
> Percent
> complete: id="id_percent_complete" />
> Start Date: type="text" name="start_date" id="id_start_date" />
> Finish Date: type="text" name="finish_date" id="id_finish_date" />
> Cost: name="cost" id="id_cost" />
> Task History: id="id_history" readonly="True" rows="10" cols="40" 
> name="history">
>
> ... I could select the right part of the markup with
>
> $("#id_percent_complete").append("New LabelNew Form 
> Element")
>
> But as the documentation says it appends to the inside of the matched 
> element, rather than adding it to the end. Because the element
> I have selected is a  it attaches my new content inside a  
> which isn't the result I am after.
>
> Apologies if the above is confusing - can anyone help?
>
> Thanks
>
> ~sm


[jQuery] Re: Binding a unique single and double click command

2009-10-07 Thread Sam

Thanks for the help! I nailed it with the following:

 $('.todo_item h2').live('click', function() {
clicks++;
x = $(this);
if (clicks == 1) singleClick = setTimeout(function() { clicks
= 0; showExtra(x); }, 300);
if (clicks == 2) { clearTimeout(singleClick); clicks = 0;
editInPlace(x); };

});


[jQuery] Re: jQuery slideup/slidedown iphone (3rd click bug)

2009-09-30 Thread Sam Doyle

The site can be viewed at http://d2d.samstestdomain.com

On Sep 30, 4:27 pm, Sam Doyle  wrote:
> I'm currently porting works website for iphone. I've wrote some jquery
> for sliding up/down divs:
>
> $(document).ready(function(){
>
>         //Corners
>         $('#insideContainer').corner('20px');
>
>         $('p.link a').removeAttr('href');
>         $('p.link a').css('cursor','pointer');
>
>         $('p.link a').click(function(){
>                 $('p.link a').css('color','#ff');
>                 $(this).css('color','#dd');
>                 var page = $(this).attr('id');
>                 var contentDiv = $(this).attr('rel');
>                 $('#'+contentDiv).load(page +' #toload');
>
>                 $('.content').slideUp(1500);
>                 $('#'+contentDiv).slideDown(500);
>         });
>
> });
>
> It works well until I open the 3rd unique div. (opening and closing 2
> unique divs multiple times works perfectly :s). When the 3rd
> individual div is opened it slides down approximately 5 pixels and
> freezes
>
> Any help would be great


[jQuery] jQuery slideup/slidedown iphone (3rd click bug)

2009-09-30 Thread Sam Doyle

I'm currently porting works website for iphone. I've wrote some jquery
for sliding up/down divs:

$(document).ready(function(){

//Corners
$('#insideContainer').corner('20px');

$('p.link a').removeAttr('href');
$('p.link a').css('cursor','pointer');

$('p.link a').click(function(){
$('p.link a').css('color','#ff');
$(this).css('color','#dd');
var page = $(this).attr('id');
var contentDiv = $(this).attr('rel');
$('#'+contentDiv).load(page +' #toload');

$('.content').slideUp(1500);
$('#'+contentDiv).slideDown(500);
});

});


It works well until I open the 3rd unique div. (opening and closing 2
unique divs multiple times works perfectly :s). When the 3rd
individual div is opened it slides down approximately 5 pixels and
freezes

Any help would be great


[jQuery] Binding a unique single and double click command

2009-09-29 Thread Sam

I'm trying to write some jQuery to do the following:

If a user clicks once on an object, do X.

If a user clicks twice on an object, do Y, but not X.

I've been having some trouble with this as, obviously, a double-click
will trigger the single-click twice. Here is a failed attempt:

$('.todo_item h2').live('click', function() {
var startTime = new Date();
$(this).mousedown(function() {
var endTime = new Date();
if (Math.abs(endTime - startTime) < 300) { editInPlace }
else { showExtra }
});
});

where editInPlace and showExtra are some functions I have defined
elsewhere in the document. This method, however, relies on a second
click, or mousedown at least, to work, which fails if the user only
clicks once.

I have also looked into setTimeout but without any fruitful results.
Anyone have any suggestions on how to code thsi?



[jQuery] jQuery crashing the page

2009-09-24 Thread Sam Doyle

I've got 2 pages:

a current events page and a past events page

the current events page loads fine as there is only about 10 events
the past events page takes about 30 seconds to load and will crash if
u click your mouse in the loading time

The pages are near identical the only difference is the query that
selects the events (> versus <)

The page loads immediately without:
http://ajax.googleapis.com/ajax/</a>
libs/jquery/1.3.2/jquery.min.js">

But when i put it back in the above happens. Any ideas welcome!

PC I'm using jQuery.roundedcorners.

Sam


[jQuery] Re: select cannot check checkboxes' states

2009-09-24 Thread Sam Doyle
$("input[type=checkbox]:checked").each(function()...);

On Thu, Sep 24, 2009 at 9:59 AM, Xi Shen  wrote:

>
> hi,
>
> i have a group of check boxes, and i want to iterator over all the
> checked ones. i use the following code, but without luck.
>
> $("input[type=checkbox][checked=true]").each(function()...);
>
> can someone give a better solution?
>
>
> --
> Best Regards,
> David Shen
>
> http://twitter.com/davidshen84/
> http://meme.yahoo.com/davidshen84/
>


[jQuery] Re: [Attrib "external" not working...]

2009-09-22 Thread Sam Doyle

$(document).ready(function(){
$("a [rel='external]'").attr("target","_blank");
});

Sorry


[jQuery] Re: [Attrib "external" not working...]

2009-09-22 Thread Sam Doyle

$(document).ready(function(){
$("a rel='external'").attr("target","_blank");
});


[jQuery] Re: Recommend a JS enabled/browser growler script/plug-in?

2009-09-22 Thread Sam Doyle

$.browser

On Sep 21, 5:38 pm, ldexterldesign  wrote:
> Cheers man. And the browser detection..?
>
> Thanks,
>
> On Sep 21, 5:14 pm, Liam Potter  wrote:
>
> > use noscript and conditional comments.
>
> > ldexterldesign wrote:
> > > // This site works best with JavaScript enabled and not using Internet
> > > Explorer. Take your pick of the others instead: Firefox, Google
> > > Chrome, Safari, Opera...
>
> > > Anyone? :P
> > > Thanks,


[jQuery] Re: jQuery(window).width() not registering sizes lower than 497 in Firefox.

2009-09-22 Thread Sam Doyle

I just ran this:





and it yielded the correct result in firefox 3.5.3

On Sep 21, 8:03 pm, indigo0086  wrote:
> I'm working on implementing a menu and need to have information when
> the menu size is larger than the width of the window.  The problem is
> that pas a certain point, jQuery("body").width() keeps registering
> 497, despite being much smaller than that.  Has anyone had this issue


[jQuery] Re: Browser sniffing - the correct way?

2009-09-21 Thread Sam Sherlock
>
> Often the best solution is to simply avoid troublesome features.


I think this article explains the concept well
http://www.alistapart.com/articles/testdriven
as simple as possible but not simpler

30,000 registered at TNL.net


that would be an awful lot to check; which is why checking is the user
supports the correct implementation of box model or cssFloat depending on
what your using is much smarter

- S


2009/9/21 RobG 

>
>
>
> On Sep 18, 1:32 am, ldexterldesign  wrote:
> [...]
> > This still leaves the issue of targeting browsers with JS/jQuery.
>
> You still seem to be missing the message: trying to compensate for
> browser quirks by detecting specific browsers is a flawed strategy.
> Browser detection is usually based on the user agent string, of which
> there are over 30,000 registered at TNL.net.
>
>
> > A
> > friend of mine just recommend:http://www.quirksmode.org/js/detect.html
>
> Don't use it. Don't even consider detecting specific browsers for
> javascript quirks. For HTML or CSS hacks, go to relevant forums. Often
> the best solution is to simply avoid troublesome features.
>
>
> --
> Rob


[jQuery] Re: jQuery PDF Viewer?

2009-09-16 Thread Sam Sherlock
I have'nt tried this but it does look goodhttp://pdfobject.com/
- S


2009/9/16 benji++ 

>
> I'm looking for something that can display a PDF in a way similar to a
> typical jQuery image gallery (or a desktop PDF viewer, e.g. Acrobat or
> Preview).  I tried out Mike Alsup's jQuery Media Plugin
> (www.malsup.com/jquery/media/), thinking that the "iframe player"
> might do the trick.  But of course, I still get the default browser
> behavior for a PDF, which in most cases (like Firefox) is to not
> display it at all.  Works great in Safari, though, especially with the
> AdobePDFViewer.plugin.
>
> So does anyone know of something that could enable PDFs to be
> displayed on the page?
>


[jQuery] Re: error in ie7 & ie8 only

2009-09-15 Thread Sam Sherlock
narrowed down but not solved


this causes error in ie
$('.body').block({
 message: '',
css: { border: '1px solid #FFF; background: #FFF;' }})

yet this works
$('.body').block({
message: 'Processing',
 css: { border: '3px solid #a00' }
});


so bit of further investigation and I now understand it

css: { border: '1px solid #FFF; background: #FFF;' }

needed to be (no semi colons and make the css setting a JSON object - ff et
al are more forgiving)
css: { border: '1px solid #FFF', background: '#FFF' }



- S


2009/9/15 Sam Sherlock 

> seems this may be relevant [1] but I can't find where I can parseInt -
> might be a plugin that is causing the issue
>
> I am using blockui - I thought that noticing that blockui uses this sz()
> which parses the int - maybe I need to make another plugin use sz()
>
> this results from the following
> $('.tabs a, a.groove').live('click', function(event, args) {
>  jLinkCall(event, args, this);
> event.preventDefault();
> event.stopPropagation();
>  return false;
> });
>
> [1]
> http://stackoverflow.com/questions/933564/jquery-widthval-error-in-ie-invalid-argument
>
> - S
>
>
> 2009/9/15 Sam Sherlock 
>
>> following up on that when debugging I can continue through the error and
>> it works as expected.  but with debugging off the process is interrupted
>> - S
>>
>>
>> 2009/9/15 Sam Sherlock 
>>
>> js code:
>>> function jLinkCall(e, a, o) {
>>> var jUrl = null, jArgs = null, obTitle = '';
>>>  // console.info('jLinkCall');
>>> // console.info(e);
>>>  // console.info(a);
>>> // console.info($(o).attr('href'));
>>>
>>> jUrl = $(o).attr('href') + '';
>>> jUrl = jUrl.replace(/.html/, '');
>>>
>>> if($(o).attr('title'))
>>> obTitle = $(o).attr('title');
>>>
>>> // block with growl
>>> //$('#body').growlUI('Growl Notification', 'Have a nice day!');
>>>  $('.body').block({
>>> message: '',
>>>  css: { border: '1px solid #FFF; background: #FFF;' }})
>>>  $.post('./json.php?p='+jUrl, null, jLinkComplete, "json")
>>>
>>> // convert the html url to json url
>>> // process the json object
>>>  // oncomplete call jLinkComplete
>>>
>>> }
>>>
>>> function jLinkComplete(data, status) {
>>>  // console.info('jLinkComplete');
>>> // console.info(data.titleStr);
>>>  // console.info(status);
>>> $('body').attr('class', '').addClass(data.titleStr);
>>>  $('.body').empty().html(data.contentStr).unblock();
>>> init();
>>> }
>>>
>>> set up in dom ready
>>> $('.tabs a').live('click', function(event, args) {
>>>  jLinkCall(event, args, this);
>>> event.preventDefault();
>>> event.stopPropagation();
>>>  return false;
>>> });
>>>
>>> This is an issue that only is apparent in ie7  & 8 all works without
>>> issue in other browsers - not ie 6  though (but who cares)  any ideas?
>>>
>>>
>>> - S
>>>
>>
>>
>


[jQuery] Re: error in ie7 & ie8 only

2009-09-15 Thread Sam Sherlock
seems this may be relevant [1] but I can't find where I can parseInt - might
be a plugin that is causing the issue

I am using blockui - I thought that noticing that blockui uses this sz()
which parses the int - maybe I need to make another plugin use sz()

this results from the following
$('.tabs a, a.groove').live('click', function(event, args) {
 jLinkCall(event, args, this);
event.preventDefault();
event.stopPropagation();
 return false;
});

[1]
http://stackoverflow.com/questions/933564/jquery-widthval-error-in-ie-invalid-argument
- S


2009/9/15 Sam Sherlock 

> following up on that when debugging I can continue through the error and it
> works as expected.  but with debugging off the process is interrupted
> - S
>
>
> 2009/9/15 Sam Sherlock 
>
> js code:
>> function jLinkCall(e, a, o) {
>> var jUrl = null, jArgs = null, obTitle = '';
>>  // console.info('jLinkCall');
>> // console.info(e);
>>  // console.info(a);
>> // console.info($(o).attr('href'));
>>
>> jUrl = $(o).attr('href') + '';
>> jUrl = jUrl.replace(/.html/, '');
>>
>> if($(o).attr('title'))
>> obTitle = $(o).attr('title');
>>
>> // block with growl
>> //$('#body').growlUI('Growl Notification', 'Have a nice day!');
>>  $('.body').block({
>> message: '',
>>  css: { border: '1px solid #FFF; background: #FFF;' }})
>>  $.post('./json.php?p='+jUrl, null, jLinkComplete, "json")
>>
>> // convert the html url to json url
>> // process the json object
>>  // oncomplete call jLinkComplete
>>
>> }
>>
>> function jLinkComplete(data, status) {
>>  // console.info('jLinkComplete');
>> // console.info(data.titleStr);
>>  // console.info(status);
>> $('body').attr('class', '').addClass(data.titleStr);
>>  $('.body').empty().html(data.contentStr).unblock();
>> init();
>> }
>>
>> set up in dom ready
>> $('.tabs a').live('click', function(event, args) {
>>  jLinkCall(event, args, this);
>> event.preventDefault();
>> event.stopPropagation();
>>  return false;
>> });
>>
>> This is an issue that only is apparent in ie7  & 8 all works without issue
>> in other browsers - not ie 6  though (but who cares)  any ideas?
>>
>>
>> - S
>>
>
>


[jQuery] Re: error in ie7 & ie8 only

2009-09-15 Thread Sam Sherlock
following up on that when debugging I can continue through the error and it
works as expected.  but with debugging off the process is interrupted
- S


2009/9/15 Sam Sherlock 

> js code:
> function jLinkCall(e, a, o) {
> var jUrl = null, jArgs = null, obTitle = '';
>  // console.info('jLinkCall');
> // console.info(e);
>  // console.info(a);
> // console.info($(o).attr('href'));
>
> jUrl = $(o).attr('href') + '';
> jUrl = jUrl.replace(/.html/, '');
>
> if($(o).attr('title'))
> obTitle = $(o).attr('title');
>
> // block with growl
> //$('#body').growlUI('Growl Notification', 'Have a nice day!');
>  $('.body').block({
> message: '',
>  css: { border: '1px solid #FFF; background: #FFF;' }})
>  $.post('./json.php?p='+jUrl, null, jLinkComplete, "json")
>
> // convert the html url to json url
> // process the json object
>  // oncomplete call jLinkComplete
>
> }
>
> function jLinkComplete(data, status) {
>  // console.info('jLinkComplete');
> // console.info(data.titleStr);
>  // console.info(status);
> $('body').attr('class', '').addClass(data.titleStr);
>  $('.body').empty().html(data.contentStr).unblock();
> init();
> }
>
> set up in dom ready
> $('.tabs a').live('click', function(event, args) {
>  jLinkCall(event, args, this);
> event.preventDefault();
> event.stopPropagation();
>  return false;
> });
>
> This is an issue that only is apparent in ie7  & 8 all works without issue
> in other browsers - not ie 6  though (but who cares)  any ideas?
>
>
> - S
>


[jQuery] error in ie7 & ie8 only

2009-09-15 Thread Sam Sherlock
js code:
function jLinkCall(e, a, o) {
var jUrl = null, jArgs = null, obTitle = '';
 // console.info('jLinkCall');
// console.info(e);
 // console.info(a);
// console.info($(o).attr('href'));

jUrl = $(o).attr('href') + '';
jUrl = jUrl.replace(/.html/, '');

if($(o).attr('title'))
obTitle = $(o).attr('title');

// block with growl
//$('#body').growlUI('Growl Notification', 'Have a nice day!');
 $('.body').block({
message: '',
 css: { border: '1px solid #FFF; background: #FFF;' }})
 $.post('./json.php?p='+jUrl, null, jLinkComplete, "json")

// convert the html url to json url
// process the json object
 // oncomplete call jLinkComplete

}

function jLinkComplete(data, status) {
 // console.info('jLinkComplete');
// console.info(data.titleStr);
 // console.info(status);
$('body').attr('class', '').addClass(data.titleStr);
 $('.body').empty().html(data.contentStr).unblock();
init();
}

set up in dom ready
$('.tabs a').live('click', function(event, args) {
 jLinkCall(event, args, this);
event.preventDefault();
event.stopPropagation();
 return false;
});

This is an issue that only is apparent in ie7  & 8 all works without issue
in other browsers - not ie 6  though (but who cares)  any ideas?


- S


[jQuery] Re: KFManager v1.0

2009-08-20 Thread Sam Sherlock
great work Ken

on the mce page the normal mce manager opens for me - and as Cyril said the
page is title FCK
on the fck page you open KFManager by clicking in the text box above the
editor whereas the mce example does not have a way of opening kfmanager

it would be better to replace normal function of the image icon (and other
media too eg flash) witht the kfmanager

- S


2009/8/20 Cyril Lopez 

>
> On your tinyMce page : http://trinhvietcuong.com/ken/tinymce.html you have
> "KFManager for FCKeditor" as page label...
>
>
> --
> Cyril Lopez
> Développeur web
> www.nethik.fr
>
> 2009/8/20 Ken 
>
> without license GPL, MIT. I'm happy when you want to use and develop KFM
>>
>> 2009/8/20 Meroe 
>>
>>
>>> Well yea.  Let's say I want to put this into a commercial app.  I need to
>>> know the type of license this was released under so I can make a decision
>>> and be legit  The download has no license information..GPL? MIT?
>>>
>>> -Original Message-
>>> From: jquery-en@googlegroups.com [mailto:jquery...@googlegroups.com] On
>>> Behalf Of Ken Phan
>>> Sent: Wednesday, August 19, 2009 3:15 PM
>>> To: jQuery (English)
>>> Subject: [jQuery] Re: KFManager v1.0
>>>
>>>
>>> u want licensing terms ?
>>>
>>> On Aug 19, 2:54 am, "Meroe"  wrote:
>>> > What are the licensing terms?
>>> >
>>> > -Original Message-
>>> > From: jquery-en@googlegroups.com [mailto:jquery...@googlegroups.com]
>>> On
>>> >
>>> > Behalf Of Ken Phan
>>> > Sent: Tuesday, August 18, 2009 12:21 PM
>>> > To: jQuery (English)
>>> > Subject: [jQuery] KFManager v1.0
>>> >
>>> > KFManager (Ken's File Manager) is a plugin of jquery. It uses AJAX to
>>> > manage image files in a web browser and it was developed to help
>>> > programmer gently in the file manager. It is easy to use
>>> >
>>> > demo >>http://trinhvietcuong.com/ken/index.html
>>>
>>>
>>
>>
>> --
>> --
>> -
>> Administrator : Ken Phan
>> Websmater : www.goldengate.com.vn
>> Listen to music is free :  www.enghe.info
>> Ajax pagination: www.goldengate.com.vn/pagination
>> jQuery navigation: www.goldengate.com.vn/navigation
>> MP3 Ajax Flash webplayer: www.goldengate.com.vn/mp3
>> Blog me: http://my.opera.com/kenphan19/blog/
>> --
>>
>
>


[jQuery] Re: Check if movie (.mp4) is finished

2009-07-25 Thread Sam Sherlock
I think you'd have to load a swf and have that call back to the page (via ex
interface) when its completed
hth - S


2009/7/25 Eswip 

>
> Hi everyone,
>
> I'm using the jQuery Media Plugin to play a movie (.mp4) on a page
> when a button is clicked. But I want to remove the  from the
> DOM when the movie is finished. Is this possible? And in what way? I
> searched on the group here and googled, but I found nothing.
>
> Regards,
> Eswip
>


[jQuery] (validate) No-URL

2009-07-06 Thread Sam

I used the URL checker in the Plugins/Validation, to create a no-url
checker.  This can be useful to prevent some spam from coming through
in a form.

nourl: function(value, element) {
return this.optional(element) || !(/^(https?|ftp):\/\/[a-z]|
\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!
\$&'\(\)\*\+,;=]|:)*@)?(((\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|
[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.
(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5]))|((([a-z]|\d|[\u00A0-\uD7FF\uF900-
\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-
\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*
([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|
[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF
\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-
\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-
\uFFEF])))\.?)(:\d*)?)(\/((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-
\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)+(\/(([a-z]|
\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!
\$&'\(\)\*\+,;=]|:|@)*)*)?)?(\?((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF
\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|
[\uE000-\uF8FF]|\/|\?)*)?(\#((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-
\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|\/|\?)*)?$/
i.test(value));},


[jQuery] Re: Flash movie not playing in IE6, but working fine in firefox & google chrome

2009-06-23 Thread Sam Sherlock
Have you tried the google group for swfobject?
- S


2009/6/23 krishna1...@gmail.com 

>
> Hi All,
>
> I have used the swfobject.js file & its methods to play a flash movie
> in my webpage. It works fine when I open the page in firefox & chrome
> but does not work in IE-6.
>
> Below is the code i used:
>
> 
>
>
>function loadSWF(url) {
>var flashvars = {
>  autostart: false,
>  thumb: "videos/call/FirstFrame.png",
>  thumbscale: 45
>};
>swfobject.embedSWF(url, "flashcontent", "440",
> "300",
> "9.0.0","expressInstall.swf", flashvars);
>}
>
>
>
>
>
> Please help me on this.
>


[jQuery] Re: Using Zend IDE with jquery

2009-06-13 Thread Sam Sherlock
I gave up with eclipse in favour of netbeans.

However this is for Eclipse PDT but uses 1.2.6
http://www.langtags.com/jquerywtp/

The netbeans jquery addon also uses 1.2.6

I wonder how much of a chore it would be updating them to 1.3.2? I have not
looked into doing it

- S


2009/6/13 Josh Powell 

>
> zend with eclipse has some plugins.  I don't use them though, so I'm
> not sure where to get them.
>
> On Jun 12, 2:13 pm, Arun  wrote:
> > Hi,
> > Has anyone ever tried using the zend ide with jquery? Any comments on
> > this would be appreciated.
> >
> > Arun
>


[jQuery] Re: image for public usage

2009-05-04 Thread Sam Sherlock
see these
http://docs.jquery.com/Design_and_Identity

http://blog.jquery.com/2006/11/07/jquery-button-contest-winners/

- S


2009/5/4 Tim Johnson 

>
> Since jQuery is one of my "tools" - I'd like an appropriately
> "public" image to use on my website.
>
> Are any available?
> thanks
> tim
>


[jQuery] Modifying element on drop into sortable list

2009-05-03 Thread Sam Hastings

Hi everyone,

I've got a Draggable list working in conjunction with a Sortable list.
When I drag an item from the draggable to the sortable list I want to
modify the contents of the list. The code I'm using right now is:

$("#list li").draggable({
   connectToSortable: "#page ol",
   containment: "window",
   helper: "clone",
   revert: true,
   revertDuration: 0,
   appendTo: "body"
});

$("#page ol").sortable({
   handle: ".drag_handle",
   receive: function(event, ui) {
  $(ui.item).css('background','red');
   }
});

Instead of modifying the dropped element it actually modifies the
source element in the draggable list. I've tried using ui.helper
instead of ui.item but this has no effect whatsoever.

Can anyone suggest a different way of going about this? Thanks in
advance!

Sam


Re: re[jQuery] moveAttr('href') on document load?

2009-05-03 Thread Sam Granger


Thanks Charlie! That did the trick :)

Charlie Tomlinson wrote:
> 
> 
> 
> 
> 
> 
> 
> removeAttr() will take the whole href property out of the tag 
> 
> <a href="something.php"> Test</a> will become <a>
> Test</a> 
> 
> if you want to keep href property you could overwrite the href values 
> 
> $('#add a').attr('href','#'); produces 
> 
> <a href="#"> Test</a> 
> 
> 
> 
> Sam Granger wrote:
> 
>   
>   $(function() {
>   $('#add a').removeAttr('href');
>   });
> 
> What's wrong with this code? I want to remove all href's from a tags
> onload
> of a document. Still a bit new to jQuery so sorry for this silly question!
> Just been trying to figure it out for ages. The links are in a div with id
> add.
> 
> Thanks for all the help!
> 
> Sam
>   
> 
> 
> 
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/removeAttr%28%27href%27%29-on-document-load--tp23355653s27240p23358784.html
Sent from the jQuery General Discussion mailing list archive at Nabble.com.



Re: re[jQuery] moveAttr('href') on document load?

2009-05-03 Thread Sam Granger


Awesome, thanks! That works exactly how I want it!:)
-- 
View this message in context: 
http://www.nabble.com/removeAttr%28%27href%27%29-on-document-load--tp23355653s27240p23358695.html
Sent from the jQuery General Discussion mailing list archive at Nabble.com.



re[jQuery] moveAttr('href') on document load?

2009-05-03 Thread Sam Granger


$(function() {
$('#add a').removeAttr('href');
});

What's wrong with this code? I want to remove all href's from a tags onload
of a document. Still a bit new to jQuery so sorry for this silly question!
Just been trying to figure it out for ages. The links are in a div with id
add.

Thanks for all the help!

Sam
-- 
View this message in context: 
http://www.nabble.com/removeAttr%28%27href%27%29-on-document-load--tp23355653s27240p23355653.html
Sent from the jQuery General Discussion mailing list archive at Nabble.com.



[jQuery] Re: $().someFunction(); -- The First Pair of Parentheses?

2009-05-03 Thread Sam Sherlock
$ == jQuery

to make jQuery work when other js frameworks are also in use you can make
jQuery() work too - avoiding conflicts

the first set of parenthis are for passing params to the jquery object

AFAIK When setting defaults for jquery plugins the parenthis are not
required.  I don't know if they are optional here or not - plugin defaults
are variables used by plugins, which extend the jquery object (props &
methods)

- S


2009/5/3 kiusau 

> .getBrowserInformation


[jQuery] Re: new version of loopedSlider is out! Looking for feed back

2009-04-30 Thread Sam Sherlock
- S


2009/4/30 Nathan 

>
>
>
> Yes that is very possible and pretty easy.
>
> Just download and include the jQuery Easing Plugin into your page:
> http://gsgd.co.uk/sandbox/jquery/easing/
>
> And lets say you want to add easeInOutExpo easing to the slide
> animation. Just find the two lines that have:
>
> $(o.slides,obj).animate({left: m}, o.slidespeed,function(){
>
> You'll want to add easeInOutExpo after the instance of o.slidespeed
> like this:
>
> $(o.slides,obj).animate({left: m}, o.slidespeed, easeInOutExpo,
> function(){
>
> You can do the same thing after o.autoHeight and o.fadespeed.
>
> That'll do it.
>
> Let me know how that works for you.
>
>
> On Apr 30, 4:59 am, betweenbrain  wrote:
> > Nathan,
> >
> > Very cool!
> >
> > Is it possible to use this in conjunction with something like easing
> > to add a little effect to the transition?
> >
> > Keep up the great work!
> >
> > Matt
> >
> > On Apr 29, 9:55 am, Nathan  wrote:
> >
> >
> >
> > > Just released a new version of loopedSlider and am looking for some
> > > feedback.
> >
> > > loopedSlider is a plugin made for jQuery that solves a simple problem,
> > > the looping of slide content. It was created to be easy to implement,
> > > smooth and most of all end the "content rewind" that most other
> > > content sliders suffer from.
> >
> > > New in version 0.5
> > > Re-coded from the ground up
> > > Even easier to implement
> > > Use DIVs, LIs or ?
> > > Smoother animation
> > > Container click for next feature
> > > And the most requested feature, auto interval
> >
> > > Examples
> > > http://nathansearles.com/loopedslider/example-1.html";
> > > target="_blank">Simple example using images and DIVs
> > > http://nathansearles.com/loopedslider/example-2.html";
> > > target="_blank">Simple text and auto height example using LIs
> > > http://nathansearles.com/loopedslider/example-3.html";
> > > target="_blank">Multiple sliders and auto play example
> >
> > > Downloadhttp://code.google.com/p/loopedslider/
>


[jQuery] Re: Getting started with jQuery

2009-04-19 Thread Sam Sherlock
try the following
http://www.learningjquery.com/category/levels/beginner
www.*slideshare*.net/simon/*jquery*-in-15-minutes
http://www.slideshare.net/remy.sharp/prototype-jquery-going-from-one-to-the-other

- S


2009/4/20 yrstruly 

>
> Hello
>
> Can somebody maybe please give me a basic code to start testing
> jQuery, cause the beginners code on this site is not doing anything
> for me?
>
> Thank you
>
>


[jQuery] Closing Ajax Requests

2009-04-03 Thread Sam

I couldn't find anything on this in the jQuery documentation. Is there
a way to close all jQuery ajax requests? I've built a bit of comet-
like long polling ajax script, but it seems as though Internet
Explorer is keeping these long polling requests open when I refresh or
redirect to another page. Sense IE has a 2 connections per domain
limit, the client would have to wait till the long polling is complete
(which takes roughly 1 minute) before the other pages load. So what I
need is a way to stop all ajax requests so I can place it in a
onbeforeunload event.

Anyone know of a way that I can stop all jQuery ajax requests?


[jQuery] Re: script tag in HTML

2009-04-03 Thread Sam Sherlock
 type="text/javascript">
> 


and


>

changing type to text/javascript - this is why nothing occurs
removing the language attribute.  its not required

if you testing locally on a windows machine then paths with \ can work but
moving them to a server they need to be /.  Testing locally ie will give you
some restictions and security warnings will appear.

also if you test locally you can have your project in a folder and use /
with relative paths fro there.  Removing spaces from files and directories
is a headache saver

- S


2009/4/3 michael.marri...@ausawd.com 

>
> How can I refer to multiple sources of javascript in my HTML.
> For example if in my HTML I already have a line such as :
>
>