473,394 Members | 1,752 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 software developers and data experts.

Using .load() to load a dynamic/animated element

26
I have seen many examples on how to use the .load() function to load in static elements, but I am trying to load a dynamic element, specifically a scrollable.

I have gotten it to the point where:

1) the scrollable will function if I directly view PageToLoad.asp in the broswer.

2) the static elements of the scrollable will load onto MainPage.asp. (i.e., it looks right)

3) the scrollable does not function as loaded on to MainPage.asp.

I assume that my javascript is somehow incorrect in how I'm loading PageToLoad.asp, but I can't figure out why.

I have the function that makes the scrollable run on PageToLoad.asp (here is a small selection of it):

Expand|Select|Wrap|Line Numbers
  1. $(document).ready(function() {    
  2.     var api = $("div.scrollable").scrollable({
  3.         size: 7,
  4.         api: true
  5. });
And all I have on MainPage.asp is:

Expand|Select|Wrap|Line Numbers
  1. $(document).ready(function() {    
  2.     $('#scrollableC').load('PageToLoad.asp');        
  3. });
I also import the "include" files into both MainPage.asp and PageToLoad.asp:

Expand|Select|Wrap|Line Numbers
  1. <script type="text/javascript" src="subroutines.js"></script>
  2. <script type="text/javascript" src="jQuery/jquery-1.3.2.js"></script>
  3. <script type="text/javascript" src="jQuery/jquery.tools.min.js"></script>
As well as my css files.

How can I get the scrollable to animate when it is loaded?

Than you for any and all ideas.
Jul 26 '09 #1
0 1434

Sign in to post your reply or Sign up for a free account.

Similar topics

2
by: Salmo Bytes | last post by:
I want to make an animated gif that runs through one loop and then stops. But I want to invoke it at random time intervals...so, for instance, a tight head shot of a person's face winks at the...
13
by: Stumped and Confused | last post by:
Hello, I really, really, need some help here - I've spent hours trying to find a solution. In a nutshell, I'm trying to have a user input a value in form's textfield. The value should then be...
3
by: Kiran B. | last post by:
hi, i have a search.aspx page and from there it displays and go to searchresualt.aspx... Is there a way I can display an animation ..or something else while it's searching...coz; my search takes...
0
by: UtilityWarrior | last post by:
If you use Visual Basic 6 or VB.net and want to create PDFs from images royalty free then this DLL is for you. The Image to PDF Dynamic Link Library (DLL) will convert one or more images (JPEG,...
5
by: awu | last post by:
All: I have posted this question back to March this year. I would like to get a VBA example code. Here is my question: I want to turn my hourglass around to indicate my program is still...
2
by: shapper | last post by:
Hello, I am for days trying to apply a XSL transformation to a XML file and display the result in a the browser. I am using Asp.Net 2.0. Please, could someone post just a simple code example,...
1
by: Peterwkc | last post by:
Hello all expert, i have two program which make me desperate bu after i have noticed the forum, my future is become brightness back. By the way, my problem is like this i the first program was...
8
by: sneddo | last post by:
Ok I am trying to do the above, I have got a script that will restrict the length but it requires the user to enter the field and hit a key, before it will work. This would normaly be find, but...
4
by: Dooza | last post by:
I have a stored procedure that needs to be executed via an ASP page. The SP does a number of tasks, mainly comparing a local table against a linked server table, and updating/inserting/deleting...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.