[jQuery] Re: jQuery.com Broken?

2008-07-20 Thread Kevin Pepperman
same here. no CSS. degrading gracefully.

On Sun, Jul 20, 2008 at 3:46 PM, xwisdom [EMAIL PROTECTED] wrote:


 Hello,

 The website is not rendering the CSS.



[jQuery] Re: remove dynamically placed dom element

2008-07-14 Thread Kevin Pepperman
For dynamicly loaded elements you will need to use a plugin.

I suggest the 'listen' plugin.

Refer to the FAQ for more information.

http://docs.jquery.com/Frequently_Asked_Questions#Why_do_my_events_stop_working_after_an_Ajax_request.3Fhttps://mail.google.com/mail/#inbox/11b1f57192f17027

On Sun, Jul 13, 2008 at 9:46 PM, Tom Shafer [EMAIL PROTECTED] wrote:


 I am using this code to add a new item to a list

 $(#addLinks).submit(function()
 {

$.post(addLinks.php,{ step:'addLink',title:$
 ('#title').val(),url:$('#url').val(),pageID:$('#pageID').val()} ,
function(data)
{
$('#'+$('#pageID').val()).
append(li id='link_'+data+a
 href='javascript://'
 id='delete' onclick='deleteitem(+data+); return false;'img
 src='img/delete.gif' //ah1+$('#title').val()+/h1p+$
 ('#url').val()+/p/li);
$('#link_'+data).effect(pulsate, { times: 3 },
 1000);

});
   return false;
 });

 as you can see i am adding a href='javascript://' id='delete'
 onclick='deleteitem(+data+); return false;'img src='img/
 delete.gif' //a
 to delete the newest dom element.

 this works on page refresh but I would like it to work right after
 someone added the dom element

 here is what i am using to delete data from the database and the
 element that goes along with the delete item

 function deleteitem(id) {
$(function() {
$.post(addLinks.php,{ step:'deleteLink',linkId:+id});
$('#link_'+id).remove();

 });
 }

 $('#link_'+id).remove();  removes the item after a page refresh. How
 can it the element be removed without a page refresh after being added

 thanks

 -tom




-- 
Fred Allen  - Television is a medium because anything well done is rare.


[jQuery] Re: show hidden div on click

2008-07-14 Thread Kevin Pepperman
without seeing all your code...

The main thing I see wrong here is you are calling your fadin() function
with an unneeded argument that is also a string that is not encased by
quotes.

The argument is not required for your function at all--

So try this:

a class=fadein onclick=fadein();Overview/a

If you DO need the argument for some reason use:

a class=fadein onclick=fadein('#overview');Overview/a

On Mon, Jul 14, 2008 at 6:48 PM, David J Bauer [EMAIL PROTECTED]
wrote:


 n00b here attempting to implement a simple jQuery function: I want to
 slowly show (fade in) a hidden division after clicking a text anchor
 (link). I've managed to get some jQuery plugins working correctly, but
 coding something myself is apparently beyond my current capabilities.
 :P


 Here is the script code, inserted in the head:

 script type=text/javascript
