[jQuery] Re: jqGrid 35.5 released

2009-08-01 Thread Charlie





Amazing work!  I've used the beta 3.5 . Themeroller integration is very
cool and the level of customization of jQgrid functionality is
outstanding

Tony wrote:

  Happy to announce the final 3.5 release of jqGrid.
New wiki Documentation at http://www.trirand.com/jqgridwiki
The demo at http://www.trirand.com/jqgrid/jqgrid.html
and final the home : http://www.trirand.com/blog

Enjoy
Tony

  






[jQuery] Re: Default Menu

2009-08-01 Thread Charlie





http://users.tpg.com.au/j_birch/plugins/superfish/#options

use pathClass for your "current" . Can assign any class name you want
then add it to options in constructor

As for sfHover class, it's reserved for script to manage CSS when sub
levels are open, sffHover will be added to li's. Wouldn't recommend
adding it manually

For single element different than others : create an addClass() and
make any class name you want and style it accordingly

jan wrote:

  Hi!

I'm trying to show the selected menu with a different color background
when a user clicks on a particular main menu item. This works with a
ul that does not have child items on it. But ul's with child elements
the css does not seem to work and seemed overridden by _javascript_.

What i did was on the program logic that automatically produces the
unordered list of menu items, I inserted a class 'sfHover' for li
items that is equal to the current page. Again, this works on the
menus that does not have child elements.

Is there any possible way I can configure a selected menu item showing
with a different backround color from the rest of the menus?

By the way, superfish suckerfish is totally awesome! Keep up the good
work!

  






[jQuery] Re: How can I select an element's parent?

2009-08-01 Thread FrenchiINLA

you should change your html something like:

FIRST
SECOND
THIRD

then in order to get the id of your li you can use the following code
$('a', '#product_links').click(function() {
alert($(this).parent().attr('id'));
});


On Aug 1, 11:39 am, macsig  wrote:
> Hello guys,
> I'm trying to update a script I found out there in order to fit better
> my needs.
>
> The first step I want to update is the capability to bind a dynamic
> number of anchors.
> Right now with the HTML below
>
> 
>    FIRST>
>    SECOND
>    THIRD
> 
>
> I have the script below:
>
>  $("#product_links .first a ").bind("click", function(){ pupup_element
> ("first"); });
>  $("#product_links .second a ").bind("click", function(){ pupup_element
> ("second");});
>  $("#product_links .third a ").bind("click", function(){ pupup_element
> ("third");});
>
> It works fine but since the number of anchors changes dynamically
> (through RoR) I'd like to have just 1 line that binds all the anchors.
> So here 2 questions for you:
>
> - how can I select an element's parent?
> - Does the code below work?
>
>   $("#product_links a ").bind("click", function(){ pupup_elemet
> ("this.PARENT.id");});
>
> basically I want to bind all the anchors within the product_links list
> to popup_element function that takes as a parameter the ID of the
> anchor parent. In my case the id of the list item.
>
> Thanks and have a nice weekend.
>
> Sig


[jQuery] jCarousel Bug???

2009-08-01 Thread Karega

I am attempting to use multiple carousels with a callback function on
one page, and for some reason when I click the next button of one
carousel, a previous on the same page increments as well as the
carousel that contains the next button.  After doing some debugging I
realized that the both carousels have the same instance of the
callback function.  Why is this happening?


[jQuery] Re: page-sliding jQuery Javascript code not playing with DHTML page

2009-08-01 Thread utimass


I decided to put it an iframe.


utimass wrote:
> 
> correction, I got the images showing now, but not the animation.
> 

-- 
View this message in context: 
http://www.nabble.com/page-sliding-jQuery-Javascript-code-not-playing-with-DHTML-page-tp24679601s27240p24774392.html
Sent from the jQuery General Discussion mailing list archive at Nabble.com.



[jQuery] Re: jCarousell and tabs problem

2009-08-01 Thread Klaus Hartl

