$(#datatable).load(includes/Remotes.asp,{funcType: getData},
function (responseText, textStatus, XMLHttpRequest) {
alert(responseText); // dom element
alert(textStatus);
});
This code works fine in firefox, and the alerted responseText is
correct, but it is not displayed in the
does $(#datatable) exists when you call the function? is it called at
document ready?
2010/1/14 gib gib...@googlemail.com
$(#datatable).load(includes/Remotes.asp,{funcType: getData},
function (responseText, textStatus, XMLHttpRequest) {
alert(responseText); // dom element
following assumes superfish.js is loaded with initial page
$("#mymenuContainer").load("mymenufile.xxx", function() {
$(".sf-menu").superfish( {//my superfish options});
});
callback function will fire after the html loaded.
Another method is to put the superfish constructor code at
I am using Superfish for a 4 tiered menu which, when complete, will
consist of several hundred individual links. As to not be penalized by
the big G, I want to load this menu via AJAX. My question then is, how
would I go about doing this so that the menu is loaded into it's
container div and then
I fat fingered the last one so...
I have this piece of code
$(#AP_PONum).live(change, function(){
ap_po = $(option:selected,this).val();
$(#content-box).load(webapps/finished_jewelry/PurReq/display/
dsp_addPurchaseRequest.cfm?poNum=+ap_po);
});
which works like a champ in firefox.
it's
Hello all,
I have a strange problem with jquery load. I have this two loads
on a click event:
action='first';
$( '#operators_list_div' ).html( 'nbsp;' ).load( '{% url
add_save_view %}',{'action':action, });
action='second';
$( '#address_list' ).html( 'nbsp;' ).load( '{% url add_save_view
Hey guys,
I am struggling to load my piuc at the right time.
I am injecting an img which once loaded must call a function which will take
care of adjusting the size according to the width and height of the gallery.
Online there is a little delay, and my pics appears at the wrong time.
[CODE]
Hey guys,
I've been searching all over if its possible to make the same effect
that YouTube has.
Loading images when they are visible.
If you have no idea what i'm talking about, go to YouTube, do a search
for some video and
when you scroll down the list of all found videos, thumbnails of each
Hi everyone,
I have an image gallery and i would like to know if there is a way to load
my images faster so the user dont have to wait for a long time. The image
size play a big role in it.
I practically load all the images upfront before showing the big image and
thumbs. Is it a good practice
Images can only load as quickly as their connection will allow.
Your best option is to load the first set of thumbnails (if there's, say,
12 per page I load 24) and the first image, and then dynamically load the
remainder via ajax or other method.
Liam
Hi everyone,
I have an image gallery
Liam Byrne wrote:
Images can only load as quickly as their connection will allow.
Your best option is to load the first set of thumbnails (if there's, say,
12 per page I load 24) and the first image, and then dynamically load the
remainder via ajax or other method.
Liam
Jerome
Hi,
tried to include .html file in .html file
files structure:
inc_part.html
pages/my_file.html
write in my_file.html
script type=text/javascript src=../../../js/jquery-1.3.1.js/
script
$(document).ready(function(){
$(#loader).load('../inc_part.html');
})
div id=loader/div
It works in
How do i make this work?
$(#color_update).change(function(){
var src = $(option:selected, this).val() ;
var src2 = $(#quantity_update option:selected).text();
$('#imagePreview').html('pdiv id=ajaxLoader
align=center
img
http://docs.jquery.com/Ajax/loadApparently you're confusing
.load()http://docs.jquery.com/Ajax/loadand
.html() http://docs.jquery.com/Attributes/html. The first is used to make
an AJAX call, bring back an html document, possibly hack a part, and fill a
portion of your page with the content
I've been googling around but found no answer that works for me.
I'm loading some content from a PHP script using the load() function inside an
html document that already has the utf-8 encoding meta tag. I suposed that the
rule at the head of the container document will affect all loaded
I need to load a few lines of HTML to my page. I made a test
receiver page.
html
head
script type=text/javascript src=http://ajax.googleapis.com/
ajax/libs/jquery/1.3.2/jquery.min.js/script
/head
body
script type=text/javascript
$(document).ready(function(){
hi all i got codes like this
views/admin/order_home
[php]
script type=text/javascript src=?php echo base_url(); ?js/
jquery.js/script
script type=text/javascript src=?php echo base_url(); ?js/
jquery.form.js/script
script type=text/javascript
// wait for the DOM to be loaded
Hi,
I'm trying to load images off a html page through the load() method
but i want to load them through there index eg. img[0] how would i
achieve this..? Thanks in advance.
Hi,
I'm building an application in which pages are loaded dynamically with
JQuery's load(file) function.
When i call the load(file) function from that main page, new elements
with new IDs are dynamically loaded in the main page. these DIVs are
new and no actions are bound on them since the
I've been using $.ajax() for ages, and am now developing on a site
where they alwats use load(). Does anybody know which is best (if
either), ans pros and cons for each one?
Cheers in advance,
Hogsmill
Ok here is a stumper I am trying to load the td contents from one page
into an ordered list on another page
I have a page called inc_menu.html with the following code
body
table
tr
td class=menuItemsmenu 1/td
/tr
tr
td class=menuItemsmenu 2/td
/tr
/table
/body
then I have a
I'm new to JQuery
I can't get load() to work with a div class:
script type='text/javascript'
jQuery(document).ready(function($) {
$(.Loader).load(function(){
alert(bang);
});
});
/script
div class=Loader
img
How do I get the callback for load() to wait until the load is
complete?
I'm a total jquery newbie and I'm just trying to find out if something
is possible.
If I have a full album worth of songs that I want to list on a web
page, can I use jquery to only embed the quicktime file after the user
clicks on a play button for that track.
Similar to Amazon's or iTunes
Hello:
I wrote a simple script based on jquery to load images onscroll
event. It is very easy.
http://code.google.com/p/jquery-images-ondemand/
enjoy
My function loads content from an external page
(field.details.preview.aspx) and loads it into a div named container.
I would like to load this external content into a popup page instead.
I'm not sure how to tackle this. Thanks
script type=text/javascript
$(document).ready(function()
{
How come this code doesn't work?
$(span#myinfo).mouseover(function(){
$(span#mycontent).load(mytext.txt,function(){
var soffset = $(this).offset();
var stop = soffset.top;
var ihgt = $(div#footer).css(height);
var mtop = $(div#mydiv).css(top);
var mhgt
Newbie question:
I'm using JQuery's load function to update a portion of my page with
new content.
This works okay but I would also like to attach event handlers to the
newly loaded content after it is loaded.
There is probably a best practice approach to doing so but I am not
aware of it.
If
You're calling the function attachEventHandlers instead of passing a
reference to the function. Take the () off.
On Wed, Sep 16, 2009 at 9:55 AM, alexryan alexander.j.r...@gmail.com wrote:
Newbie question:
I'm using JQuery's load function to update a portion of my page with
new content.
That was it.
Thank you Mike.
It seems like when I load a page into a div like this, the $
(document).ready code in the loaded page doesn't fire:
$(#mydiv).load(/a);
But when I do this, the $(document).ready on /a does fire.
Is this correct?
Good afternoon all,
Please forgive me if this is a rookie error. (I'm a designer).
I have this bit of code $(#pageArea).load(urlToLoad+ #pageArea);
which, for the most part, is doing what I'd expect it to. Swapping out
the #pageArea in the current page, for the #pageArea in another page.
Been playing with jQuery for a while but haven't really gotten my
hands dirty with actual AJAX calls.
I have a few questions regarding a (hopefully) basic call:
$('div#myContainer').load(mySnippet.html);
mySnippet ends up being just a snippet of HTML:
div
my html I want to load via jQuery
I'm working with some large images that are in markup but being
processed into queued animations.
If image is already loaded but I call $load will it pull image from
browser cache? I want to use the success to do some size processing
I have a flash navigation which gets the URL's from an XML file like:
item
pathcontent/images/4.jpg/path
urlhttp://www.mysite.com/url
target_blank/target
bar_color0x66/bar_color
bar_transparency70/bar_transparency
slideShowTime5/slideShowTime
/item
Does anyone know how to load
Hi,
I have a form with a couple of ajaxified inputs (they have dynamically
generated script tags next to the input tags). This all worked
quite well, until I decided to load that form via AJAX into a jQuery
dialog on another page. The form is correctly fetched and inserted
into the DOM, but the
Hello,
When a user clicks a button I dynamically load large CSS and JS files.
I handle it in this way:
$(#say_hello).click(function() {
$(body).prepend('link type=text/css rel=stylesheet
id=example href=css/jquery-ui.min.css /');
$.getScript(js/mail.js);
Hi,
I am currently using IE7 not IE8.
With IE7:
- the ajax loading image is displayed
- the other images are not
With Firefox 3.5:
- the ajax loading image is NOT displayed
- the other images ARE!
Any idea?
I tried to replace the jQuery load with a get, but it does not help...
On 27
Hi,
I have a function that uses the ajax load function to post off some
parameters and fill a div with the returned content after a db query
has been run to create it. This all works fine, however I would like
to be able to rplace the div with a loading graphic whilst the content
is generated.
Hi Jan,
I'm not sure how much help I can be, but I just got finished doing a
project where I load XML transformed by an XSLT dynamically into my
#content area. Can you tell me first the goal of the functions you
are writing? What are you trying to do?
Lindsay
On Jul 23, 1:36 pm, jan timmer
Here:
$(#report_here).load(/admin/reports/statistics_report/,
{
// Parameters sent go here
}, finished()
finished() is suppose to be finished, without the parenthesis.
On Jul 28, 4:18 am, chris.j.p...@googlemail.com
chris.j.p...@googlemail.com wrote:
Hi,
Hi All,
I have the following page:
http://87.90.101.154/DesignAndCo/index.php?Itemid=38option=com_virtuemartlang=frpage=shop.product_detailsflypage=product_flypage_design_and_coproduct_id=372category_id=40manufacturer_id=24
If you move the mouse cursor over the orange Euro image, a jQuery
The first time I held the mouse over the image, the images did not display.
But when I held the mouse over it again, the images showed. I saw them
fading in as well, so it seems they first need to be loaded after the
element is called.
Hope this helps a little bit to diagnose the problem.
On
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
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=1ph=1cb=centercontent= +
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){
$(#client).html(returned);
$(#all-clients).load(allClients.php, function(){
Hi,
I'm using this function
$(document).ready(function() {
$('#menu a').click(function() {
$('#conteudo').load( $(this).attr('rel') );
return false;
});
});
div id=menu
lia href=# rel=user.phpClientes/a/li
/div
div id=conteudo/div
for load in
I'm loading content with the .load() method. How do i only allow one
click to the link. I don't want future clicks to keep loading the same
content.
$(document).ready(function(){
$(#FAQ).click(function(){
$('div id=faqcontent /').load(content.htm #faqs , function(){
First let me say that I'm not a guru of JavaScript or jQuery for that
matter. I'm familiar with the very basic stuff and if I read code, i'm
able to comprehend what will happen. Anyways I have a bit of a problem
that I'm running into.
Basically i'm using the ajax technique describe a
Hello, and thank you in advance for your help.
I did not speak English, I'm french.
I can not solve this problem.
I'm trying to load a remote page using load function.
It works, but it does not load tags h4 using sIFR3.
h4 Tags are removed during the load
Main html:
Hi all,
Need a little help from you guys here.
I tried to show load spinner will ajax doing its work on a complex
page item load. In my case I am trying to load a large image and at
the same time load large amount of data onto a table. But it only
works in FireFox 3 but it doesn't works on
Does anyone knwo why IE7 is refusing to do 'the trick'?
It works nice in modern browsers and even in IE6
http://navigate.de/dev/caption2.html
I am new to jQuery and have a newbie question.
I have a link click load into div. Thats all good. But how do I add effects?
I read the jQuery docs and there are success: complete: error: but looking
thru example online I have not seen this any where.
Basicaly I want that click on the link it
Hi Guys,
just facing an issue: I'm creating a worklflow for my app and found
$.load() very usefull. It works except that script / tags aren't
loaded. I got some jQuery Objects (like Flexbox etc) in my remote
pages and would like to have access to this objects after the load()
but after load()
I have a piece of code which has worked great in the past on this very
site, but for some reason now, has stopped working. I put in
the .ready function to try and fix it bc I understand that is a
crucial peice of syntax for jquery.
Still the code does not work. Everything in this code is not
Hello,
im loading external site like this.
$('a#link').click(function(){
$(#playGround div).load(http://www.mysite.de;);
return false;
});
how can i unload this site?
i tried:
$(#playGround div).remove(html);
and:
$(#playGround div).unload(html);
but both is not
Hello Jquery member's
I have question about how to make div load content after page done,
the content I'll give it from external page
hi all,
i want to load external asp.net pages in divs,with jquery,without
postback the page,
cay anyone show me a sample?
tnx
Hi everybody
My json return these values
[{libelle:France,countryId:1,code:FR},
{libelle:Tunisie,countryId:2,code:TN},..]
I have to load them ,I used this script I've found it here (http://
groups.google.com/group/jquery-en/browse_thread/thread/
e337d34bddd1af86?pli=1) :
script
hi...
i'm trying to code a site, you can see it at
http://derrickkwa.com/6amb/index.html
so far, i've only implemented the first link in the navigation menu
(work - equipment), and clicking on the logo brings it back to the
home page.
here's my question, though. it works perfectly fine in
I have a website where I pull a lot of different pages into one CMS
page. The problem is the loaded page will occasionaly say No database
selected. But if I click the link and load the page again the content
will show correctly.
Is there a way to check if connection has been made or a way to
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 want to use iFrames:
http://www.dynamicdrive.com/dynamicindex17/iframessi2.htm
Is there an
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
innerhtml) with the contents of my remote fileanyone have any
suggestions?
Hi!
I have a question,
I have two main divs one for is used for menu, the other is used for
content. When an item is clicked from left menu, content is loaded via
jquery load() function in to the content div.
In one of my content I'm using jquery tabs for a tabbing system. In
this system
I'm new to jquery and so far it's awesome. I've run into a problem,
however, that I don't fully understand how to deal with. (sorry for
the cross post, if it is one, I accidentally posted this originally in
the UI group).
I'm using .load() to load a snippet of HTML in response to a click. I
need
Hi, I'm trying to load a remote page using load function
$('#middle').load(test.php);
that page (test.php) has javascript functions that embed an swf using
swf plugin.
The problem is that it only loads html content and doesn't execute any
javascript function.
Any ideas?
Thanks
When I use load(), it works fine for static pages but doesn't seem to
work for my dynamic page.
This is what I'm doing:
$('#mydiv').load('my/page');
FireBug shows that the response is coming back just as it should. Any
thoughts?
I'm repeatedly loading data via JSON every 2 seconds or so to keep a
page updated. Each time data is returned. I take the data, update a
list (the list can only have 5 items) and then never reference the
data again.
If I let this run for an hour, it crashes Safari. Looking at the
inspector
Hi all,
I am struglin' for a while to load a PHP file after a succesfull
validation with the beautiful Basisstance Validation plugin.
How can I use the submitHandler to load an external PHP file and
please the data in the right target?
submitHandler: function(form) {
i'm stuck on a pretty basic concept.
on hovers of a's, i'm trying to load an element from another page by
url and id into a display div. i'm trying to get those 2 bits of info
from the triggering a. i'm close: the product matches a hard coded
string, but doesn't load (the way the hard coded
Hi,
I'm using jquery with CodeIgniter.
I’m currently trying to use jquery’s ajax post to send a couple of
variables to a controller and then load that controller according to
the variables. This is because other than using the URI to ‘send’
variables, this is the only other way I know, and in
hello community,
i have some kind of a beginner question and i really would appreciate
if you could help me with that.
when someone types a value into the textfield and clicks on search
or enter than the javascript line should be called regarding to the
entered value. this should happen without
Hi,
Please consider the code below:
$(document).ready(function(){
$(div#display).load(display.php);
});
$(document).ready(function(){
$(a.test).livequery(click,function(event){
var id = $(this).attr('id').substr(1);
$(div#status).html('img name=wait src=wait.jpg /');
Strange...
i'm loading html inside a div, and have this callback:
$('#datascape').show().load('index.php?splash=labau',{}, function(html, result)
{
$('#datascape').css({background: 'red'});
});
yet, the callback
I have read a similar post to this, but I think my situation is a bit
different. I have a link like this:
a href=/my-url.html rel=the-div class=modal-linkLink/a
Then in my JS I use load something like this:
$('#modal-content').load('/my-url.html #the-div');
Which loads 'the-div' into a modal
Hi, im quite new to jquery so not sure what im doing wrong. (or if
what im doing is the best way). But here goes, i have a rating script,
that allows ratings between 1-10.
The HTML:
div id=userrateUser Rating is 7.8/10/div
The current rating is fetched from a mysql database with php.
div id
Hello there,
I am experiencing some problems using $.load and $.ajax to pull
content from a url and display it in a div. I created the attached
example page to show what I mean.
I expect that when I click the link, the indicator.gif image (or
Loading...) will appear for a moment, then disappear
Hey everyone,
I've just downloaded and started using jQuery v1.2.6 in a web project
i'm working on. When a search result page loads i want to also search
another site and show the results in my page. It looked like the $
([node]).load() function would be the best way of doing this.
I
http://reenie.org/test/jquerytest.html
This uses
$('#container').load('content.html'); to load content from an html
file
http://reenie.org/test/jquerytest.html
This uses
$('#container').load('content.php'); to load from a php file.
Why doesn' t the second one work? They are the same except for
Dear All, i kind new to j query, Ive been using gray box successfully
for a while but i think it time to find something better.
ive been trying to figure out how to load a (by using a href )
external html file from a text link or a image ... Im looking for a
demo of this ... ?? thanks.
hi, i've been going through some ajax tutorial, and most of the
tutorial show something like:
(let just say test.php and /test both return me a string of hello
world
$(document).ready(function(){
$(#quote p.load('test.php')
};
);
the load and get function is trying to get the result from
Hello,
I've developped several plugins for wordpress that require JQuery.
As I have packaged and distributed these plugins separately, they come
all with one version of JQuery.
The problem is that if someone uses two of these plugins, the HTML
header will look like :
script type=text/javascript
Hi,
When I want to send a param with line below:
jQuery('#details').load('?php echo $this-baseUrl
?/myController/myAction/myParam/' + param, {}, function()
{jQuery('#details').show();});
And if my param contains spaces, the param will contain the first word.
E.g.
param = 'hello world'
URL
Hi all,
I'd want to grab a div from external domain and stick in a div on my
site.
Is it doable? Won't there be any cross domain issues?
I am loading a .aspx page into a div that has three user controls on
it that contains javascript and a javascript include. This is being
stripped out when injected into the page. Any reason why?
Hi everybody,
I can't load content from a page and use sortable afterwards !
The problem lies in the 'afficher_rubriques' function.
When content is loaded (unordered list ul/ul with id=rubriques)
I whish to use sortable. But nothing happens. I have to use my
function sortable with a click action
i have a sidebar menu where users can click to load new data into the
main part of the screen. it works most of the time but after a few
clicks in the menu, the whole page just freezes and the loader stops
working. it doesnt load any more data. its not specific to any page or
link. it just stops
i have a sidebar menu where users can click to load new data into the
main part of the screen. it works most of the time but after a few
clicks in the menu, the whole page just freezes and the loader stops
working. it doesnt load any more data. its not specific to any page or
link. it just stops
Hi, I have a problem with the load() function to load an html file on
a div. It works in every browser (even on IE6), but not in IE7.
Somebody knows a fix?
Thanks
hi , i'm just starting with jquery .
It is possible to load a page in the onload event or just calling the
load utility in a script
ex=$('#divCliente').load('proprietarioLogin.asp');
it's that i want to redirect to another page but i dont hnow how.
please help.
I'm using .load(url) to add som contents from another page.
Problem: after being loaded, the links included from the other page
does not work anymore as they are relative to the path of the page.
Is there a simple way/plugin to transform the URLs in the included
page?
Thanks,
Koen
you can set :
$.ajaxSetup({cache: false})
or:
$.ajaxSetup({beforeSend:
function(e,xhr,s){xhr.setRequestHeader(If-Modified-Since, new Date(0));}})
or:
$('#display').ajaxSend(function(e,xhr,s){xhr.setRequestHeader(If-Modified-Since,
new Date(0));}).load('../forms/test_form_1.html');
Hey everybody. Thanks for all the help!
I am using the $.ajaxSetup({cache:false}) option.
It works great.
Looks like I need to study up on the ajax functions.
Always more stuff to learn!
Thanks.
Steve
On Oct 22, 2:26 am, 汪杰 [EMAIL PROTECTED] wrote:
you can set :
Hello,
I spent about an hour trying to figure out why a form I was loading to
a web page was not updating.
In my web page I have a navigation button tool, when I click I want to
load a form into the #display div.
$(document).ready(function(){
.. a bunch of code.
$('#menu
Stever wrote on 10/21/2008 11:34 AM:
Apparently this file is saved in the cache, how do I make sure
everytime I click on the tool button I get the latest page?
Via the headers, have the page expire in the past and set the cache-control
headers to no-cache:
Expires: Thu, 11 Jun 1998
That's not jQuery's fault, check the headers as Bil said or use the
query string trick if you need to avoid cacheing.
If you use jQuery.ajax() you can also set cache: false as an option.
For testing purposes, if you access the loaded page directly the
browser will update the cache. IE7 is
Thanks for the message.
Now I'll show you how new I am at this stuff. :-)
How do I update the headers. Apparently this is done from the server
side.
Do I need to do something with the load function, (I know you said I
could add a random query statement to the URL in the load), but
obviously
Stever wrote on 10/21/2008 6:33 PM:
How do I update the headers. Apparently this is done from the server
side.
It depends on your server-side language and web server. Apache can set headers
using mod_headers:
http://httpd.apache.org/docs/2.0/mod/mod_headers.html#header
Depending
Bil,
Thanks for the help. I think I can figure it out from here.I have
several options
The server is Apache and I am using perl cgi on the server.
However the confusion I have is that on the Jquery load you aren't
using the server get/post methods. You just give it a URL.
And the page I
Hello,
what I am trying to do is this... I have a link on a page when i click the
link i want it to load Page2.php?+... into myobj.
here is some of the code i was working with... hope someone can help...
Thank you.
script
$(document).ready(function(){
$(#generate2).click(function(){
1 - 100 of 203 matches
Mail list logo