[jQuery] Re: .load() not functioning correctly on IE

2010-01-14 Thread Patrick
gib, do you happen to have a style in the html you are loading? e.g. style type=text/css. /style Patrick On Jan 14, 4:03 am, gib gib...@googlemail.com wrote: $(#datatable).load(includes/Remotes.asp,{funcType: getData}, function (responseText, textStatus, XMLHttpRequest) {        

[jQuery] Re: .load() not functioning correctly on IE

2010-01-14 Thread Patrick
gib, i've spent most of the day working on my problem, which I believe is similar to yours. What i've found with IE versus other browsers, is that if one quote is wrong... added or missing... IE won't load the results. This may be a place for you to look next. On Jan 14, 4:03 am, gib

RE: [jQuery] Re: load() function and IE8

2009-12-15 Thread Scott Stewart
@googlegroups.com Subject: Re: [jQuery] Re: load() function and IE8 I'm not familiar with the Admintasia template. If #AP_PONum is in the DOM when you bind the event handler, then you shouldn't need live. It's only one element, so there shouldn't be a performance hit either if you just use bind

RE: [jQuery] Re: load() function and IE8

2009-12-14 Thread Scott Stewart
:33 AM To: jQuery (English) Subject: [jQuery] Re: load() function and IE8 Hi Scott, Take a look at the documentation for the .live() method: Currently not supported: blur, focus, mouseenter, mouseleave, change, submit http://docs.jquery.com/Events/live#typefn The change event doesn't bubble in IE

[jQuery] Re: load() function and IE8

2009-12-14 Thread MorningZ
-Original Message- From: jquery-en@googlegroups.com [mailto:jquery...@googlegroups.com] On Behalf Of Karl Swedberg Sent: Monday, December 14, 2009 12:33 AM To: jQuery (English) Subject: [jQuery] Re: load() function and IE8 Hi Scott, Take a look at the documentation for the .live

RE: [jQuery] Re: load() function and IE8

2009-12-14 Thread Scott Stewart
of defeat the purpose. -Original Message- From: jquery-en@googlegroups.com [mailto:jquery...@googlegroups.com] On Behalf Of MorningZ Sent: Monday, December 14, 2009 9:10 AM To: jQuery (English) Subject: [jQuery] Re: load() function and IE8 But if it's not supported then why would it work

Re: [jQuery] Re: load() function and IE8

2009-12-14 Thread Karl Swedberg
kind of defeat the purpose. -Original Message- From: jquery-en@googlegroups.com [mailto:jquery...@googlegroups.com] On Behalf Of MorningZ Sent: Monday, December 14, 2009 9:10 AM To: jQuery (English) Subject: [jQuery] Re: load() function and IE8 But if it's not supported then why would

[jQuery] Re: load() function and IE8

2009-12-13 Thread Karl Swedberg
Hi Scott, Take a look at the documentation for the .live() method: Currently not supported: blur, focus, mouseenter, mouseleave, change, submit http://docs.jquery.com/Events/live#typefn The change event doesn't bubble in IE, so it doesn't work with .live (). jQuery 1.4 is going to provide a

[jQuery] Re: Load image when they are visible

2009-11-20 Thread StephenJacob
Not a problem man! I've realized that half the problem finding answers is wording the question properly. Good luck with your project! On Nov 19, 4:40 pm, CrustyDOD anze.stok...@gmail.com wrote: Yes, that's it.. Was so looking for the wrong thing.. Thanks man. On Nov 19, 9:08 

[jQuery] Re: Load image when they are visible

2009-11-19 Thread StephenJacob
I think this is what you're looking for. Haven't tested it myself, but this is what i found with a quick search in google for jquery load images on scroll http://www.appelsiini.net/2007/9/lazy-load-images-jquery-plugin On Nov 19, 2:37 pm, CrustyDOD anze.stok...@gmail.com wrote: Hey guys,

[jQuery] Re: Load image when they are visible

2009-11-19 Thread CrustyDOD
Yes, that's it.. Was so looking for the wrong thing.. Thanks man. On Nov 19, 9:08 pm, StephenJacob turnstylecreat...@gmail.com wrote: I think this is what you're looking for. Haven't tested it myself, but this is what i found with a quick search in google for jquery load images on scroll

[jQuery] Re: load(file) then bind(...) ?

2009-11-13 Thread Mephi
I posted a message 1hour ago or so but I dont see it here displayed. Could you help me with that problem if you see my message?

[jQuery] Re: load(file) then bind(...) ?

2009-11-13 Thread Mephi
Hi Dave. I have the same problem. I have a search results page with a jquery pagination on it. The results are loaded on the page with load(). On each results I have some links to which I have some jquery function attached and bc the content is loaded with ajax, the DOM doesnt have these

Re: [jQuery] Re: Load image with an ajax preloader?

2009-11-12 Thread Michel Belleville
You may also like this nifty little trick : $('#myImage').attr('src', 'image.jpg').load(function() { alert( 'Image Loaded'); }); Apparently images does use the .load() event callback. Michel Belleville 2009/11/10 Michel Belleville michel.bellevi...@gmail.com This is straight JS, I never used

Re: [jQuery] Re: Load image with an ajax preloader?

2009-11-12 Thread Karl Swedberg
On Nov 12, 2009, at 6:10 AM, Michel Belleville wrote: You may also like this nifty little trick : $('#myImage').attr('src', 'image.jpg').load(function() { alert('Image Loaded'); }); Apparently images does use the .load() event callback. Michel Belleville Good point, Michel. You have

[jQuery] Re: Load image with an ajax preloader?

2009-11-10 Thread 123gotoandplay
Hi michel, Tx for the explanation, i am trying your suggestion and it indeed works like a charm. At the moment i am updating div imagePreview depending on a combo of select menu options. As i understand it the ajax-loader.gif keeps on spinning in the background. Is there a way to check if the

Re: [jQuery] Re: Load image with an ajax preloader?

2009-11-10 Thread Michel Belleville
This is straight JS, I never used it before and I'm not sure how cross-browser it is but this should help : http://talideon.com/weblog/2005/02/detecting-broken-images-js.cfm Michel Belleville 2009/11/10 123gotoandplay wesweatyous...@gmail.com Hi michel, Tx for the explanation, i am trying

[jQuery] Re: load() not loading

2009-10-29 Thread James
You can't access resources from other domains with AJAX. Cross-domain policies. The best way to do that is to create a proxy that your AJAX accesses to get that remote content. For example, your AJAX loads a PHP page on your domain that scrapes the remote page's HTML and return it back to your

[jQuery] Re: load(file) then bind(...) ?

2009-10-23 Thread ABB
live() is exactly what i needed! Thank you On Oct 22, 11:49 pm, Dave Methvin dave.meth...@gmail.com wrote: In other words, i have a main page with a menu that loads external files in the #content div with the load(file) function. The external file contains a DIV, and i want to bind a

[jQuery] Re: load vs ajax

2009-10-22 Thread Hogsmill
Cheers, Richard - very useful. I usually use $.ajax because I return JSON, and, as you say, then I start 'munging' :-) I like the load call (for straight content insert applications) because it's way simpler and easier to read - I was just wondering if there were any performance differences,

