How To Identify The Frames
Oct 15, 2009
<script language=javascript>
function getSelText()
{
var txt = '';
[code]....
how do i identify the frames?.. document.getSelection(); and window.getSelection() only work for the frame the code is on. how do i change these getSelection(); for specific frame? i tried copying code to top frame but doesn't work. i tried changing to this but no success
parent.link_frame.getSelection
View 1 Replies
ADVERTISEMENT
Jul 23, 2005
I use named anchors to take users to specific parts of a long page. But I
want to add some processing and do some things with my nav bar when users go
to certain sections delineated by named anchors. I understand that the
anchors array creates an element for each anchor in the page when the page
is loaded, but how do I identify which anchor is currently being viewed?
Here's some pseudo code:
if (document.anchors.name == "section_B") {
then do this or that
}
But what do I test to determine the current anchor name?
What about using id's instead of names? Can the anchors array return
anchors created with id's as well as names? Would this be of any benefit?
View 4 Replies
View Related
Nov 19, 2010
Have had a look around at some galleries/menus etc and if anyone was able to tell me the plugin TBWA might have used on their website?
View 4 Replies
View Related
Feb 21, 2005
I have jsp1.jsp with an iframe iframe1.jsp within. Once the http session is expired any page is redirected to a logout1.jsp page.
If the iframe1.jsp was loaded and httpsession expired the logout1.jsp is displayed inside the iframe .... but I want it to be displayed on the full screen.
My idea is to check once loading the logout1.jsp if it is inside an iframe and to reload it's parent. I tried following lines within the logout.jsp. It worked well, but caused an infinite loop ...
if (window.parent != null )
window.parent.location.reload();
I guess it is not the correct way to check if a window is within an iframe...
View 1 Replies
View Related
Aug 14, 2006
Just wondering if anyone knows if it is possible to identify if a user is accessing a web page with a device suc as a blackberry?
View 5 Replies
View Related
Dec 15, 2005
I have a div that is identified by a class name of .thumbs, and Inside this div are numerous thumnail images.
I was hoping to be able to click on any one of the images and pass back information, such as image src, to a function for some type of processing. The problem is that there are many thumbails and adding an id to each would be very arduous and not very dynamic.
I'm having a hard time wrapping my head around the logic needed to solve this problem.
Does anyone have any ideas?
View 10 Replies
View Related
Jun 25, 2007
i m trying to write a code to identify macros in a word document using
c#,also if any macro exist i want to delete those from doc file using
c#
View 1 Replies
View Related
Mar 11, 2009
I have 3 buttons on the page and each has type of submit.So how we can identify on other page which one button is clicked?
View 4 Replies
View Related
Nov 21, 2009
I have a form with multiple SELECT drop-down menus. Each menu can submit the form using the onChange function. How can I determine which of the drop-down menus was used to submit the form? Example:
<form method="post" enctype="multipart/form data" action="submit.php">
<select name="one" onChange="submit()">
<option value="1">1st choice</option>
[code]....
View 3 Replies
View Related
May 11, 2011
The following javascript coding is used in a "select a city" dropbox.
I made a submit button. I want the button to redirect the page to "page1.html". "page1.html" will be a webpage with events located in Auburn, Alabama, United States.
My submit button:
Here is my function:
Right now my button doesn't recognize if i select "Auburn", so it never sends me to "page1.html". Can someone please help me write the correct if statement?
View 12 Replies
View Related
Apr 4, 2006
The best way to describe what im trying to accomplish is with a code
snippet. Im using the free .NET ajax library.
<script language='javascript'>
function proc1()
{
myFunc("MyCodeBehind.MyAjaxProc");
}
function myFunc(procName)
{
procName("My Parameter", processMyFunc);
}
function processMyFunc(response)
{
// Process response from the server
}
</script>
So im essentially invoking an Ajax function , but I cant explicitly use
the name of it like so
MyCodeBehind.MyAjaxProc("My Parameter", processMyFunc);
That line would work fine. Clearly though, this doesnt work
var procName = "MyCodeBehind";
procName("My Parameter", processMyFunc);
View 3 Replies
View Related
Apr 7, 2011
$("#mask").ajaxStart(function () {
mask.load();
}).ajaxStop(function() {
mask.unLoad();
});
This code is executed in many places with different purposes, how could I identify which $. ajax AjaxStart's coming?
View 1 Replies
View Related
Oct 9, 2011
What I'm trying to do here should be simple and I suspect that I'm just overlooking something basic but I'm overlooking it. If you can tell me what I'm not seeing here, I'll be most grateful. This is the associated HTML code. Two statements to be rated from 1 to 10 using radio buttons.
<tr>
<td width="25"><strong>A</strong></td>
<td width="210">A statement is here</td>
<td width="21"><input type="radio" name="SI_QA" id="SI_QA_1" value="1" /></td>
(total of 10 lines like this)
[Code]...
View 13 Replies
View Related
Jan 10, 2005
I have a form that I am validating all fields. I successfully completed the Javascript functions for that...the problem is that within this validation I need to check if a specific selection was made within a radio group (array) and if , let's say "Yes" was selected, then another radio group would not be required. Code:
View 1 Replies
View Related
Jan 25, 2011
I'm designing a website and I would like to add a certain class to a navigation element based on the document title. I currently have the following javascript. The nav elements have separate ids (the About Us nav element has the id="about" and so on)
<code>
window.onload=function(){
var docTitle = document.title;
var about = document.getElementById("about");
var advising = document.getElementById("advising")
[Code]...
The problem seems to be that the if statement is true whether or not the document.title ="about" or anything else, (if I remove the return, both about us and advising elements have their class changed.
View 7 Replies
View Related
Jul 16, 2011
My CMS generates forms in a specific way, and I need to change the way validated fields are selected. I'm using the validation plugin: It identifies form fields that have the "required" class. My CMS generates required elements like this:
<div class="required"><input /></div>
I was hoping this can be easily changed in the plugin syntax, but I can't find any reference to such a change (to select the required fields using this selector: ".required input"[where input is any form element])
View 1 Replies
View Related
Sep 4, 2011
I'm basically making a form for a class and have to make it so the user can enter their mailing address or e-mail. I can make the Javascript identify errors such as missing fields, but I wan't the purpose of my radio buttons to be so that the user does not have to enter all fields depending on which radio button they select. Here is all of the code I have so far, in a basic sense that this will identify missing fields.
<html>
I'm using classes because I can't seem to get ID's to work, but the main problem is that doing it the following way makes the page skip directly to my confirmation page without ever checking the fields, so no error messages appear. This is a general sense of what I'm trying to achieve:
function validateForm()
I think more what I'm looking for is the syntax to identify the radio button status.
View 5 Replies
View Related
Mar 29, 2010
I'm having a problem in identifying the current element. I have a for loop, within which i'm creating a 'TD' and then a 'A' (anchor). I have added an eventListener (onclick event) to the <a>, which invokes a method. The problem is i'm unable to identify on which <a> the user has clicked. extracted code:
Code:
for(i=0; i < count; i++)
{
....
....
var td2=document.createElement('TD');
// Add title
var title = document.createElement("a");
[Code]...
View 9 Replies
View Related
Aug 11, 2009
My site is secure but also contain non secure items from google adsense. users have the options to view secure only or secure and non- secure item. I would like to be able to identify what that user chose so I can show some other things if they choose to only see secure items.
View 1 Replies
View Related
Jul 14, 2010
Stuck in the bottom-right corner of this page is a Social Media sharing tool floating over the page content. It's semi-transparency changes upon hover. It grows out from the corner upon hover as well. [URL] I'm thinking it's ShareBar but I don't see anything like it on the ShareBar site.
View 4 Replies
View Related
Sep 25, 2011
For lack of a better understanding/ solution I'm trying to identify if the mouse is in a specific set of elements.
The problem is that the event.pageY is never in the $Clear target? Is there some other offset value relative to headings or something. I thought this was all in absolute screen coordinates?
Also --- Is there no way to get any mousedown even outside of a form element? Seems that mousedown only returns a value for some element on the page. I would like to also trap a click anywhere on the page?..
View 1 Replies
View Related
May 1, 2011
How can we identify logical errors from other types of errors?
View 4 Replies
View Related
Jul 23, 2005
As a rule, I don't like frames but I'm stuck supporting a web that uses
them. I have a page, default.asp, that has a header and body frame: "fHead"
and "fBody". What I want to do is to prevent default.asp from ever loading
itself into "fBody". Some users still have code that causes this behavior.
So how, using javascript , can I do something to the effect of: "If
default.asp tries to load default.asp (itself) into fBody, then reload the
top-level browser window with what fBody is trying to load."
Make sense? Any thoughts?
View 1 Replies
View Related
Feb 5, 2001
my main page consists of frames.
i'm using ssi to include copyright info, tos, and a privacy statement at the bottom of each page.
the ssi is working on all regular (ie non-frame) pages, but it doesn't seem to be called or parsed on the main page.
a look at the source shows the ssi call just sitting there, doing nothing.
has anyone dealt with this before?
i didn't think it mattered if an ssi was called from within a framed page, but i might be wrong.
i suppose i can just use the actual html for that one page but i'd rather just be able to use ssi since it's used through out the rest of the site.
View 4 Replies
View Related
Jul 23, 2005
I have a frameset with two frames, and want to have a button in one
frame call print() in the other one:
This is the layout:
<frameset rows="*,40" frameborder="NO" border="0" framespacing="0">
<frame src="..." name="pritableText">
<frame src="..." name="printButton" scrolling="NO" noresize>
</frameset>
And, in printButton, I got this code:
<a href="#" onClick="parent.printableText.focus();
parent.printableText.print();">Print the page</a>
However, nothing happens in Netscape (7.01) and Firefox (0.8), and in IE (6)
I get an "error in the script". However, I do not identify the error.
Does anyone have a clue onto what's happening?
View 1 Replies
View Related
Jul 23, 2005
Let me just start by saying... and I truly do mean this... I HATE frames. Now that I have that out of my system, unfortnualty I do not have a choice and am forced to use the complex structure that I am so SO needing help with. My framesets look like this
---------------------
| title |
|--------------------
| buttons |
|--------------------
| base |
|--------------------
inside the base frame I have ANOTHER frameset... split into frmLeft and frmRight... now if your mind isnt tied into knots... I am sure this will do it... I have a button called 'add category', which is on the buttons frame. When I click the button, I get a popup with the details... I add the category details... then I need the frame titled frmLeft to refresh. Is this possible?
View 1 Replies
View Related