Please see:
http://docs.jquery.com/UI/Tabs#...my_slider.2C_Google_Map.2C_sIFR_etc._not_work_when_placed_in_a_hidden_.28inactive.29_tab.3F



On 30 Jul., 20:01, vvaz  wrote:
> Hello all.
>
> I have a problem with the jCarousel Plugin when i try to display a
> second carousel inside one tab.
>
> Ok, the first one displays the right way. When i click the second tab,
> the second carousel is displayed but with a width of 60px (that i
> don't know how they got there).
>
> My html is this:
>
>  Section:
>
>         
>         
>         
>         
>         
>         
>         
>          media="screen" charset="utf-8" />
>         
> 
>
> jQuery(document).ready(function() {
>         jQuery('.first-and-second-carousel').jcarousel();
>         jQuery('#view2-carousel').jcarousel({
>         });});
>
> 
>
> and the  section:
>
> 
>         
>                 
>                 
>         
>         
>                 
>                 
>                          class="first-and-second-carousel jcarousel-
> skin-tango">
>                                 Something
>                                 Something
>                                 Something
>                         
>                 
>                 
>                          class="first-and-second-carousel jcarousel-
> skin-tango">
>                                 Something
>                                 Something
>                                 Something
>                         
>                 
>
> When i see the generated code in Firefox, it displays this for the
> second one:
> 
>
> So how do i fix this?
>
> I saw 2 answers, but i can't apply them, because i don't know how.
> First:
> From: Bhaall
>
> Forcing’ the width of the UL just after rendering the carousel does
> the trick, BTW:
>
> $(’ul#first-carousel’).css(”width”,”1008px”);
> $(’ul#second-carousel’).css(”width”,”1008px”);
>
> Second:
> From:John Fiala
>
> I’ve been using multiple carousels within tabs – the way I handle it
> is that I don’t initialize a carousel on page load – I initialize it
> when the tab is displayed. That way, it all generates nicely.
>
> Looking forward to trying out this version in the near future.
>
> Anyone can help me just to put the code in the right place? Or have
> any solution for this?
>
> thanks in advance


[jQuery] Reply to Default Menu post

2009-08-01 Thread Ed Marvin




Hi,

It wasn't clear to me if you were talking about the treeview.js plugin
or not. If not just ignore this reply. If so, see the following figure.
If this is the effect you want I'll send you the code. Notice that the
leaves have a blue background; the nodes have a transparent background.



Ed
elm.mar...@gmail.com






[jQuery] Default Menu

2009-08-01 Thread jan

Hi!

I'm trying to show the selected menu with a different color background
when a user clicks on a particular main menu item. This works with a
ul that does not have child items on it. But ul's with child elements
the css does not seem to work and seemed overridden by javascript.

What i did was on the program logic that automatically produces the
unordered list of menu items, I inserted a class 'sfHover' for li
items that is equal to the current page. Again, this works on the
menus that does not have child elements.

Is there any possible way I can configure a selected menu item showing
with a different backround color from the rest of the menus?

By the way, superfish suckerfish is totally awesome! Keep up the good
work!


[jQuery] Unable to trigger a event on page load

2009-08-01 Thread wolf

I bind a custom event on page A,then ajax load page B。In page B,there
is a  link which trigger the custom event.
Problem is :the trigger function work when i place the trigger
function in page A ,but not work in B by ajax load.
Help!

jQuery Core:v1.3.2


[jQuery] jQuery [treeview] Question

2009-08-01 Thread Ed

Hi,

I'm a jQuery beginner.
My browser is Firefox 3.5.1
I'm using Treeview 1.4
   Revision Id: jquery.treeview.js
4684 2008-02-07 19:08:06Z
joern.zaefferer

I have two questions:

1.Whenever I click on either of my two Treeview control
  labels "Collapse" or "Expand" (see below) the respective label
  visibly gets the focus (dotted border). I want to remove
  (blur) this border, but I don't know what I need to change
  in the treeview.js code to get this effect.
  How can I do this?


  Relevant portion of my code:

  
   
 
$(document).ready(function(){
   $("#tree").treeview({
 control:  "#treecontrol",
  collapsed: true,
  animated: "fast"
   });
});
 


Collapse All
    | 
Expand All  


 ... 


2.I would like to add easing, specifically "easeOutBounce"
  from George Smith's easing plugin. How can I do this?

Any help would be most appreciated.
elm.mar...@gmail.com


[jQuery] jQuery ::: Assign a function dynamically?

2009-08-01 Thread knobbyknees

The function below formats a text field for autocompletion based on
the element id.  The thing is, that when a user begins typing in the
field, another row with the same name will appear beneath it, so that
the input fields wind up looking like this:





Since each input field can only have one id, and the id has to be
unique, I'm trying to figure out how to assign the autocomplete
function to each of these input fields whenever they appear?  I
thought maybe if I could just partially match the name?

This is the autocomplete function:

$('#months').autocomplete({
  width: 300,
  delimiter: /(,|;)\s*/,
  lookup:
'January,February,March,April,May,June,July,August,September,October,November,December'.split
(',')
});



This is the auto append function:

$( function(){
$("#months > tbody > tr > td > input").bind('click', function()
{
var row = $(this).closest("tr").get(0);
if( row.className.indexOf("clicked")==-1 )
{
$(row).closest("tbody").append
($(row).clone(true));
row.className+="clicked";
}
});
});



I did try to use a class instead, but it still only assigned the
autocomplete values to the first row and not subsequent ones:


jQuery(function() {

$('input.monthname').autocomplete({
  width: 300,
  delimiter: /(,|;)\s*/,
  lookup:
'January,February,March,April,May,June,July,August,September,October,November,December'.split
(',')
});

  });


I also tried this, but didn't even get the autocomplete on the first
row:

$( function(){
$("#months > tbody > tr > td > input").bind('click', function()
{
var row = $(this).closest("tr").get(0);
if( row.className.indexOf("clicked")==-1 )
{
var rowCopy=$(row).clone(true);
$(row).closest("tbody").append
(rowCopy);
row.className+="clicked";
var newInput=$("input",rowCopy).get
(0);
newInput.id="newId";
$(newInput).bind('keyup',function() {


$(this.id).autocomplete({

width: 300,

delimiter: /(,|;)\s*/,

lookup:
'January,February,March,April,May,June,July,August,September,October,November,December'.split
(',')
});

});
}
});
});


[jQuery] Re: jqGrid 35.5 released

2009-08-01 Thread Tony

Hello,
Sorry - the release is 3.5
Tony

On Aug 1, 10:23 pm, Tony  wrote:
> Happy to announce the final 3.5 release of jqGrid.
> New wiki Documentation athttp://www.trirand.com/jqgridwiki
> The demo athttp://www.trirand.com/jqgrid/jqgrid.html
> and final the home :http://www.trirand.com/blog
>
> Enjoy
> Tony


[jQuery] jqGrid 35.5 released

2009-08-01 Thread Tony

Happy to announce the final 3.5 release of jqGrid.
New wiki Documentation at http://www.trirand.com/jqgridwiki
The demo at http://www.trirand.com/jqgrid/jqgrid.html
and final the home : http://www.trirand.com/blog

Enjoy
Tony


[jQuery] Re: How can I select an element's parent?

2009-08-01 Thread Michael Geary

Sig, the parent of your  element is the , which has no id attribute.

It sounds like you want the class attribute, not the id, so you could
change:

.attr('id')

To:

.attr('className')

-Mike

> From: Macsig
> 
> Thanks Richard for your reply.
> 
> I have tried your code but looks like something is wrong.
> To be sure I catch the right id I tried something like
> 
>  $("#product_links a").bind("click", function() { alert( $
> (this).parent().attr("id") ); });
> 
> and I get an empty alert window.
> 
> 
> Am I missing something?
> 
> Thanks again for your help. I appreciate it
> 
> 
> 
> Sig
> 
> 
> On Aug 1, 11:46 am, "Richard D. Worth"  wrote:
> > $("#product_links a ").bind("click", function() {
> >   pupup_elemet( $(this).parent().attr("id") );
> >
> > });
> >
> > - Richard
> >
> >
> >
> > On Sat, Aug 1, 2009 at 2:39 PM, macsig  wrote:
> >
> > > Hello guys,
> > > I'm trying to update a script I found out there in order to fit 
> > > better my needs.
> >
> > > The first step I want to update is the capability to bind 
> a dynamic 
> > > number of anchors.
> > > Right now with the HTML below
> >
> > > 
> > >   FIRST>
> > >   SECOND
> > >   THIRD 
> >
> > > I have the script below:
> >
> > >  $("#product_links .first a ").bind("click", function(){ 
> > > pupup_element ("first"); });
> > >  $("#product_links .second a ").bind("click", function(){ 
> > > pupup_element ("second");});
> > >  $("#product_links .third a ").bind("click", function(){ 
> > > pupup_element ("third");});
> >
> > > It works fine but since the number of anchors changes dynamically 
> > > (through RoR) I'd like to have just 1 line that binds all 
> the anchors.
> > > So here 2 questions for you:
> >
> > > - how can I select an element's parent?
> > > - Does the code below work?
> >
> > >  $("#product_links a ").bind("click", function(){ pupup_elemet 
> > > ("this.PARENT.id");});
> >
> > > basically I want to bind all the anchors within the product_links 
> > > list to popup_element function that takes as a parameter 
> the ID of 
> > > the anchor parent. In my case the id of the list item.
> >
> > > Thanks and have a nice weekend.
> >
> > > Sig
> 



[jQuery] Re: How can I select an element's parent?

2009-08-01 Thread Macsig

Thanks Richard for your reply.

I have tried your code but looks like something is wrong.
To be sure I catch the right id I tried something like

 $("#product_links a").bind("click", function() { alert( $
(this).parent().attr("id") ); });

and I get an empty alert window.


Am I missing something?

Thanks again for your help. I appreciate it



Sig


On Aug 1, 11:46 am, "Richard D. Worth"  wrote:
> $("#product_links a ").bind("click", function() {
>   pupup_elemet( $(this).parent().attr("id") );
>
> });
>
> - Richard
>
>
>
> On Sat, Aug 1, 2009 at 2:39 PM, macsig  wrote:
>
> > Hello guys,
> > I'm trying to update a script I found out there in order to fit better
> > my needs.
>
> > The first step I want to update is the capability to bind a dynamic
> > number of anchors.
> > Right now with the HTML below
>
> > 
> >   FIRST>
> >   SECOND
> >   THIRD
> > 
>
> > I have the script below:
>
> >  $("#product_links .first a ").bind("click", function(){ pupup_element
> > ("first"); });
> >  $("#product_links .second a ").bind("click", function(){ pupup_element
> > ("second");});
> >  $("#product_links .third a ").bind("click", function(){ pupup_element
> > ("third");});
>
> > It works fine but since the number of anchors changes dynamically
> > (through RoR) I'd like to have just 1 line that binds all the anchors.
> > So here 2 questions for you:
>
> > - how can I select an element's parent?
> > - Does the code below work?
>
> >  $("#product_links a ").bind("click", function(){ pupup_elemet
> > ("this.PARENT.id");});
>
> > basically I want to bind all the anchors within the product_links list
> > to popup_element function that takes as a parameter the ID of the
> > anchor parent. In my case the id of the list item.
>
> > Thanks and have a nice weekend.
>
> > Sig


[jQuery] Re: How can I select an element's parent?

2009-08-01 Thread Richard D. Worth
$("#product_links a ").bind("click", function() {
  pupup_elemet( $(this).parent().attr("id") );
});

- Richard

On Sat, Aug 1, 2009 at 2:39 PM, macsig  wrote:

>
> Hello guys,
> I'm trying to update a script I found out there in order to fit better
> my needs.
>
> The first step I want to update is the capability to bind a dynamic
> number of anchors.
> Right now with the HTML below
>
>
> 
>   FIRST>
>   SECOND
>   THIRD
> 
>
> I have the script below:
>
>  $("#product_links .first a ").bind("click", function(){ pupup_element
> ("first"); });
>  $("#product_links .second a ").bind("click", function(){ pupup_element
> ("second");});
>  $("#product_links .third a ").bind("click", function(){ pupup_element
> ("third");});
>
>
> It works fine but since the number of anchors changes dynamically
> (through RoR) I'd like to have just 1 line that binds all the anchors.
> So here 2 questions for you:
>
> - how can I select an element's parent?
> - Does the code below work?
>
>
>  $("#product_links a ").bind("click", function(){ pupup_elemet
> ("this.PARENT.id");});
>
> basically I want to bind all the anchors within the product_links list
> to popup_element function that takes as a parameter the ID of the
> anchor parent. In my case the id of the list item.
>
>
> Thanks and have a nice weekend.
>
>
> Sig


[jQuery] Re: Evaluating json problem

2009-08-01 Thread Michael Geary

Do you have any debugging tools such as Firebug? You don't have to spend
hours on a problem like this, when Firebug can show you the answer
instantly.

Simply put this line of code before your eval():

console.log( json );

Then look at the Firebug console. You will see that your 'json' variable is
not a string.

In fact, it is an array object. The $.getJSON() function does the eval() for
you, so by the time it calls your callback function, you already have the
JSON data as an object (or array, or whatever type the JSON string
represents).

That's why the error message cites this code:

items1=[object Object]

Because 'json' is an object, when you write:

"items1=" + json

JavaScript converts the 'json' object back into a string, using that generic
'[object Object]' format.

Since 'json' is already the array object you're looking for, instead of
using eval() you can simply do a normal variable assignment:

items1 = json;

With that fixed, though, I suspect you're about to run into another problem.

Reading between the lines, I have a feeling you may be writing code like
this:

var items1;

$.getJSON(dataURL, function(json){
items1 = json;
});

// Now do stuff with 'items1' here

If so, that won't work. The code where that "Now do stuff..." comment
appears will run *before* the JSON data is downloaded, so the value of
'items1' will be undefined.

If you want to do something with the JSON data, you need to do it by calling
a function at the time that the $.getJSON callback is called:

$.getJSON(dataURL, function(json){
doStuff( json );
doSomethingElse( json );
andMoreStuff( json );
});

Indeed, that's why $.getJSON uses a callback function in the first place -
because that's the only to insure that the JSON data is ready when that code
is run.

-Mike

> From: UK
> 
> Hello,
> 
> I'm trying to execute simple scenario, from the server side 
> (servlet) I'm returning: out.print("[{\"type\":\"basic\"}]");
> 
> on the client side I have :
> 
>  var dataURL = "<%=response.encodeURL(request.getContextPath())%>/
> FetchData";
> 
>  var items1;
> 
>  $.getJSON(dataURL, function(json){
> 
>   eval("items1="+json);
>  });
> 
> FireFox is showing jscript exception in the console:
> 
> Error: missing ] after element list
> Source File: http://localhost:10038/wps/PA_1lb791mt//jsp/html/test.jsp
> Line: 345, Column: 15
> Source Code:
> items1=[object Object]
> 
> 
> Also tried with, but result was the same :
> items1 = eval("(" + eval(json) + ")");
> 
> Lost several hours trying to solve this but no success.
> 
> Thanks
> 



[jQuery] How can I select an element's parent?

2009-08-01 Thread macsig

Hello guys,
I'm trying to update a script I found out there in order to fit better
my needs.

The first step I want to update is the capability to bind a dynamic
number of anchors.
Right now with the HTML below



   FIRST>
   SECOND
   THIRD


I have the script below:

 $("#product_links .first a ").bind("click", function(){ pupup_element
("first"); });
 $("#product_links .second a ").bind("click", function(){ pupup_element
("second");});
 $("#product_links .third a ").bind("click", function(){ pupup_element
("third");});


It works fine but since the number of anchors changes dynamically
(through RoR) I'd like to have just 1 line that binds all the anchors.
So here 2 questions for you:

- how can I select an element's parent?
- Does the code below work?


  $("#product_links a ").bind("click", function(){ pupup_elemet
("this.PARENT.id");});

basically I want to bind all the anchors within the product_links list
to popup_element function that takes as a parameter the ID of the
anchor parent. In my case the id of the list item.


Thanks and have a nice weekend.


Sig


[jQuery] lightbox problem when using scrollable

2009-08-01 Thread huminuh83


I'm using a gallery scrollable component for thumbnails. When a user clicks
on the thumbnails it loads that larger version of the image into a div on
the same page. All the large images are already loaded into the div.

My problem is when a user goes to click on the larger version of the image I
want it to open with lightbox, but no matter which thumbnail they click on,
it always starts at the first image in the lightbox. You can see the problem
shown here.

http://tsutsumidaphoto.com/Mihoko/akiko3.php
http://tsutsumidaphoto.com/Mihoko/akiko3.php 


So if you click on the third thumbnail, then click on the large version of
that it opens up the first image and not the third.

Any help / comments would be greatly appreciated, and thanks for taking the
time! I'm thinking it has something to do with the way I'm loading the large
images into the div (that they are already all there).

huminuh83
-- 
View this message in context: 
http://www.nabble.com/lightbox-problem-when-using-scrollable-tp24770620s27240p24770620.html
Sent from the jQuery General Discussion mailing list archive at Nabble.com.



[jQuery] Re: Superfish z-index problem with googlemap in IE

2009-08-01 Thread rupak mandal
Thanks for the responce.

On Sat, Aug 1, 2009 at 7:36 PM, Boris Anthony wrote:

>
> Having the same problem.
> From what I can gather, Superfish in IE7 goes behind any element that
> has "position:relative;" declared, and it just so happens that
> embedded Google maps seem to require it's container to declare that
> explictly.
>
> I can't provide a demo right now (about jump on a plane) but if no one
> elsee  knocks one up, I could try tomorrow.
>
> Thanks
> B.
>
>
> On Jul 31, 8:38 am, amuhlou  wrote:
> > can you post a link to an example page where this is happening?
> >
> > thanks
> >
> > On Jul 31, 8:06 am, appu  wrote:
> >
> >
> >
> > > Hi All
> > > I am using thesuperfishmenu on a page that also has agooglemapon
> > > it. It work fine in FF but  the menu will display below the  google
> > >mapin IE.  I have already change the z-index:999 and
>  > > position:absolute, but the result remains same for IE.
> >
> > > Thanks in advance for your help
>


[jQuery] Re: Superfish z-index problem with googlemap in IE

2009-08-01 Thread Boris Anthony

Having the same problem.
>From what I can gather, Superfish in IE7 goes behind any element that
has "position:relative;" declared, and it just so happens that
embedded Google maps seem to require it's container to declare that
explictly.

I can't provide a demo right now (about jump on a plane) but if no one
else knocks one up, I could try tomorrow.

Thanks
B.


On Jul 31, 8:38 am, amuhlou  wrote:
> can you post a link to an example page where this is happening?
>
> thanks
>
> On Jul 31, 8:06 am, appu  wrote:
>
>
>
> > Hi All
> > I am using thesuperfishmenu on a page that also has agooglemapon
> > it. It work fine in FF but  the menu will display below the  google
> >mapin IE.  I have already change the z-index:999 and
> > position:absolute, but the result remains same for IE.
>
> > Thanks in advance for your help


[jQuery] How to change message while the page is blocked using blockUI plugin

2009-08-01 Thread Caletti

Hello people, i'd like to know if it's possible change de message
while the page is block by "blockUI" jquery plugin. I've tried a lot
of things, but none was good. One thing i've tried was using CSS
selectors like:

$('blockUI blockMsg blockPage').innerHTML

but it hasn't worked.

Any idea?


Thanks


[jQuery] Re: Superfish z-index problem with googlemap in IE

2009-08-01 Thread Boris Anthony

Amazingly, on the same day... I just hit this problem as well.

Superfish, in IE7 does not seem to like elements with
position:relative; behind it. And it seems embedded Google Maps
require their containers to include a "position:relative;"

@amuhiou: sorry, posting example code is not realistic in this case.
Google API keys etc. If you really want to help you need to set up a
test yourself. thnx tho! :\

z-index'ing the google map to minus anything disables it's ability to
be manipulated in any way (zooming, dragging etc... it's like it's not
even there). the solution will need to be something to do with
Superfish's implementation. :\

Hope we can get this fixed!



On Jul 31, 8:38 am, amuhlou  wrote:
> can you post a link to an example page where this is happening?
>
> thanks
>
> On Jul 31, 8:06 am, appu  wrote:
>
>
>
> > Hi All
> > I am using thesuperfishmenu on a page that also has agooglemapon
> > it. It work fine in FF but  the menu will display below the  google
> >mapin IE.  I have already change the z-index:999 and
> > position:absolute, but the result remains same for IE.
>
> > Thanks in advance for your help


[jQuery] Multiple Jqueries, multiple elements not behaving well

2009-08-01 Thread duky

Hi all,

I am attempting to use two different Jquery scripts on my page and
they each have their own  css declarations which I'm having a hard
time getting around. I tried using an iframe to contain the other
elements and while it worked, it was not an elegant approach for what
I ultimately needed to do. I'm not sure exactly what the issue is. The
site with the iframe can be viewed here:

web.me.com/neechi.mosha/R-L

which is how I want it to look. However, when I try to bring the tabs
onto the main page inside the horizontal accordion I get the tabs
appearing below the accordion, looking very strange. This is my code:






  

  





  














   







  







   


  

  







Any ideas??


[jQuery] Evaluating json problem

2009-08-01 Thread UK

Hello,

I'm trying to execute simple scenario, from the server side (servlet)
I'm returning: out.print("[{\"type\":\"basic\"}]");

on the client side I have :

 var dataURL = "<%=response.encodeURL(request.getContextPath())%>/
FetchData";

 var items1;

 $.getJSON(dataURL, function(json){

eval("items1="+json);
 });

FireFox is showing jscript exception in the console:

Error: missing ] after element list
Source File: http://localhost:10038/wps/PA_1lb791mt//jsp/html/test.jsp
Line: 345, Column: 15
Source Code:
items1=[object Object]


Also tried with, but result was the same :
items1 = eval("(" + eval(json) + ")");

Lost several hours trying to solve this but no success.

Thanks


[jQuery] Re: Slow response to AJAX calls in IE7

2009-08-01 Thread waseem sabjee
I tested this on Ie that pulling data from a web page itself used to take
quite a while and would end up being frustratingly slow.

as soon as i switched to a web service things were better.

my problem was on ie7 only.


On Sat, Aug 1, 2009 at 12:03 PM, Adrian Lynch wrote:

>
> Could you expand on this? How would a webservice fix the problem?
>
> On Jul 31, 10:55 pm, waseem sabjee  wrote:
> > i had this some time ago.
> > solution.
> > use a XML webservice.
> >
> > you are probably calling a specific html element from a specific page and
> > injecting it into your page.
> >
> > using a XML webservice should sort things out.
> >
> > XML webservice can be done in both PHP and .NET so yeah...
>


[jQuery] Re: Overflow difficulties

2009-08-01 Thread Warren
Anyone?

On Jul 28, 8:02 pm, Warren  wrote:
> I have this website:
>
> http://www.vampsworld.com/freelance_projects/aawc/
>
> with this JQuery:
>
> 
>         $(document).ready(function() {
>
>           $('#homemenuoption')
>                         .css( {backgroundPosition: "-20px 35px"} )
>                         .mouseover(function(){
>                                 
> $(this).stop().animate({backgroundPosition:"(-20px
> 94px)",height:"231px"},{duration:200});
>                         })
>                         .mouseout(function(){
>                                 
> $(this).stop().animate({backgroundPosition:"(40px
> 35px)",height:"34px"}, {duration:600, complete:function(){
>                                         $(this).css({backgroundPosition: 
> "-20px 35px"})
>                           }})
>                 })
>
>                 });
> 
>
> and this html
>
> 
>                                         Home |  href="#">Sitemap |  href="#">Contact Us
>                                 
>                         
>                         
>           
>                 
>                                                 Home
>                                                          style="position:relative;z-index:
> 100;background-color:#089CAA">
>                                         
>                                                 Submenu 1
>                                                 Submenu 2
>                                                 Submenu 3
>                                                 Submenu 4
>                                                 Submenu 5
>                                                 Submenu 6
>                                         
>                                                                         
>                               
>
> For some reason the homesubmenu doesn't show when the box is
> homemenuoption is stretched, and should no longer be hidden as
> overflow.
>
> Any help would be appreciated.

