473,378 Members | 1,436 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,378 software developers and data experts.

Reload a JavaScript file

111 100+
Hi,

I wanted to know if there was a way to reload an external javscript file.


Basially, what i have is a customised scrollbar, this scroll bar is created in javascript. and the source file is included in the header.

The script works perfectly well, and displays a scoll bar when the content overflows the specified height of its holder div. the scoll bar is not displayed when the content fits inside the containing div.


However i have a problem in that when the content is incresaed in size after the page has loaded, the scroll bar doesn't appear.

This happens in my FAQ section of my website, where each answer is hidden and only appears after the user clicks on the question.

When the page is loaded, all the questions fit inside the container div without overflowing. but when the user clicks on the questions, the answers appear and the content thus overflows.

and since the size has increased after the page has loaded my scroll bar will not appear.
what i need is to re-call the external .js file after the user clicks on the question, this should hopefully recalculate that the scroll bar is needed and hence display a scoll bar.

also the scroll bar that i'm using is from:
http://www.hesido.com/web.php?page=customscrollbar

any help on this would be great.
Jul 20 '07 #1
2 1884
nitinpatel1117
111 100+
Hi,

I've managed to fix the problem, no need to reply to this post.

I just got an idea straight after submitting the post, very weird.

but anyway it works now.
Jul 20 '07 #2
pbmods
5,821 Expert 4TB
Heya, nitinpatel1117.

Glad to hear you got it working! Good luck with your project, and if you ever need anything, post back anytime :)
Jul 21 '07 #3

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

Similar topics

3
by: Q | last post by:
Hello, I have the following problem. Using php I have composed a file which add to an html file text typed into text-field. Problem is that I can see new conntent of html file only after...
4
by: STEPHEN GOODE | last post by:
I have a php script that dynamically creates images, reusing image files on the server to save space and clutter. The problem is described in the steps below: 1. User clicks on a button. 2....
1
by: Plasson | last post by:
<script language="JavaScript"> window.opener.location.reload(); setTimeout(window.close(), 5000); </script> I have this code in a popup in which I let user login using PHP (2 passages: insert...
1
by: zdhiu | last post by:
Hi javascript gurus, I have a simple html file (simple.html) with javascript. In html page there is sentence from variable defined in .js file (myFirst.js). Once I reload another .js file...
1
by: Marshall Dudley | last post by:
I need to be able to allow a user to submit a form which opens another window. This part I have working. But after the submit, I need to delay and have the original window do a reload. I cannot...
3
by: sentinel | last post by:
Hi all, I'm trying to reload a frame from a pop-up, but really cannot figure this out. Within my index.htm file, I make a link to call a pop-up frame with a javascript function that calls the...
19
by: Darren | last post by:
I have a page that opens a popup window and within the window, some databse info is submitted and the window closes. It then refreshes the original window using window.opener.location.reload(). ...
7
by: Raffi | last post by:
I'm facing a tricky (at least for me) page reload/refresh scenario and need some help. I'm working on a web application which is primarily used with MSIE. The application has a main window with...
3
by: wbazarin | last post by:
I am very new using javascript and I faced a problem that with my expertise I cannot solve. I wrote a small html file that handle a vertical menu. I wrote a function to show the menu correctly using...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
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
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
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...

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.