where EnableCheckboxes is a javascript function on the page. This doesn't work (doesn't disable the CheckBoxList), although the EnableCheckboxes function DOES work when I call it in other ways, so I'm sure that the problem is that I'm not calling it properly on page load.
I have a single webpage that contains information on all 50 U.S. states. There are 50 links at the top to jump down to the state you want, and at the bottom of the information for each state a Back to Top link.
I'm making the Back to Top link into something more complex, and it will require three or four lines of code.
So that I don't have to repeat the code 50 times, and create a burden when I need to edit it, I want to place it in a .js file and call it x. Then below the information for each state I'll simply have:
Does calling code from a .js file 50 times slow down the page load? Which method would load faster?
I have a JavaScript function defined in the head section of an aspx page.How can I fire this function from the asp.net page_load function when the page loads?
this forum I have managed to write a VB.NET Web Application with several Web Form. this has a JavaScript function (in a seperate .js file) that is called on the click of a button, code used is :-
I have some javascript code that does some GET and POST requests that are required. Sometimes it doesn't fully execute for the user because they close or click onto another page before the javascript is completely done. Is there anyway I can let all of the javascript load first and slow down the actual page load of the website.
I am working on a web application and have run into a problem. From a main window (Window1) I open a child window (Window2), and from that child window I open a grandchild window (Window3). I need to call a funcion that resides on Window1 from Window3. I do this successfully by calling a function with window.opener on Window3, which calls a function with window.opener on Window2, which calls a function on Window1.
My problem comes in with the case of a user closing Window2, and trying to carry out the function on Window3 that calls the function on Window 1. I have already tried window.top, but it doesnt seem to work. window.opener of course returns the error "window.opener has no properties".
I have been a mainframe programmer for over 20 years - I have a new project that requires browser pages written in JavaScript. I currently begin with a HTML page that assigns the values retrieved from a third party vendor's API to an array. I pass this array to another page to build a table full of links - when a client clicks on one of the links, two variables are put into yet another array and a third page is called, successfully passing the required data. Ultimately page 1 and page 3 will be .asp pages so that additional third party vendor API's can be called. The problem is this: after the third page is called from the second page, it displays for a second and then returns to the second page. When I click back I can see the third page, followed by the second page, and finally the first page. My question is this: why is the third page not displaying in the browser? I'm sorry if I have not posted this correctly as I really am a mainframe programmer and this is my first time doing anything code related with web pages
Is it faster/more beneficial to have two snippets of code be generated by php at 2 different urls and then have a load function for each url? Or have the two snippets on one page, surrounded by id's and then load them that way?
I'm having an issue with the status bar in Mozilla and Netscape showing that it is still waiting on the page to load even after it is finished. This problem does NOT occur with IE.
In summary, I am using a onLoad event in the BODY tag to communicate back to another server each time a page finishes loading. I do this by using a "new Image()" and setting the .src property to the server. The .src includes a value in the querystring so I know what request it was that finished loading.
The challenge here is that the status bar still shows "Transferring data from www.mysite.com..." despite the image being loaded. It never clears and leaves the user with the impression that there was a problem loading the page. My web server logs at the mysite.com show that the browser does indeed make a request for the image and I get the querystring just fine and it returns a status of 200 so the image is being found and served ok.
I've tried everything I can think of to solve this and really could use your help please. Bottom line is that if you use the "new Image" statment from within the OnLoad event of the Body tag, Netscape and Mozilla never seem to update the status bar to show "Done" despite it succesfully loading the image.
Here is a simply snippet you can use to easily reproduce this issue:
i do not know much javascript, but i am trying to call several different scripts from the same web page and it is not working. Is there something i can do or is this not a thing that is do-able?
I'm trying to do something simple: find out which page had the link which got me to the current page. I am using window.referrer, in IE6, but it never has anything but blank in it. The scenario is that the user must go though a sign on page to get to the goodies. If they go direct, they get bumped to login:
if (window.referrer != "login_page" { window.location.href = "login_page" }
But the referrer is no present. I've also tried looking at window.history but to no avail. Are these all netscape specific and if so, what is an IE equivalent?
I have an iframe inside of a parent page. How do I call the onChange function in the parent page from the ddlProfileNames dropdown in the iframe page? Thanks.
But what I wanted to do is, says I have two pages: page1.html and page2.html, and in page2.html I have a few JS functions namely myFunc1(), myFunc()2 and myFunc3(). Then I am inserting a few links in page1.html with an iframe below all the links with the name="my_frame", and what I want to do now is for the 3 <a> links I want to open up page2.html into the iframe (e.g. <a href="page2.html" target="my_frame">open Func 1</a>) but also when the page is loaded, one of those 3 functions would be invoked correspondingly depending on which link on page1.html I clicked.
I use jQuery load function to load another page into part ofcurrent page in asp.net. it is work correctly but insecond page i haveone instance ofCKEditor that is not loaded in first page after use load function.
I know the question begs a question. Why? I have no control over the DB or the Forms. Using 3rd Party based web app. I have this: $(document).ready(function() {
when i load page it does nothing only blank page, may have code in wrong place but not sure so can someone show me a working example so i can find out what i'm doing wrong also i would like the part of page to refresh evey 120 seconds is this possibe with jquery?
I have to call the script below from my html page. How would I do that? Do I need to modify the script at all? Put in a function that returns the random title to the html page?
Suppose there is a function myFunction() defined in a web page. Now how can a visitor call this function manually, using the JS console or Firebug etc.Is this possible?
i have a page containing an iframe somewhere in the middle of it. the iframe stretche to the end of the page and its height is calculated from its content with javascript.
i want some of the pages i load into the iframe to have a "back to top" link at the bottom. but i can not put the anchor inside my iframe because my iframe doesn't start at the top of the page.
so i put the name linke of the anchor at the top of the parent page which has the iframe inside. but i couldn't find a way to call that anchor from within the iframe.
i'm sure this could be done with a simple code of javascript. how do i get to the parent frame within the iframe?
I got this code from w3schools and I want to alter it for my needs. However I can not get the basic example to work. I have repeatedly cross checked it and can't see any error. I wonder if anyone can spot what I am doing wrong. code...