Answered my own question, posting here in case others have the same
issue.
Apparently the problem was with the variable name ph... must be a
namespace issue with jQuery.
Changing the variable to xph in the script made it work fine in FF3
and IE7.
Stu
Hi MorningZ,
thanks for your help it is greatly appreciated.
Yes i did get a bit confused with empty (i blame php :P). I've only
been playing with jquery or anything besides plain old
document.form.elementname JS for a week so i'm all over the palce.
I now have it all working just fine.
final co
Hi Norbert,
If you read up on the jQuery click event http://docs.jquery.com/Events/click
you will see that it binds a click listener to whatever element you
apply it to so in your case:
$("#fake_href").click(); <- this is 'listening' for a user to click
on some element with id = #fake_href, so
I should have said, so as to to be confusing
The Jquery code which is not working is
$('.cartSummaryLink').val( $(this).val().replace('Cart','My Shopping
Bag')
The CSS class of the link View Cart is
'.cartSummaryLink'
$(this) is meant to be equal to 'View Cart'
There are a few different ways you could handle this. I've provided a
couple of ideas below"
1) after you get the ajax content, check it's height/width and adjust
the container dimensions accordingly:
$('#modal').modal({
onShow: function (d) {
$('#modalclick', d.container[
I have a page that calculates some values on the fly whenever a key is
pressed (using keyup(); ). Here is the script (go easy on me, I'm a
noob):
$(document).ready(function() {
$(document).keyup(function() {
var ph = $("input#ph").val();
var targetMSO2 = $("
I am even more confused right now.
I decided to create fake outside to avoid the propagation
issue.
$(document).ready(function(){
$("#menu_ma a")
.click(function(e,a){
$(this).closest("li.ui-selectee").addClass("ui-selected").siblings
().removeClass("ui-select
Joe
Here is the Html fom above - I should have continued it into the
conversations.
HTML Code:
1 item
(s),Total: £0.00
View Cart
The CSS class of the link View Cart is
'.cartSummaryLink'
The Jquery code is of course
$('.cartSummaryLink').val( $(this).val().replace('Cart','My Shopping
Bag')
$(t
BTW, just to be clear: there shouldn't EVER be a reason ever to do: $($
(el).parents('div').get(0)).addClass('blah')
You'd just be getting all the parent divs, asking for their actual DOM
references (for no reason) then re-wrapping them into jQuery objects
before adding classes to them!
On Nov 11
Well, what are you expecting $(this) to be? What code (HTML & JavaScript )
do you have to show us?
On Nov 10, 2009 8:42 PM, "Daybreak0" wrote:
Joe and Marcel - I see.
Thank you
$('.cartSummaryLink').val( $(this).val().replace('Cart','My Shopping Bag')
);
No errors occur but it does not work.
The "a.delete" click handler only attaches to _current_ elements on
the page. If you want to bind to future elements (that you build
dynamically) you can use the .live method:
$("a.delete").live( "click", function(){ alert( "test" ); } );
(Also, another solution is to take advantage of event dele
Thank you for answering.
>Looks like you could listen for a click on the 'li' then trigger a
>click on the child 'a' tag without worrying about extracting the
>target or href.
I know that. I do that. I am extracting target due to workaround.
If we skip that, when I catch the click in and then tr
I am trying to send the data in a numbered array but i end up with
set[]=56454&set[]=54546522
when i need set[0]=56454&set[1]=54546522
$(document).ready(function() {
$("#sortable").sortable({
placeholder: 'ui-state-highlight',
update: function() {$.post('/order/.php',{data:
$("#s
What is this syntax supposed to accomplish?
if( !$.(arrFieldNames[x]).empty() ){
Issues: "empty()" is a *method* and it empties the children from a
DOM object (see the docs: http://docs.jquery.com/Manipulation/empty)
You've also got a period after the $, that's not good (nor going to
work!)
Hi!
I'm trying to implement an accordion menu but I'm only getting the
first sub menu to show up when I click on its header menu. This is the
code I have for the function.
$(document).ready(function()
{
$("div.menu_body").hide();
$("p.menu_head").click(function()
{
$(
I have a special application that I am trying to get the jQuery
Validation Plugin to work. All the elements on my page are encased
inside of a table, and I don't have the ability to apply classes
directly to the validated elements (, etc). The classes must
come on the table elements:
Firstly hello everyone and apologies for breaking new ground in terms
of simple idiot questions.
Ok so I'm trouble doing something I would consider as simple with
jquery.
I have a form and i want to run a common function (that checks a bunch
of inputs) that will be run when certain fields blur. wor
$('select#parent').trigger('cascade');
?
On Nov 9, 5:08 pm, rmachado wrote:
> Hello to all
>
> I using thecascadeplugin in 3 dropdowns and it works fine, but in
> some ocasions I need to pre selected the values because the user is
> editing the previous recorded selections.
>
> I manage to select
Joe and Marcel - I see.
Thank you
$('.cartSummaryLink').val( $(this).val().replace('Cart','My Shopping
Bag') );
No errors occur but it does not work.
I am not sure why, as its beyond my limited knowledge, but there must
be a way to replace certain text.
Sorry I can't be more specific Norbert, I'm at work and have limited
time.
Check out the "Trigger" event for jQuery: http://docs.jquery.com/Events/trigger
Looks like you could listen for a click on the 'li' then trigger a
click on the child 'a' tag without worrying about extracting the
target or
Thanks waseem,
I think I have found what I want
You code also give me some ideas and had used part of it.
Thanks again
Thanks for the response.
I pasted the wrong code, they were consistent in the original. mea
culpa!
However, this is solved. I had created a conflict with classes
somewhere else in the html and that was the source of the problem.
On Nov 10, 12:12 pm, D A wrote:
> > jquery
> > var originalTitle=$("
Hello everybody
It is my first post here I guess. I must say - I love jQuery, thank
you !
A few days ago I faced a problem that I cannot overcome and hope you
can help me. In the group archive I saw similar problem, but solved in
the way I have it solved, which is not sufficient for me right now.
Thankyou Nathan, I am sure this plugin and the filement group loading
plugin are great, but I wanted a really lightweight solution that uses
the css.
If anyone knows how to set it up properly the chaining the etc (if
possible using .empty()). Please post. I am sure there are others who
would like
I'm just picking up javascript and Jquery. I'm trying to do a drop down menu.
I've downloaded several and tried to use their code but they all seem to have
issues with my menu. What is going on? My current problem is that when a person
rollsover just the li that it then opens all of the dropdow
Can someone point me to a JQuery/PHP/MySQL application which has
source code available which I can use to learn?
Thanks.
Hi guys,
I've been trying to work this out for about 7 hours - no exaggeration.
I just cannot seem to work it out :-(
I have used the sample code from "custom-methods-demo.html"
$.validator.addMethod("buga", function(value) {
return value == "buga";
}, 'Please en
$this should be $(this).
Hth,
Joe
On Nov 10, 2009 2:12 PM, "Daybreak0" wrote:
Hi all,
I have the following html, of which I want to replace the text "Cart"
with "My Shopping Bag" (The Veiw Cart text is near the end)
Code:
1 item(s),
Total: £0.00 View Cart
Now I need the ability to actually
Nathan's plugin looks like the way to go, but before I saw his plugin
I would always just show some loading div or paragraph before the ajax
call, then hide it in your 'success:' function in the ajax call.
$('#loader").fadeIn(500);
do your ajax thing
success: function(){
$('#loader").fadeOu
I was working on adding this feature to the loading plugin a few weeks
ago. I finished it today:
http://jquery-values.googlecode.com/svn/other/loading/jquery.loading.js
On Tue, Nov 10, 2009 at 11:17 AM, Dave Maharaj :: WidePixels.com
wrote:
> Is there a way that when your loading content to dis
Scott, thanks for your time, I have been banging my head on the desk
for a while. I edited the code down and used JS Bin: http://jsbin.com/ehoxu
The original jQuery plugin uses ajax to bring in a form from a php
page and does some other things, but my watered down version on JS Bin
seems to genera
Hi,
I've found a minor issue with the fadeOut animation - I'm not sure if
this can be fixed easily, or even if it is a bug at all... this
appears in a case which I suppose is quite rare, when the element's
height is 0, but the element is visible on the screen anyway. When
fadeOut is called on this
Nevermind. My original approach worked. I had just forgotten to use th tags
instead of td tags in the thead section of the table in my AJAX call. Silly
mistake.
aquaone wrote:
>
> try:
> $('#mainContent').html(data).find('#ratesTable').tablesorter();
>
>
>
> On Mon, Nov 9, 2009 at 20:38,
Thank you
>
> Code:
> $('.cartSummaryLink').val( $*(*this*)*.val().replace('Cart','My Shopping
> Bag') );
>
Unfortunately the above does not work
New error in IE and FF is
Message: Syntax error
Char: 35
Hey, I got the click to work - syntax error, however, it still doesn't seem
to want to sort correctly on the Months
Where in the script does it actually do the sorting? It actually doesn't
seem to be sorting in any apparent order, kind of random like. Is this the
right return format: mmdd?
On Nov 10, 2:22 pm, Matthew wrote:
> So my code works in FF, IE8 and Safari (I've only tested in the
> latest versions of all). But in IE6 and IE7 I get an error saying
> "Object doesnt support this property or method".
I know the site is not visible, but can you make a small test case
using J
> jquery
> var originalTitle=$("a.basic").attr("title");
> $("p.area1").text(originalTitle);
>
> html
> This is where the original title should go
>
Your selector is looking for a paragraph with a class of 'area1'.
However, there is no paragraph with that class in your mark
just do it
Code:
$('.cartSummaryLink').val( $*(*this*)*.val().replace('Cart','My Shopping
Bag') );
2009/11/10 Daybreak0
> Hi all,
>
> I have the following html, of which I want to replace the text "Cart"
> with "My Shopping Bag" (The Veiw Cart text is near the end)
>
> Code:
> vertical="Fals
Hello everyone... figured out what was wrong...
I am using sharepoint and was trying to add the stylesheet to a
content editor webpart as a link... it was not working... and funy
thing is that some sort of style was being loaded... anyhow... thanks
for the wonderful tool :)
Cheers,
Simone
On Nov
Okay,
So my code works in FF, IE8 and Safari (I've only tested in the
latest versions of all). But in IE6 and IE7 I get an error saying
"Object doesnt support this property or method".
http://www.curvesinformation.com/
index.php?Referrer=GFC&campaign=GF" target="_blank">
curvesLeadForm is a c
Is there a way that when your loading content to display the loading div for
a minimum amount of time?
I am requesting Ajax grab some content for me and while its doing so I show
the loading spinner but in some cases it just flashes for a millisecond and
gone. Can it be set to show for a minimum
I also experienced this. If the "active class" is on the third level
the .sf-breadcrumb wont show up.
But if the "active class" is on the second level it's okay.
Only happens in Safari so far. Any ideas?
On Oct 21, 11:33 am, Ron wrote:
> I have setupsuperfishon my wp powered site, its all workin
Hi,
I'm attempting to build a list of items that are to be clickable to
delete.
- I am able to visually build the list and it is added to a div I
want.
My a.delete click event is never triggered when I click on a json
built hyperlink.
If I manually add the html like test then the
event is trigg
Hi guys,
As the subject indicates, is it possible to prevent the lavalamp
effert from moving to a specific within the list? .. for
instance if the li has a class , once the user hovers
over that the hovering image remains on the currently selected
item
Any indications or help would be greatly
Hello
i'm using jqGrid with the type "clientSide" and plan to send editted
data back to the server.
With a $.ajax-Request i receive an object with sub-objects as JSON
from the server and can directly work with them in javascript, e.g.
add the sub-objects to the grid, and display other properties
Hey Wendy/Karl... can you share your findings?? I am having the same
problem just using the default style.
I am using the basic function with default style! and the results I
get are a tip box with dark, 60% transparent background... very
confused and have spent a couple of days on this...!! any h
Hello there,
I know this has come up before, but I've checked it through and I
think I must be going blind as I can't see why it's not currently
doing any validation. Firefox works fine, but IE doesn't do any
validation and just goes straight to the form processor.
The code I'm using is: