What would be the point? The script would have already loaded.
cfdvlpr wrote:
Is it possible to remove a script from a page dynamically?
--
View this message in context:
that's a point, but as Jake and Yansky have pointed out, once the
script is downloaded and executed it will have done stuff and
stored stuff in memory. Removing a script doesn't change anything.
Perhaps the question needs rephrasing...
...which will beg another question: what exactly does the
Is the new link by any chance being inserted within the trigger
itself? (doesn't seem like it would work because the code takes the
href attribute from the trigger itself, not the link within it, but it
could cause something weird to happen).
Other than that, are use using event delegation or
Works fine for me in Firefox
But you have this line at the start of the validation function that I
assume can only be for testing purposes:
alert(document.getElementById('Email').value);
On Apr 22, 10:57 pm, [EMAIL PROTECTED]
[EMAIL PROTECTED] wrote:
Hi,
When I submit the contact form
On Apr 22, 2008, at 2:36 PM, tlphipps wrote:
I'm just guessing here, but I would think it would be related to your
xhr.setRequestHeader line. I don't really understand why you need
that anyway in this case. What happens if you completely remove the
beforeSend: parameter from your $.ajax?
I'd like to see how you call up the jquery code..
Did you try inserting an alert() at the top of your jquery statements?
On Tue, Apr 22, 2008 at 7:00 PM, [EMAIL PROTECTED]
[EMAIL PROTECTED] wrote:
I hope someone more experienced can tell me where I'm going wrong with
this?
I have PHP
[EMAIL PROTECTED] wrote:
I hope someone more experienced can tell me where I'm going wrong with
this?
Any chance you could post a URL? It doesn't need to be your live site;
a sample of the generated code should be plenty.
My guess is that IE doesn't like your JS syntax and is refusing to
Hello Everybody, Hope this is the right spot to place some suggestions
for the GREAT jQuery Lib.
How is it possible to use the fade() or fadeTo() method, if i want to
toggle the an item e.g. a button with a fade on mouseover.
the problem is, i have to stop the animation if i do a quick toggle
If it's a library script you could remove the function from the window scope
(or the object in jquery, ie)
On Tue, Apr 22, 2008 at 12:41 AM, cfdvlpr [EMAIL PROTECTED] wrote:
Is it possible to remove a script from a page dynamically?
Selecting all the links in div..
I know it should be really simple, but for some reason I can't make it
work..
I work with asp.net and try to run something like this:
$(document).ready(function(){
$('#UserSubPanel a').addClass('sideLink');
});
but it doesn't work. The links
$(document).ready(function(){
$('#UserSubPanel a').addClass('sideLink');
});
2008/4/23 vladv [EMAIL PROTECTED]:
Selecting all the links in div..
I know it should be really simple, but for some reason I can't make it
work..
I work with asp.net and try to run something like
Hmmm... That would work perfectly. I'll take a look at it. Thanks.
On Apr 22, 4:55 pm, Jake McGraw [EMAIL PROTECTED] wrote:
The default behavior:
$(.classname).click(function(){
alert(Hello, world!);
});
$(body).append('span class=classnameClick Me!/span');
Clicking Click Me!
Thank you for your replies :))
The code I posted was from FF's 'view generated source' so that is
what my PHP's putting out Here are a couple more attempts:
//
$( 'h2.product1' )[0].innerHTML = '';
$( 'h2.product1' ).append( 'a href=#Body_Butter_Cream_Lotion
class=openVanilla, Orange
Hey,
I have built a form and now I would like to add some ajax to it. Is it
possible with jquery so load information into the form and also take
the information from the form and update the database (PHP script for
mysql part)
If you can do this are there some examples around that would help me
I know I've read about this somewhere and I should have bookmarked it,
but what is the process for having a function running in the
background so that if at any point something should change on the page
(i.e. a div is now shown) that the function acts on it (such as
adding a class to that div).
Sure, Scott :)
My work page is at http://vanilla-spa.homeholistics.com/products.php -
this is the one that's OK everywhere except in IE.
Various alternatives would be on products_0, products_1, etc
(depending on my level of exasperation at any given time!)
You're spot-on about writing a
I am trying to retrieve the location of the mouse click within the
browser window. When a user clicks on an area that they thought was
click-able but is not I want to record that location. There is a
similar application already out there called heat click but I would
like to create something
I have been using Flexigrid plugin for some time and really liking it.
Congratulations Paulo for the excellent work.
I am facing one problem though. If I specify the column size in
colModel the grid shows up nicely. However, in case I leave the column
size to auto, the column width for the
Check this out. http://jqueryfordesigners.com/coda-popup-bubbles/
I haven't done it personally, but its close. Seems cool. Hope it
helps.
Seth
On Apr 23, 9:22 am, wesbird [EMAIL PROTECTED] wrote:
Hi,
I'm looking for a solution to create a popup window like google map
infowindow. when I
Thanks for your answer :)
I tried this also, but no luck...
What may be the problem?
I have another jQuery function in the same place, but it works just
fine
can it be that nested div called in other way?
Thanks again
On Apr 23, 3:26 pm, Giuliano Marcangelo
[EMAIL PROTECTED] wrote:
Why not loop through it? This is usually how I would do it.
$(document).ready(function(){
$('#UserSubPanel a').each(function(i) {
$(this).addClass('sideLink');
});
http://2whoa.com/dominate/
vladv [EMAIL PROTECTED] wrote:
Thanks
On Apr 21, 3:41 pm, cfdvlpr [EMAIL PROTECTED] wrote:
Is it possible to remove a script from a page dynamically?
Something like this was just discussed on another mailing list that
I read. The answer is something like:
A) Remove the script element itself from the DOM. This accomplishes
[EMAIL PROTECTED] wrote:
My work page is at http://vanilla-spa.homeholistics.com/products.php -
this is the one that's OK everywhere except in IE.
1. $( 'h2.product1' ).html( 'a href=#productID class=openProduct
2. name/a' );
3. $( '#productID' ).css( 'margin-top', '0px;' );
4. $(
Are the links being added after the fact?
Maybe post the page so we can see. It's probably something simple. You
might need the LivejQuery plugin. That is used for when objects are added
via JS after the page loads.
Glen
On Wed, Apr 23, 2008 at 8:14 AM, ripple [EMAIL PROTECTED] wrote:
Why
In a very few instances I can see how livequery could help. But I see very few
reason's for it.
Why add another plugin include to a page which for livequery is 36.91 kb? You
could just easily right a small function or a few lines of code to handle the
new objects that are added from js
This might help.
http://docs.jquery.com/Tutorials:Mouse_Position
I also whipped up a simple demo here:
http://www.commadot.com/jquery/mousePosition.php
Glen
On Wed, Apr 23, 2008 at 6:40 AM, Kalpers [EMAIL PROTECTED] wrote:
I am trying to retrieve the location of the mouse click within the
Hi Scott
You said:
Something looks screwy with this. Line 1 - 2 insert the link with id
productID into the appropriate h2 element. The link contains
nothing
but a text node. Then in line 4, you try to retrieve an element of
class close from inside that link. There is no such element. You
Hey guys,
Remy wrote an article about this sort of thing on
jqueryfordesigners.com the other day. In it he shows a couple
approaches that were probably better than mine, but the one he got
from me involved using .fadeTo()
this one uses two images, and it might not directly apply, but
I am using this to test for the presence of blockUI
if((typeof $.blockUI) === 'object'){
// set up blockUI
}
also seems to work
if((typeof $.fn.idTabs) === 'object'){
$('.idTabs').idTabs();
}
does'nt work
if((typeof
Hello,
I have a big table. It has a header on the right side (dates) and on
the top (names of persons).
Each date has an ID (tid) and each person an user-id (uid). This table
is generated in PHP:
http://img117.imageshack.us/img117/7624/zwischenablage02ow0.jpg (Table
Layout)
Each user can set
This should work:
if ($.fn.jScrollPane) {
$('.scroll-pane').jScrollPane();
}
--Karl
_
Karl Swedberg
www.englishrules.com
www.learningjquery.com
On Apr 23, 2008, at 5:00 PM, Sam Sherlock wrote:
I am using this to test for the presence of blockUI
if((typeof
Could you post the html? That would help a lot. If the links exist
your code should work.
btw, ripple, you shouldn't need to use 'each' - addClass will apply to
all objects in the collection. Using 'each' just adds overhead.
On Apr 24, 3:14 am, ripple [EMAIL PROTECTED] wrote:
Why not loop
http://docs.jquery.com/Frequently_Asked_Questions#Why_do_my_events_stop_working_after_an_Ajax_request.3F
--
Ariel Flesler
http://flesler.blogspot.com
On 23 abr, 10:12, Brian Ronk [EMAIL PROTECTED] wrote:
Hmmm... That would work perfectly. I'll take a look at it. Thanks.
On Apr 22, 4:55
Guys, I am new with jQuery, and I was trying to do something very
simple for you at least.
I am using jQuery against classic ASP pages and I need to send a form
to a ASP page and come back with XML results.
So, question: Is there an easy way to just identify the FORM and send
all the element
Hi :)
Fed up trying to figure out why my wonderful drag layers don't work in
IE, I decided to get on with some more pretty stuff :) As we have
layers fading in out, and draggable, I reckon users will expect that
clicking on a partially visible layer will bring it to front - like in
desktop
Bother, I got Scite to fill in all the spaces returns before
posting, too! Sorry the lines got mangled :/
On Apr 24, 12:18 am, [EMAIL PROTECTED]
[EMAIL PROTECTED] wrote:
Hi :)
Fed up trying to figure out why my wonderful drag layers don't work in
IE, I decided to get on with some more
Give this a try. It will set the clicked div to the highest current z-index
plus 1, without disturbing the other divs (untested):
var zmax = 0;
$( '.draggable' ).click( function () {
$( this ).siblings( '.draggable' ).each(function() {
var cur = $( this ).css( 'zIndex');
The formSerialize function from the form plugin does exactly what you're
asking for:
http://www.malsup.com/jquery/form/#api
The form plugin also has a variety of functions for submitting forms via
ajax.
Hope it helps.
--Erik
On 4/23/08, neualex [EMAIL PROTECTED] wrote:
Guys, I am new with
Yeah there's an easy way -- use the Form plugin by Mike Alsup:
http://malsup.com/jquery/form/
-- Josh
- Original Message -
From: neualex [EMAIL PROTECTED]
To: jQuery (English) jquery-en@googlegroups.com
Sent: Wednesday, April 23, 2008 2:17 PM
Subject: [jQuery] Which jQuery method
Hi all,
I have code something like:
div id=box_1 class=box
div id=close_1_a class=closeimage_left/div
div id=title_1 class=boxtitleBox Title/div
div id=close_1_b class=closeimage_rightBox Title/div
div id=content_1 class=boxcontentbox content.../div
/div
div id=box_2 class=box
div
oops.. that should probably be a .toggle() instead of a .hide()
Shawn
Shawn wrote:
$(.closeimage_left).click( function () {
$(this).siblings(.boxcontent).hide();
});
That *should* do the trick.
Shawn
thekman wrote:
Hi all,
I have code something like:
div id=box_1 class=box
div
thx - seems obvious now, and I was merely add complexity
- S
On 23/04/2008, Karl Swedberg [EMAIL PROTECTED] wrote:
This should work:
if ($.fn.jScrollPane) {
$('.scroll-pane').jScrollPane();
}
--Karl
_
Karl Swedberg
www.englishrules.com
www.learningjquery.com
On
You can do this easily w/o the form plugin also (with jQuery 1.2.2 and later):
$.post(process.asp, $('#myForm').serialize(), function(data) {
alert(data);
});
or
$.ajax({
url:'process.asp',
type: 'POST',
data:$('#myForm').serialize(),
success: function(data)
Do you mean here?
http://www.pmob.co.uk/temp/3colfixedtest_sourcenone.htm
That is not my page, just the page I took the layout code from.
On Apr 22, 2:24 pm, mrpollo [EMAIL PROTECTED] wrote:
i see no div called box
at leats firebug doesnt
On Apr 22, 9:53 am, AsymF [EMAIL PROTECTED] wrote:
Wow, brilliant, Josh! :D
It was missing an extra
});
at the end, but that's it afaik.
If you want play with it, it's here (development page; only the first
half-dozen are real divs at present)
http://vanilla-spa.homeholistics.com/products.php
Nice one :)
On Apr
Thank you all for your responses.
I am taking Mike's suggestion by using the serialize method.
...neualex
On Apr 23, 10:17 pm, Mike Alsup [EMAIL PROTECTED] wrote:
You can do this easily w/o the form plugin also (with jQuery 1.2.2 and later):
$.post(process.asp, $('#myForm').serialize(),
I intend to have a poll page which user can switch between poll and
result, triggered by clicking on a centain link, which is returned by
GET method.
now I am stuck because both function works on the first click, but
when user try to click on the returned link, corresponding click event
is not
Mike, thanks for your response.
When using this $.post method, the function is called once the data
comes back from the server page.
How can I show a loading icon while the function waits for the data to
be sent back?
I'd appreciate your support.
Thanks,
neualex
On Apr 23, 10:17 pm, Mike
48 matches
Mail list logo