[jQuery] Re: load vs ajax

2009-10-22 Thread MorningZ
I was just wondering if there were any performance differences .load, like *any* Ajax call in jQuery, ultimately uses the $.ajax method, so other than a hit of one method calling another (which is like nothing), there is no performance hit On Oct 22, 4:55 am, Hogsmill i...@hogsmill.com wrote:

[jQuery] Re: load(file) then bind(...) ?

2009-10-22 Thread Dave Methvin
In other words, i have a main page with a menu that loads external files in the #content div with the load(file) function. The external file contains a DIV, and i want to bind a function to it $ (#mynewdivfromexternalfile).click(function() {alert ('it worx!'} ); You can use a callback in the

[jQuery] Re: load vs ajax

2009-10-21 Thread Richard D. Worth
.load() is really nice if all you're doing is loading some content into an element. It's a nice convenience method. If you're going to take the results of the ajax call and maybe put different parts of the content in different places, or do some manipulation or other munging on it before you add

[jQuery] Re: load() confusion

2009-10-02 Thread James
What exactly are you trying to do? If you're trying to load HTML into a div, you can kind of imitate it with a setInterval function that periodically checks whether the content has changed or not. If the div is not empty, first you check the content and store it (or a checksum of it) somewhere.

[jQuery] Re: load() confusion

