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

Access Javascript method from another page

Pam
Hello,
Is there a way to access a javascript method on a different page by
either writting a method to do it or using links???

Thanks,
Pam
Jul 23 '05 #1
6 1693
Pam wrote:
Hello,
Is there a way to access a javascript method on a different page ...?


Yes, if you created the "different" page, and both pages are open.
Mick
Jul 23 '05 #2
In article <61**************************@posting.google.com >,
pm******@uwaterloo.ca enlightened us with...
Hello,
Is there a way to access a javascript method on a different page by
either writting a method to do it or using links???


Only if the other page was set to do so.
I believe they have to be in the same domain, too, but I could be wrong on
that one.

--
--
~kaeli~
I do whatever my Rice Krispies tell me to.
http://www.ipwebdesign.net/wildAtHeart
http://www.ipwebdesign.net/kaelisSpace

Jul 23 '05 #3
Pam wrote:
Hello,
Is there a way to access a javascript method on a different page by
either writting a method to do it or using links???

Thanks,
Pam


Is there anything that this can do that putting the script into an
external file and linking it into both pages won't do?

--
Fred
Jul 23 '05 #4

Fred Oz wrote:
Pam wrote:
Hello,
Is there a way to access a javascript method on a different page by
either writting a method to do it or using links???

Thanks,
Pam


Is there anything that this can do that putting the script into an
external file and linking it into both pages won't do?

--
Fred


I can't have both pages open but they are in the same domain. External
file could be a possibility but what type of methods would I use?

Jul 23 '05 #5

Fred Oz wrote:
Pam wrote:
Hello,
Is there a way to access a javascript method on a different page by
either writting a method to do it or using links???

Thanks,
Pam


Is there anything that this can do that putting the script into an
external file and linking it into both pages won't do?

--
Fred


I can't have both pages open but they are in the same domain. External
file could be a possibility but what type of methods would I use?

Jul 23 '05 #6
In article <11**********************@g14g2000cwa.googlegroups .com>, pm******@uwaterloo.ca says...

Fred Oz wrote:
Pam wrote:
Hello,
Is there a way to access a javascript method on a different page by
either writting a method to do it or using links???

Thanks,
Pam


Is there anything that this can do that putting the script into an
external file and linking it into both pages won't do?

--
Fred


I can't have both pages open but they are in the same domain. External
file could be a possibility but what type of methods would I use?

Place the routine in an external file and just add a link to it:

<script src="external.js"></script>

Then you can call the routines from any page that has the link.

Jul 23 '05 #7

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: fig000 | last post by:
Hi, I'm relatively new to Javascript so please bear with me on what might sound like silly questions. This is what I want to do: I'm working in classic asp (I have to for this project). I...
1
by: Will | last post by:
Hi, I have a problem trying to validate dynamically created html form elements using javascript. I have dynamically created a check box using ASP for each record in a recordset and have given each...
7
by: e | last post by:
I've been having an extremely difficult time finding an answer to this in IE / js groups, so I thought I'd try here. I've got an aspx page that delivers loads of report data into custom-named...
11
by: trinitypete | last post by:
Hi all, I have a user control that uses control literal to build a heading with a link, and a div containing links below. As the link heading is hit, I want to change the style of the div,...
3
by: Shapper | last post by:
Hello, I am working on an ASP.NET/VB web site. I have several links including menu links. Considerer a want to load a page named page.aspx. I can do it using javascript. Or using this code:...
2
by: Jake Barnes | last post by:
Using javascript closures to create singletons to ensure the survival of a reference to an HTML block when removeChild() may remove the last reference to the block and thus destory the block is...
6
by: den 2005 | last post by:
Hi everybody, Question 1: How do you set the values from server-side to a client-side control or how do you execute a javascript function without a button click event? Question 2: How do you...
7
by: FAQ server | last post by:
----------------------------------------------------------------------- FAQ Topic - How do I access a property of an object using a string?...
8
by: Jeremy J Starcher | last post by:
I am developing a script under GreaseMonkey and IE7Pro for a social website I am involved with. When accessing some pages (user profiles) a 404 error is returned if the profile does not exist. ...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
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...

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.