$(document).ready(function(){

function fadein() {
$(#overview).show(slow);
  $(.fadein).click(fadein) {
});
  });
});
 /script


 Here is the style code for the division from the CSS file:

 div#overview {
  width: 746px;
  height: 340px;
  position: relative;
  top: -415px;
  left: 0px;
  background-color: #e4f0c5;
  z-index: 1;
  margin: 5px;
  border: 2px solid #90a35d;
  text-align: left;
  color: #294145;
  padding: 10px;
  visibility: hidden;
 }


 And here is the HTML code from the body:

 a class=fadein onclick=fadein(#overview);Overview/a


 Note that in the CSS I have visibility as hidden: is that a problem?

 Thanks for any assistance!

 Regards,
 -neuron




-- 
Vince Lombardi  - Winning is habit. Unfortunately, so is losing.


[jQuery] Re: Calling PHP Functions from jQuery?

2008-07-14 Thread Kevin Pepperman
I think this plugin does what you are looking for:

http://plugins.jquery.com/project/EUReCa

On Mon, Jul 14, 2008 at 10:11 AM, Yavuz Bogazci [EMAIL PROTECTED] wrote:


 Hi,

 is it possible to call php functions from jquery? I knew how to call
 a .php page from jquery with $.post and to echo output or return a
 JSON Object. But my application growth and there is an increase in
 single php pages. This is very confusing and the filemanagement is
 getting complicated.

 How are you solving this problem? Is a good tutorial or info out
 there? I have searched google and couldnt find a useful answer.

 thank a lot
 yavuz




-- 
Yogi Berra  - A nickel ain't worth a dime anymore.


[jQuery] Re: [ Add Onclick on loaded image ]

2008-07-10 Thread Kevin Pepperman
since the image is loaded dynamicly,you should use the jquery.listen plugin.

It will allow you to 'listen' for the element and attach a click event to
the newly created image.

$('#mydiv').listen( 'click', 'img.myimgclass', function(){
   //My code to run

 });

On Thu, Jul 10, 2008 at 7:30 AM, Topayung, Amdys Max [EMAIL PROTECTED]
wrote:

 Hi,,

 This is what i change so far.. But it always execute the alert each time
 the image is loading.

$.fn.image = function(src, f){
   return this.each(function(){
 var i = new Image();
 i.src = src;
 i.onload = f;
 *i.onclick = alert(c);*
 this.appendChild(i);
  });
}

  $(#thumbnail).image(returData[0],*satu*,function(){});

 Thanks..
 Regards.
 Amdys




-- 
Robert Benchley  - Drawing on my fine command of the English language, I
said nothing.


[jQuery] Re: Superfish / Firefox 3 PC / Flash issue

2008-07-08 Thread Kevin Pepperman
Get Firefox and install the Firebug Plugin.

It will let you inspect the DOM and see whatever generated code there is in
realtime.

It will also let you see the CSS applied to each element do see if you may
have any Z indexing issues or strange div spans.



On Mon, Jul 7, 2008 at 11:50 PM, Joel Birch [EMAIL PROTECTED] wrote:


 This is interesting. I wonder if you can track down the differences in
 the generated source between the two methods of embedding? That would
 be great to know.

 Thanks for the info Chad!

 Joel Birch.




-- 
Simone de Beauvoir  - To catch a husband is an art; to hold him is a job.


[jQuery] changing value of a object sub variable

2008-07-08 Thread Kevin Pepperman
I have a simple plugin working that utilizes the jquery.flash plugin.

I am using my plugin to load a flash file that has around 20 flashvars. (i
only listed a few here).

Most of the time the default flashvars are fine..but sometimes I need to
modify only certain flashvariables... but not all of them.

My question is how do I change only one of the flashvars so I dont have to
add every single flashvar to every methodcall.?

my plugin code:

 jQuery.fn.test = function(options) {
   var settings = jQuery.extend({
  src: Viewer.swf,
  menu: false,
  wmode: 'Opaque',
  width: 270,
  height: 280,
  flashvars: {
   ImagePath: /myImagePath/,
   xmlPath : /mtyXmlPath/,
   intX: 0,
  intY: 0
  // ... Plus around 16 other vars.
 }
}, options);

$(this).flash(settings,{ version: 9 });

};
-

If I use:

  $('#mydiv').test({flashvars: { ImagePath : /myImagePath/  });

It overwrites all the default flashvars.

and of course this wont work either:

   $('#mydiv').test({flashvars.ImagePath : /myImagePath/  });

There must be some way to access just one of the flashvars.

Anyone know of a way to do this?

Thanks!


[jQuery] Re: How to replace a div content?

2008-07-07 Thread Kevin Pepperman
Try setting the div html to empty first.

jQuery(#elem).html().html('bmy text/b');

On Mon, Jul 7, 2008 at 10:04 AM, SimDigital [EMAIL PROTECTED] wrote:


 How could i replace a html content inside the div?

 I have 1 div (div id=elemini text/div) and everytime i click a
 button, i want to replace the html content inside the #ELEM to new
 one.

 I try to use:

 jQuery(#button).click(function() {
jQuery(#elem).html('bmy text/b');
 });

 but everytime i click the button, the html is not replaced, resulting
 something like:

  bmy text/bbmy text/b

 What is the solution?




-- 
Paul Lynde  - I sang in the choir for years, even though my family belonged
to another church.


[jQuery] Re: Plugin better than Lighbox or Thickbox

2008-07-06 Thread Kevin Pepperman
That majicthumb script looks a lot like this one.

http://vikjavev.no/highslide/

Charging for this is pretty lame. They would be better off making tham free
and benefiting from the traffic they would generate.

On Sun, Jul 6, 2008 at 5:07 PM, Alexandre Plennevaux [EMAIL PROTECTED]
wrote:


 On Sun, Jul 6, 2008 at 3:39 PM, David Morton [EMAIL PROTECTED] wrote:
  Why do you think it is better?
 
  On Sun, Jul 6, 2008 at 6:59 AM, [EMAIL PROTECTED] wrote:
 
  Dear folk,
  do we have such a plugin like below ...
  I have test the Demo version it is much more better from our Lightbox
  Plugin, the only problem it has is with AJAX , it can not support
  it 
  please let me know if there is such an ability in our jQuery
  http://www.magictoolbox.com/magicthumb/
 
 
 
  --
  David Morton
  [EMAIL PROTECTED] - bulk address
  [EMAIL PROTECTED] - direct to my server


 i can't believe they charge 20 pounds for such a script. I can make
 this kind of implementation using jqModal in 2 hours.




-- 
Rita Rudner  - When I eventually met Mr. Right I had no idea that his first
name was Always.


[jQuery] Re: Help finding this script

2008-07-04 Thread Kevin Pepperman
The effects on this page are done with Adobe Flash.

I am not sure how you would do that with jQuery. But I will bet it could be
done to some extent.

On Fri, Jul 4, 2008 at 2:32 PM, Pedro Correia [EMAIL PROTECTED] wrote:


 Greetings!


 I'm trying to find some jquery plugin like on this webpage
 http://w1.siemens.com/entry/cc/en/

 However I don't know that effect name, so I really don't know how to
 search :)

 For instance you have some links like: Drive Technologies, Automation
 Technologies, Solutions for Industries, etc; when onmouseover the
 header changes to other picture and changes the header text also, and
 when you click on those links you see an animation too.

 Can anyone help me finding this plugin (if jquery has something like
 that, of course :))


 Best Regards!




-- 
Simone de Beauvoir  - To catch a husband is an art; to hold him is a job.


[jQuery] Re: AJAX data inserted into DOM does not trigger click-event

2008-06-15 Thread Kevin Pepperman
Have you tried the listen plugin?
It works with dynamicly added content.

http://plugins.jquery.com/project/Listen

On Sun, Jun 15, 2008 at 12:52 PM, Thasmo [EMAIL PROTECTED] wrote:


 Hoi guys!

 I define a event trigger $('#id div a).click().

 The url in the href attribute of the a tag is called via $.ajax
 and the returned data is inserted into the #id element.

 So, the actual HTML in the #id event is replaced
 by the data AJAX response data. After the data
 was inserted into the #id element, the click event
 is not working anymore for HTML code which was
 inserted in the #id element.

 What can be the reason for this?

 Thanks so much for your help!




-- 
He's spending $300 million in advertising to convince people of something
he claims there is already a consensus on.--
--Think of it as going green by getting lots of green.
-Glenn Beck (CNN) about Al Gore.


[jQuery] Re: Sorting Divs by Span Value

2008-06-12 Thread Kevin Pepperman
This is a handy plugin.

But it seems to be throwing an expected '('  error in IE. and not
functiong correct.

FF works OK.

If anyone else can confirm the but I will post a bug report.




On Tue, Jun 10, 2008 at 11:55 AM, Seth - TA [EMAIL PROTECTED]
wrote:


 Found this plugin to do the job. TinySort -
 http://www.sjeiti.com/?page_id=321

 On Jun 5, 7:29 pm, Dave Methvin [EMAIL PROTECTED] wrote:
  Wrap that html in a div id=hotels /div and try this code
  triggered by a button or link.
 
  function reorder(sortby, direction)
  {
  Array.prototype.sort.call($(div.hotel), function(a,b){
  var av = $(a).find(span.+sortby).text();
  var bv = $(b).find(span.+sortby).text();
  return direction==ascending? av-bv : bv-av;
  }).appendTo(#hotels);
 
  }
 
  sortby is the class name of any of the spans like distance or rate;
  direction is ascending (low to high) or descending. The code
  assumes the spans should always be sorted as numeric values.
 
  That code should be plenty fast for a dozen or so entries, but it
  would get slow for 100 because it requeries for the span values on
  eachsortcomparison.




-- 
He's spending $300 million in advertising to convince people of something
he claims there is already a consensus on.--
--Think of it as going green by getting lots of green.
-Glenn Beck (CNN) about Al Gore.


[jQuery] Re: Pimped-out Numeric input

2008-06-08 Thread Kevin Pepperman
the spin Button script is similar to this.

http://plugins.jquery.com/project/spin-button


On Sun, Jun 8, 2008 at 5:03 PM, Frantisek Malina [EMAIL PROTECTED] wrote:


 Hi all,
 Anyone seen this sort of numeric input implemented in JQuery?
 It would be nice quantity input for shopping carts where you expect
 people to buy high number of smaller items.
 http://fczbkk.com/js/slide_set/

 Script: http://fczbkk.com/js/slide_set/slide_set.js
 Dependencies: http://fczbkk.com/js/dom/dom.js




-- 
He's spending $300 million in advertising to convince people of something
he claims there is already a consensus on.--
--Think of it as going green by getting lots of green.
-Glenn Beck (CNN) about Al Gore.


[jQuery] Re: hiding a div on document ready?

2008-06-07 Thread Kevin Pepperman
Giuliano showed you the correct way to hide the div.

But If you do want to add that css to the element it would be used like
this.

$(document).ready(function(){
$(#durl).css({ display:none;  });
 });


On Sat, Jun 7, 2008 at 3:50 PM, Giuliano Marcangelo 
[EMAIL PROTECTED] wrote:

 make sure you use the* # *sign to signify that it is an element with an *
 id* of durl, and then *hide *it 

 $(document).ready(function(){
$(*#*durl).hide();
});

 2008/6/7 mark [EMAIL PROTECTED]:


 hi, am just beginning with jquery, and i want to hide a div to begin.
 i tried this and it doesnt work and it is not hidden. do you know what
 is wrong?
 i also tried, $(durl).css(display,none);

 is this wrong?
 thanks



 html
 head
  script type=text/javascript
 src=http://jqueryjs.googlecode.com/files/jquery-1.2.6.pack.js;/script
  script type=text/javascript
$(document).ready(function(){
$(durl).style.display=none;
});
  /script
 /head
 body

 div id=durl 
   p
 label for=curlURL/label
 input id=curl name=url size=25 class=required  type=text /
   /p
 /div
 /body
 /html