Refresh Functionality With Tabindex Value?
May 20, 2009i want to remain on the same tab while while refreshing the page. while in my case whenever i am refresing the page its going to the first tabindex page...!!
View 1 Repliesi want to remain on the same tab while while refreshing the page. while in my case whenever i am refresing the page its going to the first tabindex page...!!
View 1 RepliesIs it legal to set the value of tabIndex to values below -1 ? In testing it appears to work, but I just wanted to make sure it's allowed by standards.
View 3 Replies View RelatedI'm using the datepicker and found that after selecting the date it would be great to have the cursor go to the field that the date was entered in. The cursor goes to the top of the page currently. how to control that? I guess it's a matter of setting focus after the datepicker function finishes but I'm not sure where that is.
View 1 Replies View Relatedhow to get the type/tagname of an object using its tabindex in jquery.
Example:
<html>
<script>some thing that will get me the type/tagname (in this case it will be input) of the object</script>
<body>
[Code]....
The function below will automatically move to the next input field in the event that a user hits the enter key. I'm trying to modify it so that it moves to the next input field with a tabindex set. So, in the example below, it'll move to the next input field chronologically, instead of how they're ordered on the page itself:
<input type="text" name="a" tabindex="1" />
<input type="text" name="b" tabindex="3" />
<input type="text" name="c" tabindex="2" />
how I can do it?
Code:
$('input').live("keypress", function(e) {
/* ENTER PRESSED*/
if (e.keyCode == 13) {
/* FOCUS ELEMENT */
[Code]....
I have this code in a page that appears in my iframe if requested from parent:
<script type="text/javascript">
parent.rrr();
</script>
The parent code is:
function rrr() {
javascript:location.reload(true);
}
So, the person clicks a link from the parent, it does a php process in a hidden iframe, which then tells the parent page to refresh. The only problem is that it puts Firefox in a constant loop of refreshing. IE and Chrome work fine. They refresh once and stop.
Though the src code opens the iframe like so: <iframe src="" style="display:none; height:1px;" name="hdplus" id="hdplus"></iframe> Firefox seems to refresh the page with the memory of the child page being in the iframe, constantly looping the child request to refresh the parent.
Why won't Firefox just accept that no page should load in the iframe, as stated in the code? I need to stop this loop, which means I need to get firefox to reset the iframe as it reloads the page.
How to refresh DIV , without refresh entire page,Am having four DIV ,
DIV1,DIV2,DIV3,DIV4
I want to refresh only DIV! without affecting the DIV3,DIV4 ,
I have the below code:
<script type="text/javascript">
function loadQuickMessageCheck(File,ID){
var xmlhttp;
[code]....
Could someone explain the discrepancies within and between the stated
definitions / usage of 'document.location' , 'document.URL' vs. their actual
functionality?
Should they be read-only when in fact they are not?
Is 'document.URL' also deprecated, and should therefore never be used?
What is the last word re: the proper syntax for returning and setting the
current window's location?
We have:
document.location
document.location.href
document.URL
window.location
window.location.href
location
location.href
The documentation:
An old script I recently found reasons to bring to life again...
/*
* Array Functionality
* script: array.js
* for: browsers not implementing the full array functionality of ECMA262-3
* by: liorean <http://liorean.web-graphics.com/>
* thanks to: beetle
*/
if(typeof Array.prototype.copy=='undefined')
Array.prototype.copy=function(a){
var
i=0,
b=[];
for(i;i<this.length;i++)
b[i]=(typeof this[i].copy!='undefined')?
this[i].copy():
this[i];
return b
};
if(typeof Array.prototype.concat=='undefined')
Array.prototype.concat=function(a){
var
i=0,
b=this.copy();
for(i;i<a.length;i++)
b[b.length]=a[i];
return b
};
if(typeof Array.prototype.pop=='undefined')
Array.prototype.pop=function(){
var
b=this[this.length-1];
this.length--;
return b
};
if(typeof Array.prototype.push=='undefined')
Array.prototype.push=function(){
var
i=0,
b=this.length,
a=arguments;
for(i;i<a.length;i++)
this[b+i]=a[i];
return this.length
};
if(typeof Array.prototype.shift=='undefined')
Array.prototype.shift=function(){
var
i=0,
b=this[0];
for(i;i<this.length-1;i++)
this[i]=this[i+1];
this.length--;
return b
};
if(typeof Array.prototype.slice=='undefined')
Array.prototype.slice=function(a,c){
var
i=0,
b,
d=[];
if(!c)
c=this.length;
if(c<0)
c=this.length+c;
if(a<0)
a=this.length-a;
if(c<a){
b=a;
a=c;
c=b
}
for(i;i<c-a;i++)
d[i]=this[a+i];
return d
};
if(typeof Array.prototype.splice=='undefined')
Array.prototype.splice=function(a,c){
var
i=0,
e=arguments,
d=this.copy(),
f=a;
if(!c)
c=this.length-a;
for(i;i<e.length-2;i++)
this[a+i]=e[i+2];
for(a;a<this.length-c;a++)
this[a+e.length-2]=d[a-c];
this.length-=c-e.length+2;
return d.slice(f,f+c)
};
if(typeof Array.prototype.unshift=='undefined')
Array.prototype.unshift=function(a){
var
b;
this.reverse();
b=this.push(a);
this.reverse();
return b
};
So my problem is that i can't send form data in FF without page refresh (though in IE7-8 everything works smoothly).
My code fragments:
I would like use a image button like a submit button in a form.
it is possible to do
i.e. (in the end of a form)
<a href="" onClick="funcSubmit()"><img src="../immagini/save.png"
alt="Save" /></a>ù
I'm trying to accomplish an accordion-like function, but instead of dropping down the section below, the content just lays over the other options.
For example, take a look at the Accordion example here: [url]
Notice how when section 2 is clicked, section 1 rolls up. I'm trying to achieve something where with section 1 open, the user would need to click on section 1 to close it and then could select section 2 which would overlay its content below, rather than pushing section 3 down.
Is there an option on accordion that I'm missing or can this be accomplished using another widget or plugin?
I want to make the add functionality in the jquery, where i can add successfully but i also want that when after add, my dialog closes, the div on parent should get refreshed and show me added entry, all is working but i have to reloadthe whole page to make it work
Here is my code!
So on close it should refresh my div or may be it should rerun my query to fetch final records from the db
Do not how, but how it will work!
Close the dialog this is where i tink needs some change, should it be edited enough that onclose it should refresh parent div and requery my query.
[URL] Note check box in left vertical column, at top, encapsuled between a and b, click, click, click. That is what it should do. Open in IE, clicking same thing, nothing happens. The recipe for anything to happen is:
1. refresh
2. check the check box encapsuled between a and b
3. Click first checkbox to the right :eek:
Getting nowhere here, as far as I see IE reports no js errors.
I have image rollover code. And I want to add functionality, for ex-this scripts roll overs images (slides them). I would like let it stops when onmouseover event. Here is script
<html>
<head>
<title>HTML ders | 09.07.2010</title>
<script>
var sekil1=new Image();
sekil1.src="bir.jpg";
var sekil2=new Image();
sekil2.src="iki.jpg";
var sekil3=new Image();
sekil3.src="uc.jpg";
var sekil4=new Image();
sekil4.src="dord.jpg";
var sekil5=new Image();
sekil5.src="bes.jpg";
</script>
</head>
<body>
<img name="az" src="bir.jpg" width="250" height="200">
<script>
var addim=1;
function slide(){
if(!document.images)
return
document.images.az.src=eval("sekil"+addim+".src")
if(addim<5)
addim++
else
addim=1
setTimeout("slide()", 2500);
} slide();
</script>
</body>
</html>
can I get a list of the ActiveX Objects in Javascript . ???
I mean : I can do this : fso = new ActiveXObject("Scripting.FileSystemObject");
so I can use the fso object to do some FileSystem functionality
and I can do this :
var WshShell=new ActiveXObject("wscript.shell");
so I can do this
WshShell.run("D:\\vbnetskywalker.exe" + " " + "1");
[Code]...
We have to develop a small engine which the client uses. It supposed
to work like this. Our engine resides in a frame (frameA) which will
be loaded only once and it provides set of functions. The client can
call these functions. We inturn should get the values from the server
or set the values in the server and return with the values. The way we
are planning to implement is that we will have have another frame
(frameB hidden) and submit it whenever the client (frameClient) calls
our function and wait till the page reloads and return with the value
( set in the reloaded page by the server). The problem we face now is
that we don't have any sleep functionality in javascript ( being event
driven) and if we have a loop waiting for the reply, it will consume
the cpu cycles and the the frameB wont load.
I've been trying to find out if jQuery has any functionality that can help me with creating bbCode style buttons (ie, like on this forum, click B and a [ b ] tag appears, second time creates a closing, or if you have text highlighted, it wraps it). I've tried Google-ing a lot, and randomly found this forum.I found/modified code using standard javascript a while ago,but I'd like to find out if jQuery has any funcionality that can help, mostly to learn.
View 3 Replies View RelatedI m using a Jquery tab on my website and I want to disabe the mouseover funtionality. I was thinking it was just a case of removing the mouseover event from the javascript in the head of my code but; there is no mouse over event! that I can see, but the tabs are still changing on mouseover.
View 8 Replies View RelatedThe CMS I use for my site currently runs/supports jQuery 1.7. The developers have chosen to leave the minified v1.2.6, v1.3.2, v1.4.2 files in the system too. I was wondering if any functionality was deleted over time from the lib. Does v1.7 contain all functionality from all older versions? Can I safely delete these older libs?
View 1 Replies View RelatedI want search functionality in the grid. I found one link but it is in php, but I don't know php. I want it in jsp. Here is the link: [URL] in this there is a take any example which contains search records it. One more link I got for grid but it does not have the functionality of searching another link: [URL].
View 4 Replies View RelatedI have an HTML page having a table and many columns.In that page i have to add new rows and cells dynamically. Adding new rows is working fine using inner HTML.But for particular textboxes i have two buttons namely "edit" and "save".the edit button will make the textbox editable and "save" button will make the textboxes in that row uneditable.Now my question is that as i am adding new rows using innerHTML how to add this functionality (making the textbox editable and uneditable) to the buttons that are dynamically created.
View 1 Replies View RelatedI have been using a tr onclick function in my tables to change the color of the most recently clicked row, it works fine. I have recently added sorttable [URL] to my table with the simple
<table class="sortable">
Making the table sortable has overwritten my tr onclick functions, which are now dead.
Heres a quick sample of what it looks like:
<table class="sortable">
<thead><th scope="col">Header 1</th>
<th scope="col">Header 2</th></thead>
<tr onclick="doSomething(this);"><td>Some data</td><td>Some more</td></tr>
</table>
I've got the following JS function that does a basic countdown to a specific date. I have a series of dates, and rather than change the date manually each time the previous one has passed, I'd like to automate it a bit and have it just read the date from an array, and use that date for the countdown. The check would be if the countdown'd date has already passed. Here's what I currently have:
<script language="javascript">
// date/countdown
function showDate () {
var now = new Date();
var date = now.getDate();
var month = now.getMonth() + 1;
var year = now.getYear();
currentDate = now.getMonth() + 1;
window.status = month + "/" + date + "/" + year + " thisdomain.com ";
var roundCDiv = document.getElementById('roundC');
var showDate = month + "/" + date + "/" + year;
//roundCDiv.innerHTML = showDate;
// countdown
var nextDateB = new Date("October 30, 2005");
var diffB = nextDateB.getTime() - now.getTime();
var daysLeftB = Math.ceil(diffB / (1000 * 60 * 60 * 24));
var roundBDiv = document.getElementById('countdown');
//roundBDiv.innerHTML = daysLeftB + " days until ...;
roundBDiv.innerHTML = daysLeftB;
roundBDiv.innerHTML = daysLeftB + " ";
}
</script>
I have a working gallery with side buttons to scroll through the images. My only problem is that I want the first image that shows up to be the image with the highest [number].jpg value so that when I add a picture to the gallery, the gallery will start on that picture.HTML:
<!DOCTYPE html PUBLIC "-W3CDTD XHTML 1.0 TransitionalEN"
"http:www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http:www.w3.org/1999/xhtml">
[code]....