2009-10-01 Thread James
load() is suppose to take a url as the first parameter. http://docs.jquery.com/Ajax/load On Oct 1, 8:47 am, flyagaricus flyagari...@gmail.com wrote: I'm new to JQuery I can't get load() to work with a div class: script type='text/javascript'         jQuery(document).ready(function($) {    

[jQuery] Re: load() confusion

2009-10-01 Thread MorningZ
James: there is also a JavaScript event called load for certain DOM objects.. and consequently the ability to wire jQuery onto that (http://docs.jquery.com/Events/load#fn) to original poster: if I target the IMG, then it works fine, but how come it doesn't work with the div? because div's

[jQuery] Re: load() confusion

2009-10-01 Thread James
MorningZ, Thanks for the correction. I've never had to use it and overlooked it. :) On Oct 1, 2:38 pm, MorningZ morni...@gmail.com wrote: James:  there is also a JavaScript event called load for certain DOM objects.. and consequently the ability to wire jQuery onto that

[jQuery] Re: load() confusion

2009-10-01 Thread Michael Rowe
Ok, so is there a way with javascript to fire a function when a div is finished loading it's contents? On Thu, Oct 1, 2009 at 8:38 PM, MorningZ morni...@gmail.com wrote: James: there is also a JavaScript event called load for certain DOM objects.. and consequently the ability to wire jQuery

[jQuery] Re: load() confusion

2009-10-01 Thread MorningZ
No... as javascript doesn't fire anything to listen to for that On Oct 1, 11:30 pm, Michael Rowe flyagari...@gmail.com wrote: Ok, so is there a way with javascript to fire a function when a div is finished loading it's contents? On Thu, Oct 1, 2009 at 8:38 PM, MorningZ morni...@gmail.com

[jQuery] Re: Load quicktime as needed

2009-09-25 Thread allenm541
I think I can help. What I suggest is that you become familiar with free and excellent Flowplayer and use it to embed your media files. Here is a link: http://flowplayer.org/ Flowplayer has lots of tools for scripters and jQuery developers. It has two methods that I've found that may be of

[jQuery] Re: Load quicktime as needed

2009-09-25 Thread allenm541
Actually, what I think you're looking for is the Flowplayer option autoBuffering, which differs from autoPlay. autoPlay determines whether or not the video will play automatically, but autoBuffering is a different method that will prevent it from buffering as well. You'll have to learn how to

[jQuery] Re: Load quicktime as needed

2009-09-25 Thread Mike Alsup
My ideal solution would be a list of song titles and a play button. When the user clicks the play button, the quicktime play is revealed below the title and ONLY at that moment does the file start downloading. If you are using the media plugin then just invoke media on the desired element

[jQuery] Re: Load quicktime as needed

2009-09-25 Thread allenm541
Actually, after reading over your post again, it looks like what you need is to set autoBuffering: false autoBuffering: false will prevent the media from loading until the play button it presses. It differs from autoPlay: false which simply prevents it from player, but buffers anyhow. So, your

[jQuery] Re: Load quicktime as needed

2009-09-25 Thread RealMason
Thanks. I actually don't want to use Flash at all since it is not iPhone compatible, but thanks. On Sep 25, 7:32 am, allenm541 allenmack...@gmail.com wrote: Actually, after reading over your post again, it looks like what you need is to set autoBuffering: false autoBuffering: false will

[jQuery] Re: Load quicktime as needed

2009-09-25 Thread RealMason
Couldn't get this to work but am using jquery.embedquicktime.js and it seems to help. Thanks. On Sep 25, 7:26 am, Mike Alsup mal...@gmail.com wrote: My ideal solution would be a list of song titles and a play button. When the user clicks the play button, the quicktime play is revealed

[jQuery] Re: load callback doesn't wait for completion

2009-09-25 Thread amuhlou
can you post a snippet or test page of how you're using the load method? it's really hard to figure out why it might not be working without any code samples. On Sep 25, 5:07 pm, rodeored in...@reenie.org wrote: How do I get the callback for load() to wait until the load is complete?

[jQuery] Re: Load external content into popup

2009-09-21 Thread Mike McNally
If by popup page you mean separate browser window, then it's somewhat easier. You can have your server-side code return a complete HTML page instead of just a fragment, and then use window.open() to load that URL. On Mon, Sep 21, 2009 at 1:29 PM, evanbu...@gmail.com evanbu...@gmail.com wrote:

[jQuery] Re: Load external content into popup

2009-09-21 Thread MorningZ
Guessing by his usage of a div and a .load() call, his intent most definitely is not to call a separate browser window Back to the original code, what kind of object is .Id_Field ? seems like it's a hyperlink since you are return false-ing at the end, but if that's the case then .va() isn't

[jQuery] Re: load with callback confusion

2009-09-18 Thread Dan G. Switzer, II
The second argument for the load() function is data, not callback: http://docs.jquery.com/Ajax/load#urldatacallback Do this instead: $(span#mycontent).load(mytext.txt, {}, function(){ // callback code here }); -Dan On Fri, Sep 18, 2009 at 5:51 AM, geegler jkp_fb_st...@myvws.net wrote:

[jQuery] Re: load with callback confusion

2009-09-18 Thread Michael Geary
The data parameter is optional (note the very faint square brackets around it on the doc page), so that isn't the problem. The problem, as it is so often, is 'this': var soffset = $(this).offset(); In the working code, 'this' is the #myinfo element. In the broken code, 'this' is the #mycontent

[jQuery] Re: $.load doesn't trigger $(document).ready, but $.ajax({type:GET, ...} does???

2009-09-09 Thread Cesar Sanz
Hi, Let's say a A page has a div in it with id named container and a B page is called via ajax... e.g $(#container).load(B) In order to load the B page, the A page has to be already loaded, so as the page is already loaded it do not reload again when you call B page; this is why nothing

[jQuery] Re: .load() doesn't work on first call in FF3 and IE (But works in FF3.5)?

2009-08-26 Thread D A
After a lot more testing, I think I know what's going on. I'm not sure if it's a jQuery issue or javascript in general. I've asked this on the FancyBox group, but thought I'd ask in here too as I have a hunch it's a more universal concept with jQuery that I need to grasp. What my script is

[jQuery] Re: .load() doesn't work on first call in FF3 and IE (But works in FF3.5)?

2009-08-26 Thread Leonard Martin
Looks like a case of asynchronous-itis. You're reading the val() of the load()-ed div before the Ajax call has had a chance to respond. What you'll want to do is add the fancyBox stuff to the callback function for load() like this:

[jQuery] Re: .load() doesn't work on first call in FF3 and IE (But works in FF3.5)?

2009-08-26 Thread D A
Looks like a case of asynchronous-itis. You're reading the val() of the load()-ed div before the Ajax call has had a chance to respond. What you'll want to do is add the fancyBox stuff to the callback function for load() like this:

[jQuery] Re: .load() doesn't work on first call in FF3 and IE (But works in FF3.5)?

2009-08-26 Thread D A
Looks like a case of asynchronous-itis. You're reading the val() of the load()-ed div before the Ajax call has had a chance to respond. What you'll want to do is add the fancyBox stuff to the callback function for load() like this: Leonard: Thanks! You *were* on the right track with that

[jQuery] Re: .load() doesn't work on first call in FF3 and IE (But works in FF3.5)?

2009-08-25 Thread D A
All I can see is you're missing a closing single-quote (') after locatorResults.cfm. Oops. That's a typo on my part in the example. We found out that it's maybe not jQuery that's the issue here. When we run it on the server where we're actually returning content based on the value we're