[jQuery] Workarounds for invalidating a cached representation on HTTP POST?

2009-08-01 Thread Dam

Hi all,

How do you workaround the fact that, e.g., firefox doesn't invalidate
a cached resource representation in the browser upon POSTing to the
uri of the resource?

My scenario is this:
A Google Map GETs a resource (a list of geo. points) which is cached
for an hour on the client to avoid the overhead of additional HTTP
requests. On another page a single point can be edited.
Now POSTing an updated point to the list resource doesn't invalidate
the cached representation as it should (a common problem:
http://www.mnot.net/javascript/xmlhttprequest/cache.html). Since the
cache is not invalidated the update is hidden on the map until time
invalidates the cached representation.

Any workarounds?

kind regards
Jakob


[jQuery] Re: Form Validation

2009-08-01 Thread G Tupman
Please elaborate? need some more info

On Fri, Jul 31, 2009 at 9:38 PM, Ratheesh  wrote:

>
> Hi,
> In my jquery validattion, the control which is invalid doesnt get
> focus..
> Do you guys know what the reason is..?
>
> Thanks in advance
> Ratheesh
>


[jQuery] Re: Need help with table sorter

2009-08-01 Thread Adrian Lynch

If you can't or don't want to add a table footer, you can pass the
sorter a selector that excludes the last row. The last sorter I looked
at didn't allow you to pass the selector in so I had to modify the
source.

On Jul 31, 10:08 pm, aquaone  wrote:
> http://www.w3schools.com/tags/tag_tfoot.asp
>
> On Fri, Jul 31, 2009 at 07:36, Razor M  wrote:
>
> > Is it possible to do some changes so that the bottom row will not be
> > included while doing the sorting?
>
> > Suppose I have totals in the bottom row, so I do not want that row to
> > be
> > sorted while using the table sorter through jquery.
>
> > Please let me know if it can be done.


[jQuery] Re: Slow response to AJAX calls in IE7

2009-08-01 Thread Adrian Lynch

Could you expand on this? How would a webservice fix the problem?

On Jul 31, 10:55 pm, waseem sabjee  wrote:
> i had this some time ago.
> solution.
> use a XML webservice.
>
> you are probably calling a specific html element from a specific page and
> injecting it into your page.
>
> using a XML webservice should sort things out.
>
> XML webservice can be done in both PHP and .NET so yeah...