The beauty of json is that you can transfer alot of different data in
an organized way. You can very easily send back success/failure status
along with the html.
success: function(response) {
// Response was a success
if (response.status) {
Hi,
Got a bit of a weird one here :/
The following code works fine:
jQuery.post(/cgi-bin/review.cgi, {
Review_Rating: the_rating,
ID: theID,
add_this_review: 1,
Review_Contents: contents,
The problems im facing is when I use something like jcarousellite inside
tabs. It works fine in browsers other than ie. In ie, the carousel loads
fine in the active tab, but in the inactive ones it doesnt preload.
Basically when you click on a previously inactive tab, it displays nothing
until
I found a way to do this in the .cgi script - but obviously I'd prefer
to do it vai the AJAX submission, instead of having to encode it
properly at the server end :)
my $contents = $IN-param('Review_Contents');
$contents =~ s/([\200-\377]+)/from_utf8({ -string = $1, -
charset =
I think I should point out that you can't have more than one element
with the same ID, they are by definition unique. The reason is that
the getElementById method depends on there being only one item with
the ID passed to it in the DOM. If there is more than one item then
behaviour is undefined.
I used jquery tabs on an html mock-up and everything worked perfectly,
click on tabs changes them.
I then tried to impliment tabs on the live site and there are some
differences. First when you click on a tab the tab text is replaced
with the words 'loading' and then the whole page is some how
Hello Nick,
I've put up a very basic view of what you're looking for here
http://pastebin.com/f4f2a029e
Hope this helps you get what you're looking for.
If you need more help let me know.
Nalum
On Jan 10, 11:25 pm, Nick Le Mouton nood...@planetslackers.com
wrote:
Hi everyone,
I've just
Have you considered giving us the link to the live site?
What is jQuery's long-term strategy for browser support - cut off
browsers after a certain number of years or when going below a certain
market share?
[I'm asking because of the current trend (among some webdevs and also
library developers) advocating to remove IE6 support and force these
users
Hi jQuery gurus,
I have a website where services, software,etc get reviewed. What i
want to do is enable users to display reviews in their own websites as
testimonials and as extra backlink for me.
I am looking for a js widget that can do that. My web application is
coded in Java
I am looking
Hello.
Ive just got the Superfish mod for my site but the blue color dosnt
look good with the design on my page and makes it impossible to read
the text in the menu, any way to change the color of the menu to red
like the old menu at (http://medielinjen.pgu.dk/joomla)
youll be able to see how the
Hi,
I'm using Superfish menu system on my website and I am attempting to
move the sub items across, but when I put a margin-left on it, it
moves both the sub items and the sub sub items. How can I have only
the sub items move?
You say, you have jQuery code inside the DIVs?
The code should be at the bottom of the page, right before you close
BODY.
NOTE! Instructions how to make it easier for us to help you:
1. Go here http://vidasp.net/HTML5-template.html
2. Copy the code into a text-editor.
3. Write a simple demo
modify the superfish.css to accomodate design
zeebaah wrote:
Hello.
Ive just got the Superfish mod for my site but the blue color dosnt
look good with the design on my page and makes it impossible to read
the text in the menu, any way to change the color of the menu to red
like the old
I am completely unable to help you based on your supplied info.
NOTE! Instructions how to make it easier for us to help you:
1. Go here http://vidasp.net/HTML5-template.html
2. Copy the code into a text-editor.
3. Write a simple demo demonstrating your problem.
4. If you have an active hosting,
You mean UL LI UL LI, instead of UL LI LI?
Because you're not supposed to put LIs inside LIs...
On Jan 10, 8:14 pm, Adrian Lynch adely...@googlemail.com wrote:
I get a bad feeling when I'm asked to go to a site using IE!
Anyone had a look?
I couldn't see anything strange with IE. What animations are causing
problems?
-- Scott
Sorry, I wasn't sure if one was needed. Here is an example:
http://krautspotter.bungert.co.uk/article/goerlitzer-park.html
This loading of the whole page never happened with the static mock-up.
Also jquery seems to have created it's own tabs. I never called them
hrefs like #ui-tabs-22
It would be really stupid (for a JS library) to cut off any browser
with market-share above 1%, especially IE6 which won't go below 1%
until maybe 2011.
You can be sure, they won't do that.
The big sites (Youtube, Facebook, ...) are doing a good job in asking
their visitors to upgrade, but IE6
The sub menu ul's are absolute positioned at {left:-999} when not
visible, then at {left:0} when visible.
To adjust position you need to modify the {left:0}
NetReach Australia wrote:
Hi,
I'm using Superfish menu system on my website and I am attempting to
move the sub items across, but
UL LI LI will still work as CSS selector. The second LI is still a
descendant of the first one, regradless of it's parent and the css is
written that way.
ime Vidas wrote:
You mean UL LI UL LI, instead of UL LI LI?
Because you're not supposed to put LIs inside LIs...
It violates the standard and you should avoid such practice.
Proper nesting:
ul
liFirst
ul
liOne/li
liTwo/li
/ul
/li
liSecond/li
/ul
Please, put a demo of the problem online...
Šime Vidas wrote:
It violates the standard and you should avoid such practice.
Proper nesting:
ul
liFirst
ul
liOne/li
liTwo/li
/ul
/li
liSecond/li
/ul
Please, put a demo of the problem online...
It's perfectly ok to omit the ul's
my point is to not confuse someone with a css problem by having to
change css selectors that work, and is the basis for structure of the
css in superfish
jQuery would work also with same selector $("ul li li"). The html
needs to be vaild for sure but OP was css
ime Vidas wrote:
It
Hi,
Thanks for the reply. I tested that code, and it works - the problem
is, there are newlines etc in the page too - how would I go about
that?
Also, all I really need is the erorr message ...i.e:
Gast Email der Rezension kann nicht den Wert 'undefined'
How would I go about this?
TIA!
Andy
Hi,
Thanks for the reply. However, your code only seems to be any good
with the actual page content you are on, not the values of a string?
Remember, this data is coming through as a string (as a response from
a jQuery .post() function, so the returned HTML then holds errors
which may have
If the html is in a string, e.g. 's':
$(s).html() would return everything inside the outer div.
If it includes more than just that error, you can do something like:
$(s).find('div.error').html()
On Mon, Jan 11, 2010 at 6:42 AM, youradds andy.ne...@gmail.com wrote:
Hi,
Thanks for the reply.
I have found the solution to this and this may come in handy for anyone who
wants to use tabs (with display: none property) where the content requires
initialization at page load.
Simply change your hidden tab style in the css as follows:
.tabhide {
position: absolute;
top: -5000px;
}
I
Is there a simple way (not multiple parent() and counting
prevSiblings) to know which is the XPath of and element selected by a
click (like firebug) ?
Right on...looks easy enough.
Is response.html saying to display it as html? I tried making an array to
pass as json from php then json_encode it so my arrr was $response =
array('status' = true , 'view' = 'all my html code went here')
But when I returned my view data from the array it was all
Thanks, will give that a go :)
On Jan 11, 2:48 pm, John Arrowwood jarro...@gmail.com wrote:
If the html is in a string, e.g. 's':
$(s).html() would return everything inside the outer div.
If it includes more than just that error, you can do something like:
$(s).find('div.error').html()
On Jan 10, 11:49 pm, SkilliPedia skillipe...@googlemail.com wrote:
I have a website where services, software,etc get reviewed. What i
want to do is enable users to display reviews in their own websites as
testimonials and as extra backlink for me.
I am looking for a js widget that can do
But if I am returning json I cant return my normal html
I don't understand why...
I pretty much exclusively use JSON back and forth in my jQuery AJAX
calls and have a standard JSON object i return:
{
HasError: boolean,
Message: string.
Data: object,
Count: integer
}
Many times i'll
have a look at the jCarousel plugin - i think that should do what you need.
http://sorgalla.com/jcarousel/
Jon
2010/1/9 JQNovice i...@chamonixmountainguides.com
I am very new to JQuery but so far very happy with ease of use.
I have created a series of thumbnails that slide as the left,
Thanks - this works perfectly now:
var test = jQuery(response).find('div.error ul li').html();
Thanks agian for the help everone - much appreciated
Cheers
Andy
On Jan 11, 2:48 pm, John Arrowwood jarro...@gmail.com wrote:
If the html is in a string, e.g. 's':
$(s).html() would return
Anyone got any suggestions? This is the last bug I've gotta squish :/
TIA
Andy
On Jan 11, 9:18 am, youradds andy.ne...@gmail.com wrote:
I found a way to do this in the .cgi script - but obviously I'd prefer
to do it vai the AJAX submission, instead of having to encode it
properly at the
Hi,
I used jQuery 1.3.2 and Firefox for the following html
html
head
style type=text/css
.content .division .category.selected {
background: red;
}
/style
/head
body
div class=categories
div class=content
div class=body
ul id=category-list
li class=division
What I mean is, in normal HTML if you have a link to go to the top of
the page you write
a name=top id=top/a
.
..
a href=test.html#topgo top/a
When you type in your browser
http://localhost/lab2/class2.html#top
it takes you to the top of the page. This way you can also go to the
specific
this seems to answer your question somewhat:
http://stackoverflow.com/questions/26620/how-to-set-encoding-in-getjson-jquery
although I'd personally recommend to just use utf-8 for everything (so
making your website and database use utf-8)
Jonathan
youradds wrote:
Anyone got any suggestions?
actually, putting this once somewhere in your script should fix it:
$.ajaxSetup({ scriptCharset: ISO-8859-1 , contentType:
application/json; charset=ISO-8859-1});
but still, you'll make your life easier if you just go for a completely
utf-8 workflow.
Jonathan
Jonathan Vanherpe (T T NV)
appears you are using 2 different css attributes. 'background' and
'background-color'
try changing style to:
.content .division .category.selected {
background-color: red;
}
or see what happens in jQuery with
.css
("background");
John wrote:
Hi,
I used jQuery 1.3.2 and Firefox for the
The selector ul li li is valid, of course.
LOL that's creative :)
It certainly is not the best solution, but hey if it works
I'm having a hard time finding the jQuery code that gets executed when
you click on a tab...
"...how do you trigger your click function to work? or can the anchor
tag be used ?"
question isn't very clear about what you are trying to do. You can over
ride the href with a click function by using " return false; "
which over rides browser default action of opening the link, or you can
$(document).ready(function(){
...
// Related Tabs on single view
$(#relatedTabs).tabs();
});
It's in an external js: initialise.js
Are you looking to make an AJAX request to load the tab? i don't
think you are considering your markup...
change
div id=relatedTabs class=sidebarSection
p class=infoText sidebarTitlestrongRelated/strong/p
ul id=relatedTabBar
lia href=article/goerlitzer-
Apologies if my questions wasn't very clear.
I'll try to explain further.
I have used jquery tabs (or similar functionality) where user can
click on different tabs and see different content without any page
refresh. Say, I have three tabs namely,
Home, About us, Faq
Home tab is visible by
No I'm not, and in my static mock-up everything was ok. It does this
on the live site, and I want to find out why. Do you know how to stop
it?
Is there any chance you can stop spamming our group please?
Cheers
Marc
On 11 Jan 2010, at 16:28, avatar3 wrote:
Download avatar 2009
In the future, Jake, a paraplegic war veteran, is brought to another
planet, Pandora, which is inhabited by the Na'vi, a humanoid race
with their own
You star - that works a charm :)
Thanks!
Andy
On Jan 11, 3:54 pm, Jonathan Vanherpe (T T NV) jonat...@tnt.be
wrote:
actually, putting this once somewhere in your script should fix it:
$.ajaxSetup({ scriptCharset: ISO-8859-1 , contentType:
application/json; charset=ISO-8859-1});
but still,
yes, change the a tags in the code above as shown... but putting a
URL there you are telling the tabs plugin go get this via AJAX
request
On Jan 11, 11:43 am, Coxy step...@bungert.co.uk wrote:
No I'm not, and in my static mock-up everything was ok. It does this
on the live site, and I want to
Perfect! Thanks so much!
On Jan 8, 4:15 pm, Šime Vidas sime.vi...@gmail.com wrote:
How many DIVs of class tv do you have? One?
And you want an other DIV to trigger the cross-fade on the tv DIV?
If that is the case...
$(document).ready(function () {
$('div.tv,
yes, change the a tags in the code above as shown... by putting a
URL there you are telling the tabs plugin go get this via AJAX
request
See:
http://jqueryui.com/demos/tabs/#ajax
-
Fetch external content via Ajax for the tabs by
when you put an actual url into tabs href it treats them as ajax tabs.
If you aren't using AJAX in them remove the url within the href and
replace with href=""
Coxy wrote:
No I'm not, and in my static mock-up everything was ok. It does this
on the live site, and I want to find out why.
Thanks for your reply. The output of
.css (background);
is empty.
Also changed the css attribute as 'background-color', it still returns
'transparent'.
Thanks,
John
On Jan 11, 11:03 am, Charlie charlie...@gmail.com wrote:
appears you are using 2 different css attributes. 'background' and
Hello. We're having problems here and would be most appreciative of
any help at all please. On this site:
http://64.202.116.174/~jonasmus/dev/index_copy.php
we have a carousel. Some of the items have external links that appear
on the status bar but in IE 6 and IE 7 the links do not function.
Hello,
at first I can say that Treeview is a great jQuery plugin!
I use the plugin a lot and have some questions now.
I found a newer Version pre-1.4.1 here:
http://view.jquery.com/trunk/plugins/treeview/jquery.treeview.js
Demo: http://view.jquery.com/trunk/plugins/treeview/demo/
Is this version
In the included js (initialise.js):
$(document).ready(function(){
... // Code snipped
// Related Tabs on single view
$(#relatedTabs).tabs();
});
I've got a form with a radio group called 'legal_status'. There are
five radio buttons. The last one has an id='other_radio'. If this
button is selected, I have a textarea field that gets displayed. The
field has an id='legal_status_comment'. This textarea field is wrapped
by a div with an
On Mon, Jan 11, 2010 at 10:36 AM, Oliur o.r.chowdh...@gmail.com wrote:
I am trying to figure out how would the user sees Faq section as they
click on the link. Problem is Home is the default tab not the FAQ one
and hence not visible by default.
Hopefully someone will post a better solution but
The short answer is because the background color of the item you have
selected is in fact transparent.
Your style makes the li tag red. Then you query on a child element that
has no color specified. The background color of the child element is
'transparent' which means that the color of
i am having problems with the buttons used to close the dialog.
sample with dialog:
http://www.roxstyle.com/projects/blssi/cms/de-tool-v3/proj-awards.html
on this wireframe, if you click +Award a form opens. In the form, if
you click Select Project the jquery ui-dialog opens.
there are two
Thanks for your reply. I will try to see if the background color on
the parent works or not.
As for checking the red color, I need to do a UI test and check if
the background color
is set correctly. That is to say, I am testing other people's code and
web page.
Thanks,
John
On Jan 11, 12:41
Really sorry. Someone was spoofing my email address. This has happened
to a few others, too. Anyway, that account is banned now.
On Jan 11, 2010, at 11:56 AM, Marc Henson wrote:
Is there any chance you can stop spamming our group please?
Cheers
Marc
On 11 Jan 2010, at 16:28, avatar3
Yes, indeed, the color on the 'li' tag is red.
Thanks,
John
On Jan 11, 12:54 pm, John john.jian.f...@gmail.com wrote:
Thanks for your reply. I will try to see if the background color on
the parent works or not.
As for checking the red color, I need to do a UI test and check if
the
Thanks all, I have my problem solved. My CMS (TYPO3) was set to prefix
local anchors (needed for the URL re-writing extension realurl) and
this was changing the href's by adding a whole url.
Since I can't turn of this function without switching of realurl I
just alter the anchors before calling
You are echoing my own thoughts :-)
Still, I see stop supporting IE6 discussions even for JS libraries,
like it is doing the right thing to help evolve the web. I can
understand the reasoning although I don't agree with it. So, I think
it would be good if core devs could speak up on their
tabLinks= $('#relatedTabBar li a');
numOfTabs = tabLinks.length;
for (index = 0; index numOfTabs; index ++)
{
oldAnchor = $(tabLinks[index]).attr('href');
hashPos = oldAnchor.indexOf('#');
newAnchor = oldAnchor.substr(hashPos);
Thank you very much
I am, now, certain the document.write() is all what in need: i process
the request in Java handler and may be a bit of jsp scripting and all the
rest is easy
Thanks
On Mon, Jan 11, 2010 at 3:12 PM, Scott Sauyet scott.sau...@gmail.comwrote:
On Jan 10, 11:49 pm,
it can be easier than that, not so many variables to worry about :)
right before
$(#relatedTabs).tabs();
put
$(#relatedTabs ul a).attr(href, function() {
if ($(this).attr(href).indexOf(#) -1) { return # + $
(this).attr(href).split(#)[1]; } else { $(this).attr(href); }
});
On Jan 11,
As a QA tester with a lot of test automation experience, a bit of advice:
Ask if the product would not ship if it wasn't red. If the answer is no,
then you might not want to waste your time. Unless you have automated
everything else about the functionality of the application, and are looking
for
On Jan 6, 9:15 pm, Acaz Souza acazso...@gmail.com wrote:
Is just for learning this interesting point.
What the matematics logic of both in animation framework.
They use the same logic?
This is the original question:
| MooTools:http://www.jsfiddle.net/4vnya/
|
Hey guys, I have this popup menu that works.. great! In Chrome,
Safari, Firefox AND it USED to work in IE8, until I added just 1 div.
I believe this is the part that causes it;
$(document).click(function(d){
if($(#acc+a).is(:visible)){
var b=#acc
}else{
Thanks. I am not a QA tester, but the product maker instead. :-)
I work on the open source project Tellurium automated testing
framework to do functional testing and we
use a lot of jQuery.
Thanks,
John
On Jan 11, 2:31 pm, John Arrowwood jarro...@gmail.com wrote:
As a QA tester with a lot of
The JSON part of your server response looks fine if you take out the two
line breaks - I assume those are just an artifact of posting with Outlook,
and your actual JSON response is all on one line.
But why does it have the HTML content repeated after the last } that closes
the JSON data? You
Your problem looks like it may be on the back-end. Send the code that
generates the JSON.
On Mon, Jan 11, 2010 at 11:41 AM, Dave Maharaj :: WidePixels.com
d...@widepixels.com wrote:
My response comes back from the server looking like this: (don’t think its
right to begin with)
Very detailed response...thank you.
I will give it a try and try an alert on different sections of the response
and see what happens.
I am using firebug to examine the response. Will check the response and
repost and say if it its 1 solid line or broke.
Thanks...will post shortly.
Dave
Ok so this is my js on the page:
$('#test').live('click', test);
function test() {
var data = $('#add_award').serialize();
$.ajax({
type: post,
url: /manage/awards/,
data: data,
dataType: 'json',
success:
I am using CakePHP to send the JSONfamiliar with that?
if ( $this-RequestHandler-isAjax() ) {
Configure::write ( 'debug', 0 );
$this-layout = 'ajax';
$this-autoLayout = false;
$this-autoRender = false;
$this-data['Award']['id'] = $this-Award-generateKey('11');
Sorry for the number of back to back posts...just making progress somewhat.
OK! I got it part ways no more html after the JSON.
{data:{title:,year_rec:{year:2010},description:,id:6186d5
5b8f0,profile_id:4b40eea7-2608-4a3b-9c24-7cb04adcd75b},status:true,h
tml:pthis is a good test\/p\r\n}
On Jan 11, 2:18 pm, Viz skillipedia skillipe...@googlemail.com
wrote:
Thank you very much
You're welcome.
I am, now, certain the document.write() is all what in need: i process
the request in Java handler and may be a bit of jsp scripting and all the
rest is easy
Note, though, that it
Hmm, that's weird... i don't know why escaping/unescaping is an
issue... this is an actual working example of returned JSON from what
I am working on today:
stripped down a bit for brevity, and since Google Groups will break up
the Data line, it's really all one line (no line breaks like i
added)
Hello,
I am new to jQuery and over all web development.
I recently created a site using jQuery Effects/show (callback)
function, with a very basic show/hide effect.
$(button).click(function () {
$(p).show(slow);
});
However, it works fine in Safari and Firefox, but does not work at
Hello,
I am working on a music portal site with Joomla 1.5.15. (http://
www.mjamusic.com). On the page MJ's Gear I want to implement a
suckerfish/superfish style menu - within the article content I
know that this is not the intended use for this so I am wondering if
there have been any
Hello all,
I am currently using the simplemodal confirm dialog from Eric Martin.
What do I need to modify to have the confirm dialog return true if the
user clicks Yes, and false otherwise.
for example something like this:
Hi,
I have been using the jquery autocomplete plug-in for some time now
and find it very useful. Lately I have come across the following
problem in one of my JSP pages.
The autocomplete suggestions are displayed and formatted properly. But
when I select the one that I want, the result briefly
$(form).validate(
{
rules: {
legal_status_comment: {
required: function(element) {
return $
([name=legal_status]:checked).attr(id) == other_radio;
}
When i add a new record its inserted into a div. How can I make it so its
has a color then fades out. Kind of like a success message after you save
something only i am just fading out the color not the content.
jquery UI highlight is a good example of the idea i am looking for.
So I have my:
I used the color plugin for exactly that... works really well
http://plugins.jquery.com/project/color
http://dev.jquery.com/~john/ticket/fx-rewrite2/
On Jan 11, 5:35 pm, Dave Maharaj :: WidePixels.com
d...@widepixels.com wrote:
When i add a new record its inserted into a div. How can I make it
Right on thanks...
I looked around but noting simple so I will def check it out.
Thanks.
Dave
-Original Message-
From: MorningZ [mailto:morni...@gmail.com]
Sent: January-11-10 7:30 PM
To: jQuery (English)
Subject: [jQuery] Re: Fade question
I used the color plugin for exactly
I forgot to add, that demo page doesn't exact have a bare bones
example of just the color part..
so here is one
http://jsbin.com/unuru/edit (code)
http://jsbin.com/unuru (run)
including the color.js pretty much let's one use the .animate
method with these CSS properties:
'backgroundColor',
After some research, I found out that there is no way to pause the
execution and wait for the user's response.
using callback does not really work in my case.
i guess I have to figure something out.
On Jan 11, 12:20 pm, jason.le luong_l...@yahoo.com wrote:
Hello all,
I am currently using the
You've got errors in your presentation and, consequently, in your behaviour, as
Jeffrey Zeldman would say, I reckon.
Here
$(bio).click(function () {});
you are applying a selector which should select an element in your DOM with the
tag bio. However, no such element exists -
Thanks,
I figure out the problem, nothing to do with cluetip or javascript. I
positionned 3 divs one on top of another, the areas beneath of all
were not detected in all browsers except IE.
On Jan 10, 1:56 pm, Khiet tkh...@gmail.com wrote:
Hi,
I am trying to use an image map with cluetip.
On Jan 12, 5:51 am, Valerij valeri...@gmail.com wrote:
Hey guys, I have this popup menu that works.. great! In Chrome,
Safari, Firefox AND it USED to work in IE8, until I added just 1 div.
[...]
This works in all the browsers great even after I added this div, but
in IE8 it suddenly
On Jan 11, 10:47 pm, mikewse mike...@gmail.com wrote:
What is jQuery's long-term strategy for browser support - cut off
browsers after a certain number of years or when going below a certain
market share?
[I'm asking because of the current trend (among some webdevs and also
library
Hi all,
I have an xml file that is dynamically generated at periodic intervals
onto disk. the information contained in this file is displayed in a
vertical scroller and this works fine.
I however need to filter the data based on the logged-in users
preferences. These preferences are stored in a
Hi all,
We're working with Paypal sandbox generated Discover cards, and
they're not passing the iHwy credit card validation extension for
jQuery. This seems to be a PayPal issue, as PayPal is generating
invalid IIN ranges.
But in our research, we noticed that the iHwy extension isn't properly
I cant get my color change on my listitem. any help would be
appreciated. Thanks in advance.
head
title/title
script src=scripts/jquery-1.3.2.js type=text/javascript/
script
script type=text/javascript
$(document).ready(function() {
$(dt-link1).toggle(function()
1 - 100 of 107 matches
Mail list logo