[jQuery] Re: .load() doesn't work on first call in FF3 and IE (But works in FF3.5)?

2009-08-25 Thread D A
Here's the bit of jQuery we're using: $('#LocatorGoLink').fancybox({                        'hideOnContentClick': false,                        frameWidth: 660,                        frameHeight: 700,                        overlayOpacity: .6,                        padding: 0,          

[jQuery] Re: $load- images in cache

2009-08-20 Thread Charlie
found better method using combination of image load plugin http://letmehaveblog.blogspot.com/2006/08/simple-jquery-plugin-to-load-images.html and natve onload handlers to get first few images started Charlie wrote: I'm working with some large images that are in markup but being processed

[jQuery] Re: .load() and executing JavaScript from loaded content

2009-08-17 Thread Julijan Andjelic
You can safely use filters, it's not a hack or a workaround, probably your JS is being transmitted as a plain text, tried evaluating the result? On Aug 16, 4:34 pm, Benjamin Wohlwend piquad...@gmail.com wrote: Hi, On Aug 16, 1:58 pm, Charlie charlie...@gmail.com wrote: what happens if you

[jQuery] Re: .load() and executing JavaScript from loaded content

2009-08-16 Thread Benjamin Wohlwend
Hi Carlos, On Aug 15, 10:59 pm, Carlos Becar ventas.w...@gmail.com wrote: ok, but .some-filter is a variable or element or what contain? contain a apge exmaple radmonpage.asp ? I'm not really sure what you're saying. Do you want an example? Here you go:

[jQuery] Re: .load() and executing JavaScript from loaded content

2009-08-16 Thread Charlie
what happens if you load the whole #container div? seems like within the AJAX load it is ignoring script tag as a child. Benjamin Wohlwend wrote: Hi Carlos, On Aug 15, 10:59 pm, Carlos Becar ventas.w...@gmail.com wrote: ok, but .some-filter is a variable or element or what contain?

[jQuery] Re: .load() and executing JavaScript from loaded content

2009-08-16 Thread Benjamin Wohlwend
Hi, On Aug 16, 1:58 pm, Charlie charlie...@gmail.com wrote: what happens if you load the whole #container div? seems like within the AJAX load it is ignoring script tag as a child. do you mean this? $(this).parent().load('/jquery_load/2.html #container'); That doesn't change anything. As

[jQuery] Re: .load() and executing JavaScript from loaded content

2009-08-15 Thread Benjamin Wohlwend
Hi Wolf, On Aug 14, 6:54 pm, Wolf ventas.w...@gmail.com wrote: I think you should try this, send the script or function. Thanks, but I'm not really interested in a workaround, since I already got one that doesn't involve hacky tricks (send only a bare-bones version of the HTML form if the

[jQuery] Re: .load() and executing JavaScript from loaded content

2009-08-15 Thread Carlos Becar
ok, but .some-filter is a variable or element or what contain? contain a apge exmaple radmonpage.asp ? -- Atte. Carlos Becar.

[jQuery] Re: .load() and executing JavaScript from loaded content

2009-08-14 Thread Wolf
I think you should try this, send the script or function. example. $(#form_dialog).dialog({ /*some options */}) .load(url,{}, function(){ $(head).html(scr + ipt\n + function step1() {\n + setTimeout('step2()', 10);\n + }\n + function step2() {\n +

[jQuery] Re: load() event on a link tag?

2009-08-10 Thread Alexander Freiria
You could dialog box in the callback of the click funciton... $(#say_hello).click( function() { $(body).prepend('link type=text/css rel=stylesheet id=example href=css/jquery-ui.min.css /'); $.getScript(js/mail.js); $(#say_hello_box).dialog(open); }); On Mon, Aug 10,

[jQuery] Re: load() event on a link tag?

2009-08-10 Thread ebakunin
Unfortunately the callback on click() never occurs: $(#say_hello).click(function() { $(body).prepend('link type=text/css rel=stylesheet href=css/ jquery-ui.min.css /') $.getScript(js/mail.js); }, function() { alert(done); }); As a hack, I can attach the event to the

[jQuery] Re: load() event on a link tag?

2009-08-10 Thread Alexander Freiria
try setTimeOut On Mon, Aug 10, 2009 at 1:28 PM, ebakunin ebaku...@gmail.com wrote: Unfortunately the callback on click() never occurs: $(#say_hello).click(function() { $(body).prepend('link type=text/css rel=stylesheet href=css/ jquery-ui.min.css /')

[jQuery] Re: load(), cache and IE8

2009-07-23 Thread MorningZ
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 jdpugl...@hotmail.com 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

[jQuery] Re: load(), cache and IE8

2009-07-23 Thread LexHair
Works like a champ!! Thanks so much. On Jul 23, 9:48 am, MorningZ morni...@gmail.com 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 jdpugl...@hotmail.com wrote: I have a

[jQuery] Re: .load: how to make sure ajax-loader.gif stays visible until the injected html is actually visible?

2009-07-13 Thread MorningZ
I'd switch to the more generic $.ajax syntax, then you have more granular control over your HTML as things happen On Jul 13, 10:32 am, jjshell blahblahcoui...@gmail.com wrote: Hi, In the below code, the ajax-loader disappears before the html returned by .load is actually visible in the

[jQuery] Re: .load: how to make sure ajax-loader.gif stays visible until the injected html is actually visible?

2009-07-13 Thread posh beck
On Mon, Jul 13, 2009 at 10:32 PM, jjshell blahblahcoui...@gmail.com wrote: Hi, In the below code, the ajax-loader disappears before the html returned by .load is actually visible in the browser. How can I correct it? $.post(registerClient.php, data, function(returned){

[jQuery] Re: load

2009-06-23 Thread Paul Hutson
Ensure you've included the Jquery package at the top of the page.

[jQuery] Re: load

2009-06-23 Thread khaled abbad
ensure what is the jQuery version that you use.

[jQuery] Re: load

2009-06-23 Thread Anderson Levi
I'm using jquery-1.3.2.min version . 2009/6/23 khaled abbad khaledab...@gmail.com ensure what is the jQuery version that you use.

[jQuery] Re: load

2009-06-23 Thread Anderson Levi
I already included at the top. In IE function, but in Firefox not function. 2009/6/23 Paul Hutson hutsonphu...@googlemail.com Ensure you've included the Jquery package at the top of the page.

[jQuery] Re: .load() function control

2009-06-22 Thread Charlie
here's a couple of options: add a class to your FAQ only used for the click function, remove the class inside the load success function. change $("FAQ).click.. to $(".newClickClass").click.. after appending content : removeClass("newClickClass") or simpler hide or remove #FAQ if

[jQuery] Re: Load Content

2009-06-21 Thread Karl Swedberg
Hi there, This should help: http://docs.jquery.com/Frequently_Asked_Questions#Why_do_my_events_stop_working_after_an_AJAX_request.3F --Karl Karl Swedberg www.englishrules.com www.learningjquery.com On Jun 21, 2009, at 8:25 PM, Valor wrote: First let me say that I'm not a

[jQuery] Re: load() an image: problems in IE7

2009-06-03 Thread Karl Swedberg
not sure, but it could have to do with the browser caching the image. Last time I checked, IE doesn't report that an image has loaded if it's being pulled from the cache. Probably the best thing to do is pull the stuff out of the .load() and into its own function. Then, check for the

[jQuery] Re: Load question

2009-05-23 Thread in...@reenie.org
In this code, triggered when when the user fills out the shipping info, this code fades the form div, displays the loader gif, loads the billing form into the form div, fades the loader and then fades in the form div. Each fadeIn, fadeOut or load function has a second parameter which

[jQuery] Re: .load(function() not working

2009-05-10 Thread Balazs Endresz
http://dev.jquery.com/ticket/3930 On May 8, 9:16 pm, surreal5335 surrea...@hotmail.com wrote: Sorry about the awful horizontal scrolling, its not meant to be like that. My belief is that once I am able to get the .load function working again, that problem will also fix itself bc the

[jQuery] Re: .load(function() not working

2009-05-08 Thread timbrown
you must have a huge monitorhorizontal scrolling is a big no no. I too have had issues with .load()...it will not run scripts that are dynamically loaded into the DOM...i've seen a few things out there talking about combatting this issue most of which include searching the loaded content for

[jQuery] Re: .load(function() not working

2009-05-08 Thread Ricardo
On May 8, 3:22 pm, timbrown timmay.br...@gmail.com wrote: you must have a huge monitorhorizontal scrolling is a big no no. I too have had issues with .load()...it will not run scripts that are The load() in this case has nothing to do with the ajax method, it's adding an onload event

[jQuery] Re: .load(function() not working

2009-05-08 Thread surreal5335
Sorry about the awful horizontal scrolling, its not meant to be like that. My belief is that once I am able to get the .load function working again, that problem will also fix itself bc the jcarousellite plugin will opperate properly again. Or atleast it will fix one of the problems toward

[jQuery] Re: load and unload site

2009-04-28 Thread Charlie
I don't know first one is semantically correct or not but it works: $("#playGround div").html(""); also $("#playGround div").contents().remove(); also $("#test_div *").remove(); clicforw...@googlemail.com wrote: Hello, im loading external site like this.

[jQuery] Re: Load content after page done

2009-04-25 Thread Jorge Godoy
Take a look at the AJAX section of the documentation. You'll see several methods there that might help you. -- Jorge Godoy jgo...@gmail.com On Sat, Apr 25, 2009 at 5:12 PM, Coder mysmartc...@gmail.com wrote: Hello Jquery member's I have question about how to make div load content after

[jQuery] Re: load json

2009-04-23 Thread Etoiliste
To overcome this problem I've used .live() $(.delete).live(click,function(){ ... }); Thanks again!

[jQuery] Re: load json

2009-04-22 Thread Etoiliste
Thank you for your help it works fine :) My script is : script type=text/javascript $(document).ready(function(){ $.getJSON(countries.jsp, function (json) { $.each(json,function(i,obj) { var countries = 'trtdstrongCountrie:/strong' + obj.libelle + '/tdtda href=# id=' + obj.paysId + '

[jQuery] Re: load an aspx page (or ascx) in a div

2009-04-22 Thread MorningZ
This has worked for me in the past: http://weblogs.asp.net/scottgu/archive/2006/10/22/Tip_2F00_Trick_3A00_-Cool-UI-Templating-Technique-to-use-with-ASP.NET-AJAX-for-non_2D00_UpdatePanel-scenarios.aspx You'd simply use a .get() to retrieve that HTML snippet generated by the ascx file On Apr

[jQuery] Re: load an aspx page (or ascx) in a div

2009-04-22 Thread Zeeshan Khan
did u try this? *$(#div_Id).load('page1.aspx');* On Wed, Apr 22, 2009 at 10:45 PM, MorningZ morni...@gmail.com wrote: This has worked for me in the past:

[jQuery] Re: load json

2009-04-20 Thread mkmanning
For your JSON you'd need obj.libelle, obj.countryId, obj.code, etc. You also don't really need the if statement checking the length. On Apr 20, 6:34 am, chakrounb...@gmail.com wrote: Hi everybody My  json   return  these values [{libelle:France,countryId:1,code:FR},

[jQuery] Re: .load() problems in ie

2009-03-29 Thread derrickkwa
Nope, didn't help. Any other thoughts? On Mar 27, 3:07 am, James james.gp@gmail.com wrote: Try changing: var toLoad = $(this).attr('href')+' #content-wrapper'; To: var toLoad = $(this).attr('href')+'#content-wrapper'; (remove the space before #) On Mar 26, 2:42 am, derrickkwa

[jQuery] Re: .load() problems in ie

2009-03-26 Thread James
Try changing: var toLoad = $(this).attr('href')+' #content-wrapper'; To: var toLoad = $(this).attr('href')+'#content-wrapper'; (remove the space before #) On Mar 26, 2:42 am, derrickkwa imperfection.personif...@gmail.com wrote: hi... i'm trying to code a site, you can see it

[jQuery] Re: .load of content does not always include DB connection

2009-03-25 Thread Tim
Unfortunately it's in a cms, that I can't really expose. My host company is looking at the problem as I expect there are server issues. Tim On Mar 24, 5:49 pm, James james.gp@gmail.com wrote: This sounds more like a server-side issue. Are you running into highloadissues on yourdatabase,

[jQuery] Re: .load of content does not always include DB connection

2009-03-24 Thread James
This sounds more like a server-side issue. Are you running into high load issues on your database, or some kind of connection limit? Every AJAX request is just a single request and are completely separate of each request and the page that it's called from. Do you have some kind of demo page that

[jQuery] Re: Load External an DIV within the same DIV.. without tabs

2009-03-01 Thread johhnnyboy
http://maxblog.me/ajaxify/demo.php On 1 mrt, 18:03, Erik R. Peterson eriks...@mac.com wrote: Without using TABS, can I place links inside a DIV and replace the   same DIV with external content from another DIV? I'm trying to achieve the effect found in this link using iFrames, but   I DON'T

[jQuery] Re: load remote file in parent element (which is a td cell)

2009-03-01 Thread mkmanning
Sorry if this repeats but it didn't appear to post. Is 'http:// remotefile.html' in the same domain? On Mar 1, 5:32 pm, joshm joshmat...@gmail.com wrote: I'm having trouble getting this to work (perhaps it can't be done), basically I want to access an element and I know it's parent is going

[jQuery] Re: load remote file in parent element (which is a td cell)

2009-03-01 Thread mkmanning
Is 'http://remotefile.html' the same domain? On Mar 1, 5:32 pm, joshm joshmat...@gmail.com wrote: I'm having trouble getting this to work (perhaps it can't be done), basically I want to access an element and I know it's parent is going to be a td node and then I want to populate the td/td (or

[jQuery] Re: Load External an DIV within the same DIV.. without tabs

2009-03-01 Thread mkmanning
You can use the new live function http://docs.jquery.com/Events/live#typefn or you can just bind a click event on a containing div and use event delegation by getting the target: div id=container //your ajax content here /div $('#container').click(function(e){ e = $(e.target);

[jQuery] Re: load page which includes swf and js functions

2009-02-25 Thread emrah
I'm not sure about the reason why but put the script tags to the end of file like this. //some html here ?php //some code here ? //some html here //jquery and javascript codes try this it will work, I think it is related wiht async,sync working structure of AJAX. By the way it is better if

[jQuery] Re: load() not loading my dynamic page

2009-02-25 Thread eagleon
Code Daemon, I hope you figured it out! I sure haven't yet... It does not happen to just tables, I tried this with divs, and still same result. In my case, I am trying to set the height of a dynamically loaded DIV. The load() function applies the height to any static div that is already on the

[jQuery] Re: load() not loading my dynamic page

2009-02-25 Thread eagleon
one more thing following the above, ... if I check to see if the dynamically loaded div exists, it does not.. if ( $(#existing_static_div).length 0 ) { alert( The ID exists); } ...will alert that the ID exists... however, if ( $(#mydiv).length 0 ) { alert( The ID exists); } ...will not fire

[jQuery] Re: load() not loading my dynamic page

2009-02-25 Thread brian
Dynamically loading content takes some time to finish. Provide a callback function to load() and use that to manipulate #mydiv. http://docs.jquery.com/Ajax/load#urldatacallback On Wed, Feb 25, 2009 at 3:16 PM, eagleon antonypei...@gmail.com wrote: one more thing following the above, ... if I

[jQuery] Re: load() not loading my dynamic page

2009-02-25 Thread eagleon
Thank you so much, that helps a lot ... and I finally got it working. For those wondering exactly what the solution looks like, its very simple: $(document).ready(function() { $(#existing_static_div).load(file, , function(){ myFunc(); }); }); I run the code to

[jQuery] Re: load() not loading my dynamic page

2009-02-24 Thread jQuery Lover
Any news on this one ? Code Daemon, what was the problem ? Read jQuery HowTo Resource - http://jquery-howto.blogspot.com On Thu, Feb 19, 2009 at 3:21 PM, tomasz wawrzyniak tw.gene...@gmail.com wrote: show fragment of your code (javascript) that is executed (and doens't work in FF),

[jQuery] Re: load() not loading my dynamic page

2009-02-19 Thread tomasz wawrzyniak
That makes no sense - its rather wrong formed html. Did you use Id or Name property to identify webpart? On 2/19/09, Code Daemon ryan.det...@gmail.com wrote: Seems more specifically that Firefox doesn't like table objects being loaded dynamically. I'm assuming the jQuery load() method is

[jQuery] Re: load() not loading my dynamic page

2009-02-19 Thread Code Daemon
I hope I'm wrong. I'm not sure what you are asking though. The page I am loading is just HTML code with a table object in it. The AJAX server response looks something like: table trtd/td/tr /table It has no html tags. Is this necessary? On Feb 19, 12:46 am, tomasz wawrzyniak

[jQuery] Re: load() not loading my dynamic page

2009-02-19 Thread tomasz wawrzyniak
show fragment of your code (javascript) that is executed (and doens't work in FF), and oultine fragment of html that declare the div. 2009/2/19 Code Daemon ryan.det...@gmail.com I hope I'm wrong. I'm not sure what you are asking though. The page I am loading is just HTML code with a table

[jQuery] Re: load() not loading my dynamic page

2009-02-18 Thread Code Daemon
It appears that things work fine in IE, just not Firefox. Very strange. On Feb 5, 6:56 am, jQuery Lover ilovejqu...@gmail.com wrote: Maybe it's related to wrong content type being sent by your server !!! Read jQuery HowTo Resource  -  http://jquery-howto.blogspot.com On Thu, Feb 5,

[jQuery] Re: load() not loading my dynamic page

2009-02-18 Thread Code Daemon
Seems more specifically that Firefox doesn't like table objects being loaded dynamically. I'm assuming the jQuery load() method is ultimately a wrapper for the innerHTML property? Looks like, at the very least I'm going to have to omit all my tables. On Feb 18, 10:56 pm, Code Daemon

  1   2   3   >