I am stumped... have been banging my head for days on this one...
I am pulling in XML, parsing it, then dynamically writing blocks
(append) of code as I loop through the XML... all via jQuery. Within
each of these code blocks, which btw are displaying properly, there is
an onclick event (openInBrowser(url)) applied to text in order to open
an external URL in the browser, outside of the Air app. However, this
onclick event never gets executed when it is clicked. Anyone know why
this would occur?
>From what I can tell it is related to the functions in jQuery such as
this: $(data).find("item").each(function() {... I tested another page
where I appended a test block of code within a $('elementId').click
(function(){... and the same result... nothing happens. If I pull the
code outside of the jQuery function it works just fine.
Here is my code:
...
$(document).ready(function(){
// make sure the application is visible
nativeWindow.visible = true;
var content = readLocalFile();
if (content == '')
{
alert('Please set your email address registered
with NowInStock.net under the options tab.');
$('#alertsMain').hide();
var noalerts = 'message to user...';
$('#alertsMain').append(noalerts);
$('#optionsMain').show();
}else {
//alert(content);
email = content;
$('#emailAddress').val(email);
// Get product info from server
var vurl =
"http://www.domian.com/XML.php?emailAddress="+email;
$.get(vurl, function (data, textStatus) {
$(data).find("item").each(function() {
pid = $(this).attr("pid");
url = $(this).attr("url");
model_name = $(this).attr("model_name");
store_name = $(this).attr("store_name");
product_name =
$(this).attr("product_name");
myurl = "openInBrowser('"+url+"');";
var block = ''+model_name+'
'+store_name+' :
'+product_name+'Checking...';
air.trace(block);
$('#alertsMain').append(block);
});
});
}
});
Hi! I'm developing a framework that allow all navigation in normal
mode or in ajax load.
I have a form to upload images and I can upload files correctly, but
if I use the ajax form, the save page don't receive the
HTTP_X_REQUESTED_WITH in $_SERVER PHP array (only occours when a file
is uploaded).
How can I detect an ajax load with a file upload form?
Hi,
First let me say I know very little about js, I have coded in PHP and
HTML before. I am trying to link to search results on www.wow-heroes.com
but I seem to fail to understand the websites coding schema and create
the direct link to search results.
The normal process is:
1) open www.wow-heroes.com
2) Click on "Guild" tab
3) Choose zone: US, Realm: Fenris, and Guild: Dark apocalypse
4) select "get fresh data from armory"
5) Submit the form by clicking "Search"
6) View results.
What I want to do is to create a link or a submit button on a form
which is hosted on my website. Clicking this button will take the user
to step 6 of the procedure I showed above.
Can any one assist me in creating such a call?
Thanks
Technically, can you just put the alert message inside the
submitHandler option? For example:
$("#form").validate({
submitHandler: function(form) {
$(form).ajaxSubmit({
success: function() { alert("Thank you for your
comment!")},
clearForm: true
});
}
});
On Jul 23, 12:42 pm, Jörn Zaefferer
wrote:
> You've got an error in the second selector, a missing #. Try this:
>
> $("#submit").validate({
> submitHandler: function(form) {
> $(form).ajaxSubmit();
> }
>
> });
>
> Jörn
>
> On Thu, Jul 23, 2009 at 3:22 PM, Nick wrote:
>
> > Hi,
>
> > I am currently trying to validate a form before sending it with the
> > jQuery Form Plugin.
>
> > I can get them working but it is always one or the other, I can't get
> > them both working.
>
> > The code I have so far is below:
>
> >
> > $('#submit').ajaxForm(function() {
> > alert("Thank you for your comment!");
> > });
> > $("submit").validate({
> > submitHandler: function(form) {
> > $(form).ajaxSubmit();
> > }
> > })
> >
>
> > If possible, could somebody help?
Validation plug-in version: 1.5.5
Form plug-in version: 2.28
I was able to get the validation and submit to work together properly.
However, when using options in the validation plugin such as
errorClass and validClass I was ran into some trouble. Upon
submission, these classes would stick/stay. The form data is cleared
properly when using the "clearform: true" option association with the
form plug-in.
Here is a little more detail. Upon validating I was filling in the
input fields' background with a light green color to show the user
that this field was indeed valid and they could proceed to submit.
This worked fine until submission. The form data would clear properly
but the options associated with validation would stay. Is there anyway
to clear all the validation options on submit? Thanks in advance!
like morningZ said your probably looking for this...
ClientScript.RegisterStartupScript(typeof (<>),
"startupTabScript", "<>", true);
The pain is knowing what the last tab they selected was. But in your
case if the button they clicked was on that tab then it sounds pretty
straight forward.
On Jul 23, 1:34 pm, MorningZ wrote:
> "onclick event" would be:
>
> - in the aspx's code?
> - on the client?
>
> if it is in the code, then any running of that postback code is going
> to cause a page reload, and consequent defaulting to the first tab by
> default
>
> if you want the new page reload to stay on the current tab, then you
> would emit some client script (using Page.ClientScript) object to call
> the Tabs' event that will switch the tab
>
> On Jul 23, 9:49 am, noorul wrote:
>
> > I have five div tags(jquery tabs) in my aspx page...Inside the second
> > div(tab) i have a button. onclick of that buttton the second div(tab)
> > should be switched..instead of that the first tab is coming.. How can
> > i switch the tab in code behind(Inside button onclick event)...
Hello,
I develop open source CMS under GPLv3 and would like to use jQuery in it.
Could you please tell me what is the version of GPL of jQuery? I tried to find
it on http://jquery.com but it's still a little bit unclear.
This is important for me, because GPLv2-only and GPLv3 are incompartible.
Thank you in advance,
Alexey
Hello all,
I am trying use the Load function and it looks partly succesful:
the script code is:
function doCallBack(action, value)
{
if (action == 'projlokatiemutaties')
{
var test = $("#ct100_Inhoud__pnlLokaties");
var params = "project.aspx?ch=1&ph=1&cb=center&content=" +
value;
test.load(params);
}
}
when this code is executed 'project.aspx' is loaded and I am able to
query the params. This happens in the code behind:
protected void Page_Load(object sender, EventArgs e)
{
HandleCallBacks();
}
and:
private void HandleCallBacks()
{
string direction = Request.Params["cb"];
if (string.IsNullOrEmpty(direction))
return;
if (direction == "center")
{
string content = Request.Params["content"];
if (! string.IsNullOrEmpty(content))
{
ProjectLokaties1.Refresh("", Convert.ToInt32
(content));
string html = General.Utilities.RenderControl
(ProjectLokaties1);
Response.Write(html);
Response.End();
}
}
}
Projectlokaties1 contains an XML control and the content is being
transformed using Xslt. As far as I can see the html variable contains
the correct value.
However the Response.Write() operations fails completely. As a matter
of fact at this point any Response operation fails.
Does anybody know what is going on here, or better have a solution?
Thanks in advance,
Jan
hi
This link could help http://www.w3schools.com/js/js_functions.asp
On 23 jul, 08:41, dhana wrote:
> I dont know how to call the custom javascript function with arguments
Can you provide sample code or a link?
On 23 jul, 14:47, shaf wrote:
> Hi Guys
>
> I have just inserted some content into my html page and now Im trying
> to add event listeners for some of the links in the inserted content
> but nothing happens. Do I need to update something before I can add a
> click event?
Guess what?
var e1 = $("#firstObject");
var e2 = $("#secondObject");
e1.add( e2 ) is exactly what you're looking for :)
http://docs.jquery.com/Traversing/add#expr
On Jul 23, 1:17 am, NeilM wrote:
> Does anyone know if it is possible to join two jQuery objects to make
> a new object. For example...
>
> var e1 = $("#firstObject");
> var e2 = $("#secondObject");
>
> var combined = e1.add(e2); // This is the expression I'm looking for
>
> Thanks.
Hello guys,
I have a long list or product names and in order to speed up the
research I'd like to have the alphabet letters on one side and when
the user presses one of them the list scrolls to the first name that
starts with that letter. Something like contacts on iPhone.
So, before starting to develop it, does anyone knows a plugin that
does that?
Thanks and have a nice day
Sig
Thank you for this little treasure!
Is there a way to do it so that when listnav initially appears on the
page, no items are shown? In other words, is there a way to just have
the alphabetized index show with no initial display of anything else?
Hi Guys
I have just inserted some content into my html page and now Im trying
to add event listeners for some of the links in the inserted content
but nothing happens. Do I need to update something before I can add a
click event?
$ = jQuery
It is an alias
- Original Message -
From: "jeanluca"
To: "jQuery (English)"
Sent: Thursday, July 23, 2009 4:26 AM
Subject: [jQuery] Re: extend an Object
I just noticed that $ and the jQuery object are the same thing!!
On Jul 23, 10:27 am, jeanluca wrote:
thats exactly it!!
What is exactly '$' ? its not the same as 'jQuery'. Do you have a
link to a doc ?
thnx a lot!
On Jul 23, 2:23 am, Jules wrote:
> Something like this?
> function person(name, address) {
> this.name = name;
> this.address = address;
> this.whoAmI = function() {
> if (this.creditLimit)
> alert(this.name + ' address:' + this.address + 'credit
> limit:' + this.creditLimit);
> else
> alert(this.name + ' address:' + this.address);
> }
> return this;
> }
> function customer() {
> this.creditLimit = 0;
> this.creditCheck = creditCheck;
> return this;
> function creditCheck() {
> alert(this.creditLimit);
> }
> }
> var a = new person('john smith', '10 main st');
> var cust = new customer();
> a.whoAmI();
> $.extend(a, cust);
> a.creditLimit = 1000;
> a.whoAmI();
> On Jul 22, 10:02 pm, jeanluca wrote:
> > Hi All
> > I tried to add functions to an object like
> > function User(n, a) {
> > this.name = n ;
> > this.aux = a ;
> > }
> > function auxis() {
> > alert(this.aux);
> > }
> > $(document).ready( function() {
> > var u = new User("Jack") ;
> > u.extend({
> > whoami: function() { alert(this.name); },
> > autis: auxis
> > }) ;
> > u.whoami() ;
> > }) ;
> > Eventually I will have 2 object A and B and I want to merge A into B:
> > B.exend(A) ;
> > However it doesn't work at all. Any suggestions how to fix this ?
Anyone?
On 20 jul, 12:34, Rodrigo Tassinari de Oliveira
wrote:
> Hello everyone,
>
> I'm stuck with an annoying problem in this webapp I'm developing.
>
> I've created a small code to be called automagically on every ajax
> request, which shows a "loading..." div overlay while the ajax request
> is being processed. This works fine, and the code used can be seen in
> this pastie:
>
> http://pastie.org/552179
>
> However, we also use the Facebox plugin (http://famspam.com/facebox/)
> in this app, and we don't want the "loading..." div overlay to show
> when a facebox ajax request is triggered (the example link trigger is
> also on the above pastie), since facebox has it's on "loading" thing.
>
> I can't seem to do that. I binding the ajaxSend and ajaxComplete
> callbacks to some css selector that would include everything except
> the facebox links (a[rel*=facebox]), instead of the current $
> (document) route, but I failed.
>
> Does anyone have any ideas to help me with this?
>
> Thanks a lot in advance,
> Rodrigo.
Very nice man!!
Thanks for your contribution.
- Original Message -
From: "alexanmtz"
To: "jQuery (English)"
Sent: Thursday, July 23, 2009 1:19 PM
Subject: [jQuery] [Plugins] New plugin - jqswfupload
Hello everyone,
I would like to announce the jqswfupload plugin:
http://jqswfupload.alexandremagno.net/
The easier way to make a multiple file upload using swfupload. You can
create a complete interface for multiupload files based on Flickr ux
in just one line of code and them make custom settings to controll how
works all the features.
Hope everyone enjoy it!
Alexandre Magno
Interface Developer
http://blog.alexandremagno.net
I'm not really sure what you are asking. Are you referring to the
jQuery ui slider? If so, the jQuery UI google group is probably a
better place to ask that question and search for threads where your
question may have already been answered.
http://groups.google.com/group/jquery-ui
On Jul 23, 3:37 pm, Krish wrote:
> hi amuhlou,
>
> thank you for your quick response.
>
> with the same assumption is there any possibility to get all
> grandchildren in the handle property of jquery.
>
> On Jul 23, 12:11 pm, amuhlou wrote:
>
> > Assuming the grandchildren all have the class="grandchild" attribute,
> > you could use the find() method:
>
> > $('div.parent').find(".grandchild")
>
> > On Jul 23, 3:04 pm, Krish wrote:
>
> > > Hey All,
>
> > > I have to select all my grandchildren of parent div. only the
> > > grandchildren not either of children or great grandchildren.
>
> > >
> > >
> > >
> > > > > class="greatgrandchild" >
> > > > > class="greatgrandchild" >
> > > .
> > > .
> > > .
> > > > > class="greatgrandchild" >
> > > > > div>
> > > > > class="greatgrandchild" >
> > > > > class="greatgrandchild" >
> > > .
> > > .
> > > .
> > > > > class="greatgrandchild" >
> > >
> > > .
> > > .
> > > .
> > > .
> > >
> > >
> > >
>
> > > How can i achieve this using jquery?
>
> > > Thanks in advance
>
> > > regards,
> > > krish
Hi Guys
I have some JS that flash cs4 generated when I published my swf. I am
trying to do some AJAX and download the SWF and then insert it into
the page's DIV tag. How can I do this. Code below:
AC_FL_RunContent(
'codebase', 'http://download.macromedia.com/pub/shockwave/cabs/flash/
swflash.cab#version=10,0,0,0',
'width', '873',
'height', '247',
'src', 'banner',
'quality', 'high',
'pluginspage', 'http://www.adobe.com/go/getflashplayer',
'play', 'true',
'loop', 'false',
'scale', 'showall',
'wmode', 'transparent',
'devicefont', 'false',
'id', 'banner',
'name', 'banner',
'menu', 'false',
'allowFullScreen', 'false',
'allowScriptAccess','sameDomain',
'movie', 'banner'
); //end AC code
hi amuhlou,
thank you for your quick response.
with the same assumption is there any possibility to get all
grandchildren in the handle property of jquery.
On Jul 23, 12:11 pm, amuhlou wrote:
> Assuming the grandchildren all have the class="grandchild" attribute,
> you could use the find() method:
>
> $('div.parent').find(".grandchild")
>
> On Jul 23, 3:04 pm, Krish wrote:
>
> > Hey All,
>
> > I have to select all my grandchildren of parent div. only the
> > grandchildren not either of children or great grandchildren.
>
> >
> >
> >
> > > class="greatgrandchild" >
> > > class="greatgrandchild" >
> > .
> > .
> > .
> > > class="greatgrandchild" >
> > > div>
> > > class="greatgrandchild" >
> > > class="greatgrandchild" >
> > .
> > .
> > .
> > > class="greatgrandchild" >
> >
> > .
> > .
> > .
> > .
> >
> >
> >
>
> > How can i achieve this using jquery?
>
> > Thanks in advance
>
> > regards,
> > krish
The container with the appearing image overlaps the rollover area
halfway.
I determined this with Firebug by changing the div's style to include
"background: red". The answer was very clear then. :)
On Jul 23, 12:40 pm, eelziere wrote:
> Hi All,
>
> I am very new to jquery.
>
> Here is a small page I made to get familiar with it:
>
> http://www.compu-zen.com/tests/jquery.popup_test.htm
>
> Could anybody explain me the following: when mouse cursor is located
> above the middle of the height of the button image, javascript is
> looping while sending mouseenter and mouseleave events. When the mouse
> cursor is below the middle of the height of the button image, it does
> not happen!
>
> Any idea?
>
> Thanks for your help.
>
> Cheers,
> EE.
Hello everyone,
I would like to announce the jqswfupload plugin:
http://jqswfupload.alexandremagno.net/
The easier way to make a multiple file upload using swfupload. You can
create a complete interface for multiupload files based on Flickr ux
in just one line of code and them make custom settings to controll how
works all the features.
Hope everyone enjoy it!
Alexandre Magno
Interface Developer
http://blog.alexandremagno.net
Assuming the grandchildren all have the class="grandchild" attribute,
you could use the find() method:
$('div.parent').find(".grandchild")
On Jul 23, 3:04 pm, Krish wrote:
> Hey All,
>
> I have to select all my grandchildren of parent div. only the
> grandchildren not either of children or great grandchildren.
>
>
>
>
> class="greatgrandchild" >
> class="greatgrandchild" >
> .
> .
> .
> class="greatgrandchild" >
> div>
> class="greatgrandchild" >
> class="greatgrandchild" >
> .
> .
> .
> class="greatgrandchild" >
>
> .
> .
> .
> .
>
>
>
>
> How can i achieve this using jquery?
>
> Thanks in advance
>
> regards,
> krish
Hey All,
I have to select all my grandchildren of parent div. only the
grandchildren not either of children or great grandchildren.
.
.
.
.
.
.
.
.
.
.
How can i achieve this using jquery?
Thanks in advance
regards,
krish
Hi Guys
I want to use the progress bar on the site first load which will
basically act like the gmail preloader. The aim is to use an AJAX
request which will download the content and the preloader is running
at the frontend. Once the content is downloaded the progressbar is
removed and the content injected into the html page. My question is
how can I code this ?
you are duplicate loading script files and also trying to use
$(document).ready in a jQuery.noConflict environment. If not familiar
with noConflict read FAQ's on jQuery site
dgaletar wrote:
Hello. I love your module! Thank you for developing it.
The issue I am having is that my menu is aligning to the right,
instead of to the left where the normal menu was. I have worked with
the CSS for some time now, but have not been able to figure it out.
I would also like to make the menu colors black text with a
transparent background, and white text with a #333 background on
hover. I could probably figure this one out in the long run, but since
I was asking...
Any help would be GREATLY appreciated!
The web site address is: http://www.gcservices.net/phb-llc/
Thanks,
DG
Thanks to jukebox42 from jqueryhelp.com. The problem is solved.
"When you create your table row the remove button doesn’t get any
events attached to it since it was created after you declare the
event. a way around this is to use the live() function in jquery
( http://docs.jquery.com/Events/live#typefn ) "
So the remove code should looks like:
$(".removeRow").live("click",function(){
$(this).parents('tr').remove();
return false;
});
And for the add-row function, we don’t need the following code. Just
delete them.
$("#removeRow").live("click",function(){
$(this).parents('tr').remove();
return false;
});
On Jul 23, 9:45 pm, C1412 wrote:
> I tried to append a table row to a table by clicking on a button. And
> inside the table, I put a link so i can click that and remove the row.
> I was using jquery.flydom plugin, by the way.
> The HTML looks like:
> HTML==
>
>
>
>
>
>
> rows="2">
>
>
>
> ===
>
> ==JS===
> $(document).ready(function(){
> $(".removeRow").click(function(){
> $(this).parents('tr').remove();
> return false;
> });
>
> $(".add-row").click(function(){
> $("#PE_Template tbody").createAppend(
> 'tr',{},[
> 'th',{},[
> 'a',{className: 'removeRow',
> href: '#'},[
> 'img',{name: 'Delete
> this row', src: 'images/12-em-cross.png',
> alt: 'Delete this row'},[],
> ],
> ],
> 'td',{},[
> 'input',{type: 'text',
> name:'label'},[],
> ],
> 'td',{},[
>
> 'input',{type: 'text', name:'weightage'},[],
> ],
> 'td',{},[
>
> 'textarea',{name:'description', cols:'30', rows:'2'},[],
> ],
> ]
> );
> return false;
> });
> });
> ===
>
> I also tried to append the table row with the non-flydom code:
>
> ==JS===
> $("#PE_Template tbody").append([
> "",
> ""," href='#'>","",
> " name='label' value='' />",
> " name='weightage' value='' />",
> " name='description' cols='30' rows='2'> textarea>",
> ""
> ].join(""));
> ===
>
> But the result is that the rows generated by the JS cannot be removed.
>
> Can someone help me solve the problem?
> Thanks!
>
> C1412
Oh, thank you! that worked.
On Jul 23, 9:11 am, Jack Killpatrick wrote:
> yes (only use one of the listnav js files). That and rename this:
>
>
>
> to this:
>
>
>
> - Jack
>
>
>
> keith westberg wrote:
> > It looks like you have the listnav script file loaded three times...
> > this may be causeing it. Prob only need one of these.
>
> > > src="/customer/caorsu/customerpages/jquery.listnav-2.0.js">
> > > src="/customer/caorsu/customerpages/jquery.listnav.pack-2.0.js">
> > > src="/customer/caorsu/customerpages/jquery.listnav.min-2.0.js">
>
> > Keith
>
> > On Wed, Jul 22, 2009 at 5:20 PM, Carina wrote:
>
> >>http://www.cascade-usa.com/default.aspx?page=customer&file=customer/c...
>
> >> I am trying to do it here but I am not getting the nav at the top, I
> >> am just getting them in the squares. I am not sure what exactly I am
> >> doing wrong.- Hide quoted text -
>
> - Show quoted text -
You've got an error in the second selector, a missing #. Try this:
$("#submit").validate({
submitHandler: function(form) {
$(form).ajaxSubmit();
}
});
Jörn
On Thu, Jul 23, 2009 at 3:22 PM, Nick wrote:
>
> Hi,
>
> I am currently trying to validate a form before sending it with the
> jQuery Form Plugin.
>
> I can get them working but it is always one or the other, I can't get
> them both working.
>
> The code I have so far is below:
>
>
> $('#submit').ajaxForm(function() {
> alert("Thank you for your comment!");
> });
> $("submit").validate({
> submitHandler: function(form) {
> $(form).ajaxSubmit();
> }
> })
>
>
> If possible, could somebody help?
>
"onclick event" would be:
- in the aspx's code?
- on the client?
if it is in the code, then any running of that postback code is going
to cause a page reload, and consequent defaulting to the first tab by
default
if you want the new page reload to stay on the current tab, then you
would emit some client script (using Page.ClientScript) object to call
the Tabs' event that will switch the tab
On Jul 23, 9:49 am, noorul wrote:
> I have five div tags(jquery tabs) in my aspx page...Inside the second
> div(tab) i have a button. onclick of that buttton the second div(tab)
> should be switched..instead of that the first tab is coming.. How can
> i switch the tab in code behind(Inside button onclick event)...
Hello. I love your module! Thank you for developing it.
The issue I am having is that my menu is aligning to the right,
instead of to the left where the normal menu was. I have worked with
the CSS for some time now, but have not been able to figure it out.
I would also like to make the menu colors black text with a
transparent background, and white text with a #333 background on
hover. I could probably figure this one out in the long run, but since
I was asking...
Any help would be GREATLY appreciated!
The web site address is: http://www.gcservices.net/phb-llc/
Thanks,
DG
Hi,
I am currently trying to validate a form before sending it with the
jQuery Form Plugin.
I can get them working but it is always one or the other, I can't get
them both working.
The code I have so far is below:
$('#submit').ajaxForm(function() {
alert("Thank you for your comment!");
});
$("submit").validate({
submitHandler: function(form) {
$(form).ajaxSubmit();
}
})
If possible, could somebody help?
You can split the Emails with the comma, and then validate them one by one.
On Thu, Jul 23, 2009 at 9:49 PM, Mohd.Tareq wrote:
>
> Hi Guys,
>
> Can any one tell me validation ' *Email Validation for multiple emails
> (comma separated)* ' for textarea.
>
> I am writing Regular expression but not able validating the given input
> with comma :(
>
> Please suggest something in JQuery Or Javascript
>
>
> Thanking you
>
>
>Regard
>
> Mohd.Tareque
>
>
I have five div tags(jquery tabs) in my aspx page...Inside the second
div(tab) i have a button. onclick of that buttton the second div(tab)
should be switched..instead of that the first tab is coming.. How can
i switch the tab in code behind(Inside button onclick event)...
Hi,
I am fairly new to both jWuery and jQuery Cycle, but I have managed to
set-up my slideshow using images as the pagers. The problem is that I
want to be able to indicate which slide is currently being displayed
by toggling the pager image to unique one when it is active.
Essentially what I want to do is achieve the same sort of effect as
the .activeSlide attribute, but using images instead of CSS. Relevant
code below.
It would be great if you could post your repacked version for us.
Thanks!
-Mario
Hi All,
I am very new to jquery.
Here is a small page I made to get familiar with it:
http://www.compu-zen.com/tests/jquery.popup_test.htm
Could anybody explain me the following: when mouse cursor is located
above the middle of the height of the button image, javascript is
looping while sending mouseenter and mouseleave events. When the mouse
cursor is below the middle of the height of the button image, it does
not happen!
Any idea?
Thanks for your help.
Cheers,
EE.
Do you mean append() or appendTo() ?
On Thu, Jul 23, 2009 at 12:17 PM, NeilM wrote:
>
> Does anyone know if it is possible to join two jQuery objects to make
> a new object. For example...
>
> var e1 = $("#firstObject");
> var e2 = $("#secondObject");
>
> var combined = e1.add(e2); // This is the expression I'm looking for
>
> Thanks.
>
I tried to append a table row to a table by clicking on a button. And
inside the table, I put a link so i can click that and remove the row.
I was using jquery.flydom plugin, by the way.
The HTML looks like:
HTML==
===
==JS===
$(document).ready(function(){
$(".removeRow").click(function(){
$(this).parents('tr').remove();
return false;
});
$(".add-row").click(function(){
$("#PE_Template tbody").createAppend(
'tr',{},[
'th',{},[
'a',{className: 'removeRow',
href: '#'},[
'img',{name: 'Delete
this row', src: 'images/12-em-cross.png',
alt: 'Delete this row'},[],
],
],
'td',{},[
'input',{type: 'text',
name:'label'},[],
],
'td',{},[
'input',{type:
'text', name:'weightage'},[],
],
'td',{},[
'textarea',{name:'description', cols:'30', rows:'2'},[],
],
]
);
return false;
});
});
===
I also tried to append the table row with the non-flydom code:
==JS===
$("#PE_Template tbody").append([
"",
"","","",
"",
"",
"",
""
].join(""));
===
But the result is that the rows generated by the JS cannot be removed.
Can someone help me solve the problem?
Thanks!
C1412
I found this link:
http://return-true.com/2008/12/fixing-jquery-validator-plugin-in-internet-explorer-6/
Looks like it's a character set issue.
-Mario
On Jun 29, 4:21 pm, Tristan wrote:
> The jquery.validate.pack.js file found
> onhttp://bassistance.de/jquery-plugins/jquery-plugin-validation/causes
> an error when run in IE6.
>
Hi all,
I'm using the jQuery validate plugin. When select boxes don't pass
validation, I want them to to be revalidated onChange. I don't see an
option for this in the validate() options. Do I have to add it
manually to the elements onchange attribute?
-Dustin
I dont know how to call the custom javascript function with arguments
Hi James,
I understand that if they return a 304 headers then that means they
are using the cached version... that is what 304 Not Modified means.
The problem is that there isn't a 304 Not Modified header when a user
visits the page. That only happens after the json is loaded. It is
page cached which means that it doesn't get the if-modified-since
headers correct until after the json is requested once the page has
loaded. This happens every time the page is loaded, not just the
first time. This is why I want to browser cache the file. My json
file won't change that often, but it will change and when it does I
want it to be updated. So for instance if someone visits my page
today I want the json to be cached. When they come back in a week I
want the if-modified-since headers to be properly assigned to the date
they last visited. Currently the if-modified-since header would be
set to the default 1970 date each time they initially open the page.
So on both visits, they would download a new copy of the json data
when they first open the page. I hope that I am clear in my question
now, because it seems that I wasn't at first.
Is this possible? If so, how?
Thanks in advance!
On Jul 1, 7:28 pm, James wrote:
> If your requests are returning 304 Not Modified, then it means it's
> using the cached version because the one on the server is not
> different from the one in the cache.
>
> On Jul 1, 1:07 pm, wgordonw1 wrote:
>
>
>
> > bump. is it possible to cache something using the ajax call and only
> > download it using last-modified headers? or is that why nobody ever
> > responded?- Hide quoted text -
>
> - Show quoted text -
Eric you rock that's what I'm talking about!! Beautiful code man
thanks so much.
Learning is fun.
Daniel
$('.secondLevel').css('width', $('#header').width());
On Jul 23, 1:16 pm, Paul Collins wrote:
> Hi all,
> I've got a problem with IE6 and I need to basically find the width of the
> "header" DIV and make the "secondLevel" DIV match it. So, I guess I need to
> target IE6 specifically in the code. Here's what I have:
>
>
>
> Home
>
> About Us
>
>
> Overview
>
>
>
> Contact
>
>
>
> I'm not sure how to start with the script. I can calculate the width of the
> "header" DIV, but not sure how to force the "secondLevel" one to match it.
>
> alert($("#header").width());
>
> Any help would be fantastic.
> Cheers
> Paul
Hi all,
I've got a problem with IE6 and I need to basically find the width of the
"header" DIV and make the "secondLevel" DIV match it. So, I guess I need to
target IE6 specifically in the code. Here's what I have:
Home
About Us
Overview
Contact
I'm not sure how to start with the script. I can calculate the width of the
"header" DIV, but not sure how to force the "secondLevel" one to match it.
alert($("#header").width());
Any help would be fantastic.
Cheers
Paul
function setButtonClass(){
$(':submit,:reset,:button').each(function(){
var el = $(this),
val = el.val(),
word = (val.split(/[^A-Z\W]/).length/2) + val.length;
el.addClass( word >= 12 ? 'mb' : (word > 4 ? 'sb' : (word >
0 ? 'b' : '')) );
})
}
Untested, but give it a shot. Should work fine, so long as you execute
after document.ready.
On Jul 23, 12:38 pm, sleepwalker wrote:
> Thanks Rob I like your approach and learned a lot. This is why I like
> to post code to see how others attack the same issue. I would still
> like to see how someone would code this using the jquery syntax rather
> then the standard javascript way, so if anyone wants to give it a go
> please do. All us newbies learn a lot from this stuff so thanks again.
>
> Daniel
Thanks Rob I like your approach and learned a lot. This is why I like
to post code to see how others attack the same issue. I would still
like to see how someone would code this using the jquery syntax rather
then the standard javascript way, so if anyone wants to give it a go
please do. All us newbies learn a lot from this stuff so thanks again.
Daniel
could you paste the outputted html to jsbin, in the meantime, try this
$(document).ready(function() {
$("#chkIncludeRetired").click(function() {
$('.RelStatus').each(function() {
var RelStatusValue = $(this).text();
if (RelStatusValue == 'Retired') {
$(this).parents("div").toggle();
}
})
});
});
evanbu...@gmail.com wrote:
I removed some of the server-side code but this is it. thanks
$(document).ready(function() {
$("#chkIncludeRetired").click(function() {
$('#table1 .RelStatus').each(function() {
var RelStatusValue = $(this).text();
if (RelStatusValue == 'Retired') {
$(this).parents("div").toggle();
}
})
});
});
Show Retired
" class="IndividualDirectors">
()
On Jul 23, 11:46 am, Liam Potter wrote:
I'll need to see your html to see why, but I suspect it's because you
targeted a specific id #table1.RelStatus.
evanbu...@gmail.com wrote:
Very cool. This is what I have now but it only hides the first div
containing the RelStatus value = 'Retired'
$(document).ready(function() {
$("#chkIncludeRetired").click(function() {
$('#table1.RelStatus').each(function() {
var RelStatusValue = $(this).text();
if (RelStatusValue == 'Retired') {
$(this).parents("div").toggle();
}
})
});
});
On Jul 23, 10:47 am, Liam Potter wrote:
$("span a").click(function(){
var checkValue = $(this).parents("div").attr("value");
if (checkValue == 'Retired'){
$(this).parents("div").toggle();
}
return false;
});
You will see the parents function, this allows you to traverse up the dom.
evanbu...@gmail.com wrote:
Right, but how do I associate the span tag which contains the value =
'Retired' with the div that contains it? In other words, I need to
toggle the contents of the entire div and not just the span tag.
Thanks.
On Jul 23, 7:41 am, Liam Potter wrote:
use an if statement, "if value == retired, do this"
evanbu...@gmail.com wrote:
Hi
I'm not sure how to approach this. I want to toggle each div with a
checkbox or hyperlink which shows/hides every div where the RelStatus
value = 'retired'. I'm able to see the value of each RelStatus value
using the code below. The id of each div and the RelStatus value of
each span is set server-side. Thanks
$(document).ready(function() {
$('#table1 .RelStatus').each(function() {
alert($(this).text());
});
});
" class="IndividualDirectors">
- Hide quoted text -
- Show quoted text -- Hide quoted text -
- Show quoted text -- Hide quoted text -
- Show quoted text -
yes (only use one of the listnav js files). That and rename this:
to this:
- Jack
keith westberg wrote:
It looks like you have the listnav script file loaded three times...
this may be causeing it. Prob only need one of these.
Keith
On Wed, Jul 22, 2009 at 5:20 PM, Carina wrote:
http://www.cascade-usa.com/default.aspx?page=customer&file=customer/caorsu/customerpages/salesflyer.html#
I am trying to do it here but I am not getting the nav at the top, I
am just getting them in the squares. I am not sure what exactly I am
doing wrong.
I removed some of the server-side code but this is it. thanks
$(document).ready(function() {
$("#chkIncludeRetired").click(function() {
$('#table1 .RelStatus').each(function() {
var RelStatusValue = $(this).text();
if (RelStatusValue == 'Retired') {
$(this).parents("div").toggle();
}
})
});
});
Show Retired
" class="IndividualDirectors">
()
On Jul 23, 11:46 am, Liam Potter wrote:
> I'll need to see your html to see why, but I suspect it's because you
> targeted a specific id #table1.RelStatus.
>
>
>
> evanbu...@gmail.com wrote:
> > Very cool. This is what I have now but it only hides the first div
> > containing the RelStatus value = 'Retired'
>
> >
> > $(document).ready(function() {
> > $("#chkIncludeRetired").click(function() {
> > $('#table1.RelStatus').each(function() {
> > var RelStatusValue = $(this).text();
> > if (RelStatusValue == 'Retired') {
> > $(this).parents("div").toggle();
> > }
> > })
> > });
> > });
> >
>
> > On Jul 23, 10:47 am, Liam Potter wrote:
>
> >> $("span a").click(function(){
> >> var checkValue = $(this).parents("div").attr("value");
>
> >> if (checkValue == 'Retired'){
> >> $(this).parents("div").toggle();
> >> }
> >> return false;
>
> >> });
>
> >> You will see the parents function, this allows you to traverse up the dom.
>
> >> evanbu...@gmail.com wrote:
>
> >>> Right, but how do I associate the span tag which contains the value =
> >>> 'Retired' with the div that contains it? In other words, I need to
> >>> toggle the contents of the entire div and not just the span tag.
> >>> Thanks.
>
> >>> On Jul 23, 7:41 am, Liam Potter wrote:
>
> use an if statement, "if value == retired, do this"
>
> evanbu...@gmail.com wrote:
>
> > Hi
>
> > I'm not sure how to approach this. I want to toggle each div with a
> > checkbox or hyperlink which shows/hides every div where the RelStatus
> > value = 'retired'. I'm able to see the value of each RelStatus value
> > using the code below. The id of each div and the RelStatus value of
> > each span is set server-side. Thanks
>
> >
> > $(document).ready(function() {
> > $('#table1 .RelStatus').each(function() {
> > alert($(this).text());
> > });
> > });
> >
>
> > " class="IndividualDirectors">
> > > ID="lblRelStatus" Text='<%# Eval("RelStatus") %>' Runat="Server"/> > span>
> > - Hide quoted text -
>
> - Show quoted text -- Hide quoted text -
>
> >> - Show quoted text -- Hide quoted text -
>
> - Show quoted text -
Hm, I took two out but it still is looking the same with out the nav
at the top.
On Jul 23, 7:45 am, keith westberg wrote:
> It looks like you have the listnav script file loaded three times...
> this may be causeing it. Prob only need one of these.
>
> src="/customer/caorsu/customerpages/jquery.listnav-2.0.js">
> src="/customer/caorsu/customerpages/jquery.listnav.pack-2.0.js">
> src="/customer/caorsu/customerpages/jquery.listnav.min-2.0.js">
>
> Keith
>
>
>
> On Wed, Jul 22, 2009 at 5:20 PM, Carina wrote:
>
> >http://www.cascade-usa.com/default.aspx?page=customer&file=customer/c...
>
> > I am trying to do it here but I am not getting the nav at the top, I
> > am just getting them in the squares. I am not sure what exactly I am
> > doing wrong.- Hide quoted text -
>
> - Show quoted text -
pretty sure you'll figure solutions out, perhaps absolute position the
sub nav so it doesn't push page up and down might look better. Or hover
over main nav container to push down the sub nav area, would keep that
area until you move away from nav completely
alexrogahn wrote:
To explain a little more: When I move from one navigational element to
the next the animation restarts, I was wondering if there was a way I
could stop this happening so that the sub-nav stays down, until I move
off the navigation completely or a navigational element which doesn't
activate the sub-nav. I did manage to achieve this by making two divs
above and below and beside the navigation bar and then setting a
jQuery function like this:
$("#div1, #div2, #nav_off").hover(function() {
$("#sub_nav").slideUp(200);
$("#wrap").animate ({ 'marginTop' : '30px' }, 200);
});
However I concluded that it was a little too unsemantic and that there
must be a better way of achieving my goal, if there isn't then I guess
I'm going to have to go with that method.
By the way I've altered the jQuery code so it works with the following
plugin http://blog.threedubmedia.com/2008/08/eventspecialhover.html.
Just so the sub-nav doesn't go off if the user just quickly moves over
the navigation without the intention of actually clicking it.
I've uploaded the site here http://tutshelf.com/TutShelf_Beta/
You can find links to sourcefiles in the source code, but if your lazy
just got to here: http://tutshelf.com/TutShelf_Beta/js/stuff.js and
for the CSS here: http://tutshelf.com/TutShelf_Beta/style.css
I couldn't get the code to work with JSBin, sorry :(
On Jul 23, 1:59 pm, Charlie wrote:
idea of "freezing" jQuery not making a lot of sense. What you did to post code is great, however there's an even better way, put it in jsBin. jSBin will include jQuery for you and give a working copy of your code to share, instead of it being in 2 places with no CSS.
Perhaps if you explained the problem as it relates to menu instead of freeze jQuery would help. Other than that will simply hiding the subs instead of timed slideUp help?
alexrogahn wrote:Hi, I created a sub-navigation menu for a site I've been working on and the thing works perfectly in my opinion... well, near perfectly. When I move my mouse from one main navigation link to the other, the .slideUp and .slideDown properties still work, which is annoying because your essentially having to wait to use the sub-navigation again, even if it is only a few milliseconds. I was wondering if there was a way I could "freeze" the jQuery until I moved off the (for lack of a better description) links that activate the sub-nav. Below is links to my code: HTML:http://tinypaste.com/98d643cjQuery:http://tinypaste.com/0b05837
I'll need to see your html to see why, but I suspect it's because you
targeted a specific id #table1.RelStatus.
evanbu...@gmail.com wrote:
Very cool. This is what I have now but it only hides the first div
containing the RelStatus value = 'Retired'
$(document).ready(function() {
$("#chkIncludeRetired").click(function() {
$('#table1.RelStatus').each(function() {
var RelStatusValue = $(this).text();
if (RelStatusValue == 'Retired') {
$(this).parents("div").toggle();
}
})
});
});
On Jul 23, 10:47 am, Liam Potter wrote:
$("span a").click(function(){
var checkValue = $(this).parents("div").attr("value");
if (checkValue == 'Retired'){
$(this).parents("div").toggle();
}
return false;
});
You will see the parents function, this allows you to traverse up the dom.
evanbu...@gmail.com wrote:
Right, but how do I associate the span tag which contains the value =
'Retired' with the div that contains it? In other words, I need to
toggle the contents of the entire div and not just the span tag.
Thanks.
On Jul 23, 7:41 am, Liam Potter wrote:
use an if statement, "if value == retired, do this"
evanbu...@gmail.com wrote:
Hi
I'm not sure how to approach this. I want to toggle each div with a
checkbox or hyperlink which shows/hides every div where the RelStatus
value = 'retired'. I'm able to see the value of each RelStatus value
using the code below. The id of each div and the RelStatus value of
each span is set server-side. Thanks
$(document).ready(function() {
$('#table1 .RelStatus').each(function() {
alert($(this).text());
});
});
" class="IndividualDirectors">
- Hide quoted text -
- Show quoted text -- Hide quoted text -
- Show quoted text -
Very cool. This is what I have now but it only hides the first div
containing the RelStatus value = 'Retired'
$(document).ready(function() {
$("#chkIncludeRetired").click(function() {
$('#table1.RelStatus').each(function() {
var RelStatusValue = $(this).text();
if (RelStatusValue == 'Retired') {
$(this).parents("div").toggle();
}
})
});
});
On Jul 23, 10:47 am, Liam Potter wrote:
> $("span a").click(function(){
> var checkValue = $(this).parents("div").attr("value");
>
> if (checkValue == 'Retired'){
> $(this).parents("div").toggle();
> }
> return false;
>
> });
>
> You will see the parents function, this allows you to traverse up the dom.
>
>
>
> evanbu...@gmail.com wrote:
> > Right, but how do I associate the span tag which contains the value =
> > 'Retired' with the div that contains it? In other words, I need to
> > toggle the contents of the entire div and not just the span tag.
> > Thanks.
>
> > On Jul 23, 7:41 am, Liam Potter wrote:
>
> >> use an if statement, "if value == retired, do this"
>
> >> evanbu...@gmail.com wrote:
>
> >>> Hi
>
> >>> I'm not sure how to approach this. I want to toggle each div with a
> >>> checkbox or hyperlink which shows/hides every div where the RelStatus
> >>> value = 'retired'. I'm able to see the value of each RelStatus value
> >>> using the code below. The id of each div and the RelStatus value of
> >>> each span is set server-side. Thanks
>
> >>>
> >>> $(document).ready(function() {
> >>> $('#table1 .RelStatus').each(function() {
> >>> alert($(this).text());
> >>> });
> >>> });
> >>>
>
> >>> " class="IndividualDirectors">
> >>> >>> ID="lblRelStatus" Text='<%# Eval("RelStatus") %>' Runat="Server"/> >>> span>
> >>> - Hide quoted text -
>
> >> - Show quoted text -- Hide quoted text -
>
> - Show quoted text -
Nope, that plugin only does what I've already set up. I've already got
the delay set up. Thanks for the suggestion though ^^
On Jul 23, 3:38 pm, alexrogahn wrote:
> hmmm ththat's quite interesting as the plugin I'm currently using
> claims to be "better" than hoverIntent. Perhaps it is not :P
>
> On Jul 23, 3:35 pm, jlcox wrote:
>
>
>
> > Take a look at the hoverIntent plugin. It might do exactly what you
> > need.
>
> >http://cherne.net/brian/resources/jquery.hoverIntent.html
Works like a champ!! Thanks so much.
On Jul 23, 9:48 am, MorningZ wrote:
> Add a random query string parameter onto the url of the .load() call
> (see the code for the AutoComplete plugin for an example)
>
> On Jul 23, 9:37 am, LexHair wrote:
>
> > I have a table which has an image, an icon and some text in each cell.
> > I can click an icon in the table cell firing a $.get which delinks
> > (deletes) the image from the server. The table is refreshed with a load
> > () call in the callback function. I use the load() call since I'm only
> > interested in loading the table, not the entire page.
>
> > Everything works perfectly in all browsers except IE8. It seems IE8
> > keeps the original table in its cache and when I attempt to refresh it
> > with the load() call, IE8 pulls it from the cache. The file which has
> > been delinked from the server magically remains in the cached version
> > of the table.
>
> > How can I force IE8 to not use the cache on a load() call?
>
> > Thanks in advance.
>
>
$("span a").click(function(){
var checkValue = $(this).parents("div").attr("value");
if (checkValue == 'Retired'){
$(this).parents("div").toggle();
}
return false;
});
You will see the parents function, this allows you to traverse up the dom.
evanbu...@gmail.com wrote:
Right, but how do I associate the span tag which contains the value =
'Retired' with the div that contains it? In other words, I need to
toggle the contents of the entire div and not just the span tag.
Thanks.
On Jul 23, 7:41 am, Liam Potter wrote:
use an if statement, "if value == retired, do this"
evanbu...@gmail.com wrote:
Hi
I'm not sure how to approach this. I want to toggle each div with a
checkbox or hyperlink which shows/hides every div where the RelStatus
value = 'retired'. I'm able to see the value of each RelStatus value
using the code below. The id of each div and the RelStatus value of
each span is set server-side. Thanks
$(document).ready(function() {
$('#table1 .RelStatus').each(function() {
alert($(this).text());
});
});
" class="IndividualDirectors">
- Hide quoted text -
- Show quoted text -
It looks like you have the listnav script file loaded three times...
this may be causeing it. Prob only need one of these.
Keith
On Wed, Jul 22, 2009 at 5:20 PM, Carina wrote:
>
> http://www.cascade-usa.com/default.aspx?page=customer&file=customer/caorsu/customerpages/salesflyer.html#
>
> I am trying to do it here but I am not getting the nav at the top, I
> am just getting them in the squares. I am not sure what exactly I am
> doing wrong.
>
Right, but how do I associate the span tag which contains the value =
'Retired' with the div that contains it? In other words, I need to
toggle the contents of the entire div and not just the span tag.
Thanks.
On Jul 23, 7:41 am, Liam Potter wrote:
> use an if statement, "if value == retired, do this"
>
>
>
> evanbu...@gmail.com wrote:
> > Hi
>
> > I'm not sure how to approach this. I want to toggle each div with a
> > checkbox or hyperlink which shows/hides every div where the RelStatus
> > value = 'retired'. I'm able to see the value of each RelStatus value
> > using the code below. The id of each div and the RelStatus value of
> > each span is set server-side. Thanks
>
> >
> > $(document).ready(function() {
> > $('#table1 .RelStatus').each(function() {
> > alert($(this).text());
> > });
> > });
> >
>
> > " class="IndividualDirectors">
> > > ID="lblRelStatus" Text='<%# Eval("RelStatus") %>' Runat="Server"/> > span>
> > - Hide quoted text -
>
> - Show quoted text -
hmmm ththat's quite interesting as the plugin I'm currently using
claims to be "better" than hoverIntent. Perhaps it is not :P
On Jul 23, 3:35 pm, jlcox wrote:
> Take a look at the hoverIntent plugin. It might do exactly what you
> need.
>
> http://cherne.net/brian/resources/jquery.hoverIntent.html
Has any one noticed that the dropshadows dont fade in ie8 they are
just black
Take a look at the hoverIntent plugin. It might do exactly what you
need.
http://cherne.net/brian/resources/jquery.hoverIntent.html
sorry... i am beginner :) take it easy ;)
On Jul 23, 2009 11:08am, Ken wrote:
how to disable firebug.
2009/7/23 reneara...@gmail.com>
Hi!
first: someone know one great (simple and easy) plugin for jquery for
autocomplete/suggestion ?
second: someone use this plugin with DWR ?
thanks :)
--
--
-
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/
--
Hello Guys,
I've got a couple of div's one of which I'm trying to set a slide
effect on when the other is toggled, both contain a single image. The
code example can be found here http://pastebin.com/m6c3f43a8
Now, the 'expandable' div is hidden when the page loads as I would
expect however clicking on the 'expander' div doesnt appear to trigger
any change in the 'expandable' div, also no JS error is thrown.
Any ideas on this? I'd appreciate it.
Rob
To explain a little more: When I move from one navigational element to
the next the animation restarts, I was wondering if there was a way I
could stop this happening so that the sub-nav stays down, until I move
off the navigation completely or a navigational element which doesn't
activate the sub-nav. I did manage to achieve this by making two divs
above and below and beside the navigation bar and then setting a
jQuery function like this:
$("#div1, #div2, #nav_off").hover(function() {
$("#sub_nav").slideUp(200);
$("#wrap").animate ({ 'marginTop' : '30px' }, 200);
});
However I concluded that it was a little too unsemantic and that there
must be a better way of achieving my goal, if there isn't then I guess
I'm going to have to go with that method.
By the way I've altered the jQuery code so it works with the following
plugin http://blog.threedubmedia.com/2008/08/eventspecialhover.html.
Just so the sub-nav doesn't go off if the user just quickly moves over
the navigation without the intention of actually clicking it.
I've uploaded the site here http://tutshelf.com/TutShelf_Beta/
You can find links to sourcefiles in the source code, but if your lazy
just got to here: http://tutshelf.com/TutShelf_Beta/js/stuff.js and
for the CSS here: http://tutshelf.com/TutShelf_Beta/style.css
I couldn't get the code to work with JSBin, sorry :(
On Jul 23, 1:59 pm, Charlie wrote:
> idea of "freezing" jQuery not making a lot of sense. What you did to post
> code is great, however there's an even better way, put it in jsBin. jSBin
> will include jQuery for you and give a working copy of your code to share,
> instead of it being in 2 places with no CSS.
> Perhaps if you explained the problem as it relates to menu instead of freeze
> jQuery would help. Other than that will simply hiding the subs instead of
> timed slideUp help?
> alexrogahn wrote:Hi, I created a sub-navigation menu for a site I've been
> working on and the thing works perfectly in my opinion... well, near
> perfectly. When I move my mouse from one main navigation link to the other,
> the .slideUp and .slideDown properties still work, which is annoying because
> your essentially having to wait to use the sub-navigation again, even if it
> is only a few milliseconds. I was wondering if there was a way I could
> "freeze" the jQuery until I moved off the (for lack of a better description)
> links that activate the sub-nav. Below is links to my code:
> HTML:http://tinypaste.com/98d643cjQuery:http://tinypaste.com/0b05837
how to disable firebug.
2009/7/23
> Hi!
>
> first: someone know one great (simple and easy) plugin for jquery for
> autocomplete/suggestion ?
> second: someone use this plugin with DWR ?
>
>
> thanks :)
--
--
-
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/
--
Hi!
first: someone know one great (simple and easy) plugin for jquery for
autocomplete/suggestion ?
second: someone use this plugin with DWR ?
thanks :)
Hi Guys,
Can any one tell me validation ' *Email Validation for multiple emails
(comma separated)* ' for textarea.
I am writing Regular expression but not able validating the given input with
comma :(
Please suggest something in JQuery Or Javascript
Thanking you
Regard
Mohd.Tareque
Add a random query string parameter onto the url of the .load() call
(see the code for the AutoComplete plugin for an example)
On Jul 23, 9:37 am, LexHair wrote:
> I have a table which has an image, an icon and some text in each cell.
> I can click an icon in the table cell firing a $.get which delinks
> (deletes) the image from the server. The table is refreshed with a load
> () call in the callback function. I use the load() call since I'm only
> interested in loading the table, not the entire page.
>
> Everything works perfectly in all browsers except IE8. It seems IE8
> keeps the original table in its cache and when I attempt to refresh it
> with the load() call, IE8 pulls it from the cache. The file which has
> been delinked from the server magically remains in the cached version
> of the table.
>
> How can I force IE8 to not use the cache on a load() call?
>
> Thanks in advance.
I have a table which has an image, an icon and some text in each cell.
I can click an icon in the table cell firing a $.get which delinks
(deletes) the image from the server. The table is refreshed with a load
() call in the callback function. I use the load() call since I'm only
interested in loading the table, not the entire page.
Everything works perfectly in all browsers except IE8. It seems IE8
keeps the original table in its cache and when I attempt to refresh it
with the load() call, IE8 pulls it from the cache. The file which has
been delinked from the server magically remains in the cached version
of the table.
How can I force IE8 to not use the cache on a load() call?
Thanks in advance.
Here's a working version to demonstrate (click on the "Output" tab to
see it run):
http://jsbin.com/emeta/edit
just think of the variable "x" coming from a $.getJSON call
anyone reading this can only guess how your image gallery is
constructed. Can you provide link to demonstrate your problem, and to
see code used?
sintu wrote:
Hi,
I have a problem in a div displaying number of images and it is
implemented using jquery. This div contains a scrolling option also.
With out any scrolling, when I click on any image at the bottom part
that is not fully visible, then it's popup will display partially now.
But I need an option for displaying this popup to the top(that means
it will display fully). can you give me a solution for solve this
problem.
Thanks and regards
idea of "freezing" jQuery not making a lot of sense. What you did to
post code is great, however there's an even better way, put it in
jsBin. jSBin will include jQuery for you and give a working copy of
your code to share, instead of it being in 2 places with no CSS.
Perhaps if you explained the problem as it relates to menu instead of
freeze jQuery would help. Other than that will simply hiding the subs
instead of timed slideUp help?
alexrogahn wrote:
Hi, I created a sub-navigation menu for a site I've been working on
and the thing works perfectly in my opinion... well, near perfectly.
When I move my mouse from one main navigation link to the other,
the .slideUp and .slideDown properties still work, which is annoying
because your essentially having to wait to use the sub-navigation
again, even if it is only a few milliseconds. I was wondering if there
was a way I could "freeze" the jQuery until I moved off the (for lack
of a better description) links that activate the sub-nav.
Below is links to my code:
HTML: http://tinypaste.com/98d643c
jQuery: http://tinypaste.com/0b05837
Yes. Got it now. Thanks!
On Thu, Jul 23, 2009 at 3:35 PM, Jörn
Zaefferer wrote:
>
> You include the js file for the language of the page. Load no
> additional file for english, and messages_se.js for swedish. There is
> no support to load two locales at once and switch after page load.
>
> You could hack that by putting the swedish properties into a different
> variable, then modifying $.validator.messages at runtime.
>
> Jörn
>
> On Thu, Jul 23, 2009 at 1:25 PM, Mats Hellman wrote:
>>
>> How do I change the language for the messages being displayed ones an
>> error in a form is found?
>> Just as an example, say I have Swedish and English at a site and load
>> validate on both pages. How do I set the language correctly?
>>
>
so adding
should load the swedish messages instead of the english ones?
And using PHP to check $lang and output nothing for english and the
statement above for swedish should be enough.
On Thu, Jul 23, 2009 at 3:35 PM, Jörn
Zaefferer wrote:
>
> You include the js file for the language of the page. Load no
> additional file for english, and messages_se.js for swedish. There is
> no support to load two locales at once and switch after page load.
>
> You could hack that by putting the swedish properties into a different
> variable, then modifying $.validator.messages at runtime.
>
> Jörn
>
> On Thu, Jul 23, 2009 at 1:25 PM, Mats Hellman wrote:
>>
>> How do I change the language for the messages being displayed ones an
>> error in a form is found?
>> Just as an example, say I have Swedish and English at a site and load
>> validate on both pages. How do I set the language correctly?
>>
>
You include the js file for the language of the page. Load no
additional file for english, and messages_se.js for swedish. There is
no support to load two locales at once and switch after page load.
You could hack that by putting the swedish properties into a different
variable, then modifying $.validator.messages at runtime.
Jörn
On Thu, Jul 23, 2009 at 1:25 PM, Mats Hellman wrote:
>
> How do I change the language for the messages being displayed ones an
> error in a form is found?
> Just as an example, say I have Swedish and English at a site and load
> validate on both pages. How do I set the language correctly?
>
I'm sorry, I really didn't understand what you were asking/telling here.
Also, can you please provide a more concrete example, as well as any code
that will help us figure out your problem? Thanks
cheers
Michael Lawson
Development Lead, Global Solutions, ibm.com
Phone: 1-276-206-8393
E-mail: mjlaw...@us.ibm.com
'Whether one believes in a religion or not,
and whether one believes in rebirth or not,
there isn't anyone who doesn't appreciate kindness and compassion..'
From: rama
To: "jQuery (English)"
Date: 07/23/2009 08:26 AM
Subject:[jQuery] jquery
when i am submitting the form with jquery, it's not checking for the
entire form, it is checking only the first label, that too how many
times i am pressing submit button that many times that error label is
printing how to avoid this, and how to do entire form validationon
submit.
<><>
1 - 100 of 129 matches
Mail list logo